pwn 0.4.641 → 0.4.642
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/pwn_chat +12 -0
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e64877191025eecb6ff055c5b5ef451cb52f01502aa50b0ee6ef6e8f3fef9a2a
|
4
|
+
data.tar.gz: 557826a99958976edcd69803aef9fb73e88ccba55c919bf0854755b705b1a4cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec85372b9cebb045568c79593facdd7d1182dc700c0586acc32b2bc617f6c0dd18eeea6118032e8e63159601db36d97d103fd32e123380552558ebb909a05c88
|
7
|
+
data.tar.gz: 66f5e4ca76b2ab383e85b501312139a0c53af1ba2f3218b8e1b0bbb73d416e9e56442ce3275e24b1045d922cbc3e2df902bbd355eb1c9639784c5410134a654f
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
37
37
|
$ rvm list gemsets
|
38
38
|
$ gem install --verbose pwn
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.4.
|
40
|
+
pwn[v0.4.642]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
53
53
|
$ gem install --verbose pwn
|
54
54
|
$ pwn
|
55
|
-
pwn[v0.4.
|
55
|
+
pwn[v0.4.642]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/bin/pwn_chat
CHANGED
@@ -23,6 +23,10 @@ OptionParser.new do |options|
|
|
23
23
|
options.on('-sSTAGE', '--system-role-content=STAGE', '<Optional - system Role Content Value to Define Behavior of assistant responses (Defaults to value in PWN::Plugins::OpenAI.chat method)>') do |s|
|
24
24
|
opts[:system_role_content] = s
|
25
25
|
end
|
26
|
+
|
27
|
+
options.on('-v', '--voice', '<Options - Voice Activate Responses (Defaults to false)>') do |v|
|
28
|
+
opts[:voice] = v
|
29
|
+
end
|
26
30
|
end.parse!
|
27
31
|
|
28
32
|
if opts.empty?
|
@@ -89,6 +93,8 @@ begin
|
|
89
93
|
|
90
94
|
system_role_content = opts[:system_role_content]
|
91
95
|
|
96
|
+
@voice = true if opts[:voice]
|
97
|
+
|
92
98
|
# Define Custom REPL Commands
|
93
99
|
Pry::Commands.create_command 'welcome-banner' do
|
94
100
|
description 'Display the random welcome banner, including basic usage.'
|
@@ -124,6 +130,12 @@ begin
|
|
124
130
|
)
|
125
131
|
puts "\n\n\n#{response[:choices].last[:content]}\n\n\n"
|
126
132
|
|
133
|
+
if @voice
|
134
|
+
text_path = "/tmp/#{File.basename($PROGRAM_NAME)}.response"
|
135
|
+
File.write(text_path, response[:choices].last[:content])
|
136
|
+
PWN::Plugins::Voice.text_to_speech(text_path: text_path)
|
137
|
+
end
|
138
|
+
|
127
139
|
@response_history = {
|
128
140
|
id: response[:id],
|
129
141
|
object: response[:object],
|
data/lib/pwn/version.rb
CHANGED