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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60c64fa5b4751ee72882a87e666c22ca826bb94bab63f0dca925a92520241afd
4
- data.tar.gz: 6ddf3436eca29081e4d53f81183555d80daaf847ebab4b9f6174114372bcde63
3
+ metadata.gz: bd65663e9522de07f7a818795b857aabd14bcacc219de51b8524dfbf8b6a7b2b
4
+ data.tar.gz: ea6abda9dd1d68e00b1a11f93a455e10c15bb91690979853a6bfec0cae33ecd7
5
5
  SHA512:
6
- metadata.gz: 25a82f578e16c23fbf958e353381c39f0ec9126a6d254c51849620b42d68012024f987cacbbf79790889bd282936f13c8ae8fba060b39b3bd2738e44270f76f7
7
- data.tar.gz: 378c9b00d02d832aa820c4cf53cb09c01949d3a1ff2e7f4fd2d6e17833d84266d9a6be6a1fb5f2e792335a90b21ae88e42c574f2fb152d8b0bf74b56ab672112
6
+ metadata.gz: 404c8240305e111d85d7c600e45e558097c912fa7955ecba7bafe1c319d8f0b2b6a08475439acbb1320993fa2d729ddf8bf6de4c908c0a736e8594c960a985b3
7
+ data.tar.gz: 5689c6e8c2cde63fda33290b2837722a43acc3a4f21edfc017b9e3efd3977d30037bca8b819578d7cacb5b08501de4948b226d29aba82b707b62c80a1ac23ed2
data/.rubocop.yml CHANGED
@@ -18,7 +18,7 @@ Metrics/CyclomaticComplexity:
18
18
  Metrics/MethodLength:
19
19
  Max: 565
20
20
  Metrics/ModuleLength:
21
- Max: 1133
21
+ Max: 1149
22
22
  Metrics/PerceivedComplexity:
23
23
  Max: 157
24
24
  Style/HashEachMethods:
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.495]:001 >>> PWN.help
40
+ pwn[v0.5.496]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.495]:001 >>> PWN.help
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.495]:001 >>> PWN.help
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:
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.495'
4
+ VERSION = '0.5.496'
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.5.495
4
+ version: 0.5.496
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.