pwn 0.4.608 → 0.4.609
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/lib/pwn/plugins/open_ai.rb +3 -3
- 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: d266f62ccaadca3ce9efa5c9e1b66ca621588abf5fc69da139627518a4dd5424
|
4
|
+
data.tar.gz: 01540ec202be3300c1201fa1850003fc70e432174173ab61689e450b3dcdb02b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2302c33df731deac43e9e70c37836f908ca68dcee42257052b69cdd9d6826d088640709883357ff9d00c3fadfc1e9f6f39ca2b72a95feda32150c9d910d6cb56
|
7
|
+
data.tar.gz: bef4e8c1d3cd6c38c580d113ce3f4bc47cfec0ea93673a3062256202d2fcaaae2359b01adc314f677c525ef40cecc60222b08e1363d2be6b6fb9814a75e0c2a7
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.0@pwn
|
|
37
37
|
$ rvm list gemsets
|
38
38
|
$ gem install --verbose pwn
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.4.
|
40
|
+
pwn[v0.4.609]: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.0@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.609]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/lib/pwn/plugins/open_ai.rb
CHANGED
@@ -96,7 +96,7 @@ module PWN
|
|
96
96
|
# request: 'required - message to ChatGPT'
|
97
97
|
# model: 'optional - model to use for text generation (defaults to text-davinci-003)',
|
98
98
|
# temp: 'optional - creative response float (deafults to 0)',
|
99
|
-
# max_tokens: 'optional - integer (defaults to
|
99
|
+
# max_tokens: 'optional - integer (defaults to 4_097 - request.length || 300)'
|
100
100
|
# )
|
101
101
|
|
102
102
|
public_class_method def self.chat_gpt(opts = {})
|
@@ -108,7 +108,7 @@ module PWN
|
|
108
108
|
temp = 0 unless temp.positive?
|
109
109
|
max_tokens = opts[:max_tokens].to_i
|
110
110
|
max_tokens = 4_097 - request.to_s.length
|
111
|
-
max_tokens =
|
111
|
+
max_tokens = 300 unless max_tokens.positive?
|
112
112
|
|
113
113
|
rest_call = 'completions'
|
114
114
|
|
@@ -184,7 +184,7 @@ module PWN
|
|
184
184
|
request: 'required - message to ChatGPT',
|
185
185
|
model: 'optional - model to use for text generation (defaults to text-davinci-003)',
|
186
186
|
temp: 'optional - creative response float (deafults to 0)',
|
187
|
-
max_tokens: 'optional - integer (deafults to
|
187
|
+
max_tokens: 'optional - integer (deafults to 4_097 - request.length || 300)'
|
188
188
|
)
|
189
189
|
|
190
190
|
response = #{self}.img_gen(
|
data/lib/pwn/version.rb
CHANGED