pwn 0.4.975 → 0.4.976

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 333567a8af7e5ebaaf4c7a904d21536b85ed92ba2bbe0cc3914740f4e006edfa
4
- data.tar.gz: 4d631462db7528e35c1bff91452c184d28cfd450bc23286e64544aa6215e474b
3
+ metadata.gz: 5630592aa0635fdc2eac9a66647e0c583459317b9984b7732fa84464f60f2fa2
4
+ data.tar.gz: 149d36dfcb1d5e63a5160cf26aba42e9e3fdfde6db22b44f3833c275a9de4b13
5
5
  SHA512:
6
- metadata.gz: a441f20d00491f9ae800a83d818c7ae89c902ba52618336fda2caa8d1873c61c78f13962c446ba5c9ecdfc78227a4a64b6f48695dcfc6db0b618f2b3ca97b789
7
- data.tar.gz: '09739eaaf9938a9b839f295349f8a94e936771b5ab8373c04bafcff1f0c278f5ab2fb8964908d57387ec2f0cd21caacd8004edfdb34535c6c404f19d664eccfa'
6
+ metadata.gz: 368b2eefd4d28adef421e71cef306232502997321193658d4d99ee0d0a98b91d49b879176b399fc6ff50ea1225831a4798099da1749101a673c90892b088920c
7
+ data.tar.gz: 7eddc885bbd6af8db864a84604b64f1a3f95a51ba928cd29bb92201970e76b406142a9a30a364b47e490ab929a3dc9fba7082aff365c3bc5b9d8333842b7cd9f
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.4.975]:001 >>> PWN.help
40
+ pwn[v0.4.976]: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.3.0@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.975]:001 >>> PWN.help
55
+ pwn[v0.4.976]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.0@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.4.975]:001 >>> PWN.help
65
+ pwn[v0.4.976]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
data/bin/pwn CHANGED
@@ -268,7 +268,6 @@ begin
268
268
  token: open_ai_key,
269
269
  request: request.chomp,
270
270
  temp: 1,
271
- max_tokens: 0,
272
271
  response_history: response_history,
273
272
  speak_answer: speak_answer
274
273
  )
@@ -149,7 +149,6 @@ module PWN
149
149
  rest_call = 'chat/completions'
150
150
 
151
151
  response_history = opts[:response_history]
152
- response_history ||= []
153
152
 
154
153
  max_tokens = response_history[:usage][:total_tokens] if response_history.any?
155
154
  max_tokens = 8_192 - (request.to_s.length / 4) if model.include?('gpt-4')
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.975'
4
+ VERSION = '0.4.976'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.975
4
+ version: 0.4.976
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-19 00:00:00.000000000 Z
11
+ date: 2024-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport