pwn 0.4.973 → 0.4.974
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pwn/banner/cheshire.rb +2 -2
- data/lib/pwn/plugins/open_ai.rb +1 -1
- 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: 0ef1cd299bc2b829ecba1212c36b1355fd479d6b51f4fc9fc6737ae70a175ef0
|
4
|
+
data.tar.gz: 912905c7fcb81a0d9d91e270fe4cc53c8cc47fc615e0f6d6c86e7866bef61437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46125207cd15733c9f18c857a72aae65a1a6a78ea58f0dd7bea7741ae7f4457d37a5989828813b7b484145d40172644cffc6537cde962a9e40fe34e3057b5e60
|
7
|
+
data.tar.gz: a47a598005dfa5c78d3c2656d02cb23a344b162f1a774d55e202e09440b5f608ecaf190ae8ece3d00538cc0fac4843caad24218ea8b754a589293043ac25eae2
|
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.
|
40
|
+
pwn[v0.4.974]: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.
|
55
|
+
pwn[v0.4.974]: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.
|
65
|
+
pwn[v0.4.974]: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/lib/pwn/banner/cheshire.rb
CHANGED
@@ -20,8 +20,8 @@ module PWN
|
|
20
20
|
⠀⠀⠀⢀⡀⠈⠂⠄⠻⠡⠐⠈⣀⢀⣀⠐⠠⠹⠏⠀⠊⠀⣀⠄⠀⠀⠀⠀⠀⠸⠀⠀⢰⠟⢀⣾⡿⠋⢀⣴⣿⣿⡇
|
21
21
|
⠀⠀⠀⠘⡅⡇⣆⣄⣀⡀⠀⠀⠉⠛⠁⠀⠀⣀⡀⡄⠆⡳⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠠⠟⠉⢀⣴⣿⡿⠟⢉⡄
|
22
22
|
⠀⠀⠀⠀⠀⠃⠿⣿⣟⣞⣿⡾⣟⣟⣿⣾⡟⣾⣿⡟⠇⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⠖⠛⠉⢁⣤⣶⣿⠁
|
23
|
-
⠀⠀⠀mmm⠀⠈⠉⠛⠚⠛⠻⠿⠛⠛⠚⠋⠁⠀⠀ mmm
|
24
|
-
|
23
|
+
⠀⠀⠀mmm⠀⠈⠉⠛⠚⠛⠻⠿⠛⠛⠚⠋⠁⠀⠀ mmm mmm.pwn⣾⣿⣿⣿⡏⠀
|
24
|
+
⠀⠀⠀```⠀⢀⣀⡀⠀⠀⠀⠀⠀⢶⣾⣿⣿⣿⡆⠀```⣀⡀⠀⠀⠀```⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀
|
25
25
|
⠀⠀⠀⠀⢀⣤⣾⣿⣿⣿⣄⠀⠀⠀⠀⠈⢿⣿⣿⣿⡇⠀⠀⢹⣿⣿⣿⡇⠀⠀⣤⣀⣀⡀⢤⣤⣶⣾⡿⠋⠀⠀⠀
|
26
26
|
⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠙⠛⠻⠧⠀⠀⣿⣿⣿⣷⡀⠙⠿⠋⠀⠀⠀⠀⠀
|
27
27
|
⠀⠀⠀⠀⠀⠙⠻⢿⣿⣿⣿⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀
|
data/lib/pwn/plugins/open_ai.rb
CHANGED
@@ -150,7 +150,7 @@ module PWN
|
|
150
150
|
|
151
151
|
response_history = opts[:response_history]
|
152
152
|
|
153
|
-
max_tokens = response_history[:usage][:total_tokens] unless response_history.nil?
|
153
|
+
max_tokens = response_history[:usage][:total_tokens] unless response_history.nil? || response_history.empty?
|
154
154
|
max_tokens = 8_192 - (request.to_s.length / 4) if model.include?('gpt-4')
|
155
155
|
max_tokens = 32_768 - (request.to_s.length / 4) if model.include?('gpt-4-32k')
|
156
156
|
max_tokens = 300 unless max_tokens.positive?
|
data/lib/pwn/version.rb
CHANGED