pwn 0.5.495 → 0.5.496
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 +4 -4
- data/.rubocop.yml +1 -1
- data/README.md +3 -3
- data/lib/pwn/ai/introspection.rb +2 -1
- data/lib/pwn/plugins/burp_suite.rb +17 -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: bd65663e9522de07f7a818795b857aabd14bcacc219de51b8524dfbf8b6a7b2b
|
|
4
|
+
data.tar.gz: ea6abda9dd1d68e00b1a11f93a455e10c15bb91690979853a6bfec0cae33ecd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 404c8240305e111d85d7c600e45e558097c912fa7955ecba7bafe1c319d8f0b2b6a08475439acbb1320993fa2d729ddf8bf6de4c908c0a736e8594c960a985b3
|
|
7
|
+
data.tar.gz: 5689c6e8c2cde63fda33290b2837722a43acc3a4f21edfc017b9e3efd3977d30037bca8b819578d7cacb5b08501de4948b226d29aba82b707b62c80a1ac23ed2
|
data/.rubocop.yml
CHANGED
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.5.
|
|
40
|
+
pwn[v0.5.496]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.4.4@pwn
|
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
|
53
53
|
$ gem install --verbose pwn
|
|
54
54
|
$ pwn
|
|
55
|
-
pwn[v0.5.
|
|
55
|
+
pwn[v0.5.496]: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.4.4@pwn
|
|
|
62
62
|
$ rvmsudo gem uninstall --all --executables pwn
|
|
63
63
|
$ rvmsudo gem install --verbose pwn
|
|
64
64
|
$ pwn
|
|
65
|
-
pwn[v0.5.
|
|
65
|
+
pwn[v0.5.496]: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/ai/introspection.rb
CHANGED
|
@@ -83,7 +83,8 @@ module PWN
|
|
|
83
83
|
puts "USAGE:
|
|
84
84
|
#{self}.reflect_on(
|
|
85
85
|
request: 'required - String - What you want the AI to reflect on',
|
|
86
|
-
system_role_content: 'optional - context to set up the model behavior for reflection'
|
|
86
|
+
system_role_content: 'optional - context to set up the model behavior for reflection',
|
|
87
|
+
spinner: 'optional - Boolean - Display spinner during operation (default: false)'
|
|
87
88
|
)
|
|
88
89
|
|
|
89
90
|
#{self}.authors
|
|
@@ -599,6 +599,23 @@ module PWN
|
|
|
599
599
|
spinner: true
|
|
600
600
|
)
|
|
601
601
|
sitemap[:comment] = ai_analysis unless ai_analysis.nil?
|
|
602
|
+
# Extract score and assign color highlight based on severity
|
|
603
|
+
if ai_analysis =~ /(\d{1,3})%/
|
|
604
|
+
score = Regexp.last_match(1).to_i
|
|
605
|
+
highlight_color = case score
|
|
606
|
+
when 0..24
|
|
607
|
+
'GREEN'
|
|
608
|
+
when 25..49
|
|
609
|
+
'YELLOW'
|
|
610
|
+
when 50..74
|
|
611
|
+
'ORANGE'
|
|
612
|
+
when 75..100
|
|
613
|
+
'RED'
|
|
614
|
+
else
|
|
615
|
+
'NONE'
|
|
616
|
+
end
|
|
617
|
+
sitemap[:highlight] = highlight_color
|
|
618
|
+
end
|
|
602
619
|
|
|
603
620
|
rest_client = rest_browser::Request
|
|
604
621
|
response = rest_client.execute(
|
data/lib/pwn/version.rb
CHANGED