pwn 0.5.62 → 0.5.63

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: 5b78feca18f7b658c6a1ef4cb65e2f40cab41101e4d31926caac9cdb293b8157
4
- data.tar.gz: c3f3333e64e599efccac10eff086b724603afd3a7f966898bb380bbfc6ec4ff0
3
+ metadata.gz: c0fc6d58c74aac204b6229e60d2f99f7921ed433e3555153f8847567d73f3c01
4
+ data.tar.gz: 02d72e88c53863d7dc49b50d4c29814aaca74a132ed3e5c7252c7684694214a3
5
5
  SHA512:
6
- metadata.gz: b24ff13b6f0e0437376208e912fe9fd3e2ef967add67f63d437396cb4c705e90f8620259b49d6bbf4af4b2c4b9c0595ff28faf22fac17bc441548bd26f58f32c
7
- data.tar.gz: 71bd7188ce6a6390b64b0238f9723f050500c990690e55d60b1fd8e421a8ab0e43d0ef5787dd42f875476a6836961de9d06c80498ced7ef7842bdcfc955524e5
6
+ metadata.gz: ed13a5207890b9b882480ce2c59f37ae5ca2d13d4f0fd7ebfc2e0bed826b2038cd8779f6995df9900c8730448fc8541b5ae979432a74d568bfcf663a99ef39a8
7
+ data.tar.gz: 324e69a0d7bad8d43656dc6f593917af2322b9cd863be08ad861a65b22e27757a19f259399579d9e3c3645516f47e73bec959fd6886893bb7f65c67044d95820
data/.rubocop_todo.yml CHANGED
@@ -1,18 +1,11 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2024-03-04 01:40:30 UTC using RuboCop version 1.61.0.
3
+ # on 2024-03-25 22:25:57 UTC using RuboCop version 1.62.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
10
- # Configuration parameters: Severity, Include.
11
- # Include: **/*.gemspec
12
- Gemspec/RequiredRubyVersion:
13
- Exclude:
14
- - 'pwn.gemspec'
15
-
16
9
  # Offense count: 5
17
10
  # This cop supports safe autocorrection (--autocorrect).
18
11
  # Configuration parameters: EnforcedStyle.
@@ -24,7 +17,7 @@ Layout/LineContinuationSpacing:
24
17
  - 'packer/provisioners/wpscan.rb'
25
18
  - 'vagrant/provisioners/beef.rb'
26
19
 
27
- # Offense count: 18
20
+ # Offense count: 24
28
21
  # This cop supports safe autocorrection (--autocorrect).
29
22
  # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
30
23
  # URISchemes: http, https
@@ -34,6 +27,7 @@ Layout/LineLength:
34
27
  - 'bin/pwn_diff_csv_files_w_column_exclude'
35
28
  - 'lib/pwn/banner/jmp_esp.rb'
36
29
  - 'lib/pwn/plugins/mail_agent.rb'
30
+ - 'lib/pwn/plugins/ollama.rb'
37
31
  - 'lib/pwn/plugins/open_ai.rb'
38
32
  - 'lib/pwn/reports/fuzz.rb'
39
33
  - 'lib/pwn/reports/phone.rb'
@@ -41,7 +35,7 @@ Layout/LineLength:
41
35
  - 'lib/pwn/reports/uri_buster.rb'
42
36
  - 'lib/pwn/sast/banned_function_calls_c.rb'
43
37
 
44
- # Offense count: 294
38
+ # Offense count: 311
45
39
  # This cop supports unsafe autocorrection (--autocorrect-all).
46
40
  # Configuration parameters: AutoCorrect.
47
41
  Lint/UselessAssignment:
@@ -80,7 +74,7 @@ Metrics/MethodLength:
80
74
  Exclude:
81
75
  - 'lib/pwn/banner/code_cave.rb'
82
76
 
83
- # Offense count: 8
77
+ # Offense count: 9
84
78
  # Configuration parameters: CountComments, Max, CountAsOne.
85
79
  Metrics/ModuleLength:
86
80
  Exclude:
@@ -90,6 +84,7 @@ Metrics/ModuleLength:
90
84
  - 'lib/pwn/plugins/ibm_appscan.rb'
