pwn 0.4.641 → 0.4.642

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/bin/pwn_chat +12 -0
  4. data/lib/pwn/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c3b134c9581e5a978bd2c8c8ce3fe09d277ece0818a97e89f04a69357709a69
4
- data.tar.gz: f683e628f3cd920bb11e94a3de8c0137f6b94e6a4b55bfb8081fd350f01cc9ff
3
+ metadata.gz: e64877191025eecb6ff055c5b5ef451cb52f01502aa50b0ee6ef6e8f3fef9a2a
4
+ data.tar.gz: 557826a99958976edcd69803aef9fb73e88ccba55c919bf0854755b705b1a4cb
5
5
  SHA512:
6
- metadata.gz: 6a934a8a8f2a9a6c0e6cd598fe3f93c5ead21c654166325331c5aed46afdee3eae10b1020ac5a4c87f49b166a4f74fa534730af3795953fddf1a6778b6cdb00f
7
- data.tar.gz: b0f2371b0f80cfcdd9ba31e554d1907db8fe6a9b8d5b75c717244944e37838c4baaa5c7d180529d4eacbadf1b462176c1396aec3b155f1db6408154333ab3fae
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.641]:001 >>> PWN.help
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.641]:001 >>> PWN.help
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.641'
4
+ VERSION = '0.4.642'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.641
4
+ version: 0.4.642
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.