91
85
  - 'lib/pwn/plugins/msr206.rb'
92
86
  - 'lib/pwn/plugins/nessus_cloud.rb'
87
+ - 'lib/pwn/plugins/ollama.rb'
93
88
  - 'lib/pwn/plugins/open_ai.rb'
94
89
  - 'lib/pwn/plugins/packet.rb'
95
90
 
@@ -97,7 +92,7 @@ Metrics/ModuleLength:
97
92
  Style/ClassVars:
98
93
  Enabled: false
99
94
 
100
- # Offense count: 280
95
+ # Offense count: 278
101
96
  # This cop supports safe autocorrection (--autocorrect).
102
97
  # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
103
98
  # SupportedStyles: assign_to_condition, assign_inside_condition
@@ -134,7 +129,7 @@ Style/RedundantStringEscape:
134
129
  - 'lib/pwn/sast/redos.rb'
135
130
  - 'vagrant/provisioners/kali_customize.rb'
136
131
 
137
- # Offense count: 48
132
+ # Offense count: 51
138
133
  # This cop supports unsafe autocorrection (--autocorrect-all).
139
134
  Style/SlicingWithRange:
140
135
  Enabled: false
data/Gemfile CHANGED
@@ -26,7 +26,7 @@ gem 'colorize', '1.1.0'
26
26
  gem 'credit_card_validations', '6.1.0'
27
27
  gem 'eventmachine', '1.2.7'
28
28
  gem 'executable-hooks', '1.7.1'
29
- gem 'faker', '3.2.3'
29
+ gem 'faker', '3.3.0'
30
30
  gem 'faye-websocket', '0.11.3'
31
31
  gem 'ffi', '1.16.3'
32
32
  gem 'fftw3', '0.3'
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.62]:001 >>> PWN.help
40
+ pwn[v0.5.63]: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.5.62]:001 >>> PWN.help
55
+ pwn[v0.5.63]: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.5.62]:001 >>> PWN.help
65
+ pwn[v0.5.63]: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
@@ -289,7 +289,7 @@ begin
289
289
  if opts[:yaml_config_path] && File.exist?(opts[:yaml_config_path])
290
290
  yaml_config_path = opts[:yaml_config_path]
291
291
  yaml_config = YAML.load_file(yaml_config_path, symbolize_names: true)
292
- pi.config.pwn_ai_key = yaml_config[:open_ai_key]
292
+ pi.config.pwn_ai_key = yaml_config[:ai_key]
293
293
  Pry.config.pwn_ai_key = pi.config.pwn_ai_key
294
294
  end
295
295
  end
@@ -326,19 +326,19 @@ begin
326
326
  if pi.config.pwn_ai && !request.chomp.empty?
327
327
  request = pi.input.line_buffer.to_s
328
328
  debug = pi.config.pwn_ai_debug
329
- open_ai_key = pi.config.pwn_ai_key
330
- open_ai_key ||= ''
331
- if open_ai_key.empty?
332
- open_ai_key = PWN::Plugins::AuthenticationHelper.mask_password(
329
+ ai_key = pi.config.pwn_ai_key
330
+ ai_key ||= ''
331
+ if ai_key.empty?
332
+ ai_key = PWN::Plugins::AuthenticationHelper.mask_password(
333
333
  prompt: 'OpenAI API Key'
334
334
  )
335
- pi.config.pwn_ai_key = open_ai_key
335
+ pi.config.pwn_ai_key = ai_key
336
336
  end
337
337
 
338
338
  response_history = pi.config.pwn_ai_response_history
339
339
  speak_answer = pi.config.pwn_ai_speak
340
340
  response = PWN::Plugins::OpenAI.chat(
341
- token: open_ai_key,
341
+ token: ai_key,
342
342
  request: request.chomp,
343
343
  temp: 1,
344
344
  response_history: response_history,
data/etc/pwn.yaml.EXAMPLE CHANGED
@@ -1,3 +1,3 @@
1
1
  # ai_engine: 'openai' || 'ollama'
2
2
  ai_engine: 'openai'
3
- open_ai_key: 'OPEN_AI_API_KEY'
3
+ ai_key: 'OPEN AI OR OLLAMA API KEY'