pwn 0.5.444 → 0.5.445
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_todo.yml +27 -39
- data/Gemfile +1 -0
- data/README.md +3 -3
- data/lib/pwn/plugins/monkey_patch.rb +16 -1
- data/lib/pwn/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86b71d678fe4babb731b7891b3c1760cd7ca8ee9ce980d19e433c6ba83c6390f
|
4
|
+
data.tar.gz: 6d47cc4ba4ae9455b4248c7a93baf85eb118b83070a1a3619335a4874d898aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b379c7ab9c67cda3c5462c5418c1c558f14ead952a93cfb334c00e4ee17bab539a71d4664fa4cd6088c4faf076cad9a400d8d7bcaf072a102a0d1d4bb8cfb97f
|
7
|
+
data.tar.gz: 8b4a0333e4f6cb99c0364baa97183ba56b523d550d49007757c99d422d60054bcdab9fdd6da83fad65088cd701d8ba1d2f4e3889a47bb2f2d4d7fac253792df7
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2025-
|
3
|
+
# on 2025-10-08 18:25:54 UTC using RuboCop version 1.81.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
|
@@ -13,7 +13,7 @@ Layout/TrailingWhitespace:
|
|
13
13
|
Exclude:
|
14
14
|
- 'lib/pwn/banner/radare2_ai.rb'
|
15
15
|
|
16
|
-
# Offense count:
|
16
|
+
# Offense count: 10
|
17
17
|
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
18
18
|
Lint/NestedMethodDefinition:
|
19
19
|
Exclude:
|
@@ -30,7 +30,7 @@ Lint/RedundantTypeConversion:
|
|
30
30
|
- 'lib/pwn/plugins/jenkins.rb'
|
31
31
|
- 'lib/pwn/plugins/repl.rb'
|
32
32
|
|
33
|
-
# Offense count:
|
33
|
+
# Offense count: 276
|
34
34
|
# This cop supports safe autocorrection (--autocorrect).
|
35
35
|
Lint/UselessAssignment:
|
36
36
|
Enabled: false
|
@@ -60,13 +60,11 @@ Metrics/MethodLength:
|
|
60
60
|
Exclude:
|
61
61
|
- 'lib/pwn/banner/code_cave.rb'
|
62
62
|
|
63
|
-
# Offense count:
|
63
|
+
# Offense count: 1
|
64
64
|
# Configuration parameters: CountComments, Max, CountAsOne.
|
65
65
|
Metrics/ModuleLength:
|
66
66
|
Exclude:
|
67
|
-
- 'lib/pwn/banner/code_cave.rb'
|
68
67
|
- 'lib/pwn/plugins/android.rb'
|
69
|
-
- 'lib/pwn/plugins/msr206.rb'
|
70
68
|
|
71
69
|
# Offense count: 2
|
72
70
|
Naming/AccessorMethodName:
|
@@ -81,7 +79,7 @@ Style/Alias:
|
|
81
79
|
Exclude:
|
82
80
|
- 'lib/pwn/plugins/monkey_patch.rb'
|
83
81
|
|
84
|
-
# Offense count:
|
82
|
+
# Offense count: 119
|
85
83
|
Style/ClassVars:
|
86
84
|
Enabled: false
|
87
85
|
|
@@ -98,6 +96,13 @@ Style/ExplicitBlockArgument:
|
|
98
96
|
Exclude:
|
99
97
|
- 'lib/pwn/plugins/nmap_it.rb'
|
100
98
|
|
99
|
+
# Offense count: 1
|
100
|
+
# This cop supports safe autocorrection (--autocorrect).
|
101
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
102
|
+
Style/GuardClause:
|
103
|
+
Exclude:
|
104
|
+
- 'lib/pwn/plugins/monkey_patch.rb'
|
105
|
+
|
101
106
|
# Offense count: 1
|
102
107
|
# This cop supports safe autocorrection (--autocorrect).
|
103
108
|
Style/IfUnlessModifier:
|
@@ -116,25 +121,14 @@ Style/MapIntoArray:
|
|
116
121
|
- 'lib/pwn/plugins/char.rb'
|
117
122
|
- 'lib/pwn/plugins/nexpose_vuln_scan.rb'
|
118
123
|
|
119
|
-
# Offense count:
|
124
|
+
# Offense count: 2
|
120
125
|
# This cop supports safe autocorrection (--autocorrect).
|
121
126
|
# Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
|
122
127
|
Style/MultipleComparison:
|
123
128
|
Exclude:
|
124
|
-
- 'lib/pwn/sast/banned_function_calls_c.rb'
|
125
|
-
- 'lib/pwn/sast/cmd_execution_python.rb'
|
126
|
-
- 'lib/pwn/sast/cmd_execution_ruby.rb'
|
127
|
-
- 'lib/pwn/sast/deserial_java.rb'
|
128
|
-
- 'lib/pwn/sast/factory.rb'
|
129
129
|
- 'lib/pwn/www/duckduckgo.rb'
|
130
130
|
- 'lib/pwn/www/twitter.rb'
|
131
131
|
|
132
|
-
# Offense count: 1
|
133
|
-
# This cop supports safe autocorrection (--autocorrect).
|
134
|
-
Style/RedundantAssignment:
|
135
|
-
Exclude:
|
136
|
-
- 'lib/pwn/plugins/zaproxy.rb'
|
137
|
-
|
138
132
|
# Offense count: 1
|
139
133
|
# This cop supports safe autocorrection (--autocorrect).
|
140
134
|
Style/RedundantBegin:
|
@@ -149,24 +143,6 @@ Style/RedundantCondition:
|
|
149
143
|
Exclude:
|
150
144
|
- 'lib/pwn/plugins/packet.rb'
|
151
145
|
|
152
|
-
# Offense count: 13
|
153
|
-
# This cop supports safe autocorrection (--autocorrect).
|
154
|
-
Style/RedundantParentheses:
|
155
|
-
Exclude:
|
156
|
-
- 'lib/pwn/sast/banned_function_calls_c.rb'
|
157
|
-
- 'lib/pwn/sast/cmd_execution_java.rb'
|
158
|
-
- 'lib/pwn/sast/cmd_execution_python.rb'
|
159
|
-
- 'lib/pwn/sast/cmd_execution_ruby.rb'
|
160
|
-
- 'lib/pwn/sast/cmd_execution_scala.rb'
|
161
|
-
- 'lib/pwn/sast/deserial_java.rb'
|
162
|
-
- 'lib/pwn/sast/factory.rb'
|
163
|
-
- 'lib/pwn/sast/log4j.rb'
|
164
|
-
- 'lib/pwn/sast/logger.rb'
|
165
|
-
- 'lib/pwn/sast/php_input_mechanisms.rb'
|
166
|
-
- 'lib/pwn/sast/php_type_juggling.rb'
|
167
|
-
- 'lib/pwn/sast/throw_errors.rb'
|
168
|
-
- 'lib/pwn/sast/type_script_type_juggling.rb'
|
169
|
-
|
170
146
|
# Offense count: 12
|
171
147
|
# This cop supports safe autocorrection (--autocorrect).
|
172
148
|
Style/RedundantStringEscape:
|
@@ -177,7 +153,19 @@ Style/RedundantStringEscape:
|
|
177
153
|
- 'lib/pwn/sast/redos.rb'
|
178
154
|
- 'vagrant/provisioners/kali_customize.rb'
|
179
155
|
|
180
|
-
# Offense count:
|
156
|
+
# Offense count: 19
|
181
157
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
182
158
|
Style/SlicingWithRange:
|
183
|
-
|
159
|
+
Exclude:
|
160
|
+
- 'lib/pwn/ai/grok.rb'
|
161
|
+
- 'lib/pwn/ai/ollama.rb'
|
162
|
+
- 'lib/pwn/ai/open_ai.rb'
|
163
|
+
- 'lib/pwn/aws/iam.rb'
|
164
|
+
- 'lib/pwn/plugins/gqrx.rb'
|
165
|
+
- 'lib/pwn/plugins/irc.rb'
|
166
|
+
- 'lib/pwn/plugins/open_api.rb'
|
167
|
+
- 'lib/pwn/plugins/repl.rb'
|
168
|
+
- 'lib/pwn/plugins/serial.rb'
|
169
|
+
- 'lib/pwn/plugins/xxd.rb'
|
170
|
+
- 'lib/pwn/sast/pom_version.rb'
|
171
|
+
- 'lib/pwn/sast/test_case_engine.rb'
|
data/Gemfile
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.445]: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.445]: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.445]: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:
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module PWN
|
4
4
|
module Plugins
|
5
|
-
# This module provides the
|
5
|
+
# This module provides the ability to centralize monkey patches used in PWN
|
6
6
|
module MonkeyPatch
|
7
7
|
# Supported Method Parameters::
|
8
8
|
# PWN::Plugins::MonkeyPatch.pry
|
@@ -31,6 +31,21 @@ module PWN
|
|
31
31
|
alias << push
|
32
32
|
end
|
33
33
|
|
34
|
+
require 'method_source'
|
35
|
+
MethodSource::CodeHelpers.module_eval do
|
36
|
+
alias_method :original_complete_expression?, :complete_expression?
|
37
|
+
|
38
|
+
def complete_expression?(expression)
|
39
|
+
original_complete_expression?(expression)
|
40
|
+
rescue SyntaxError => e
|
41
|
+
if e.message =~ /expected a `.*` to close the .* literal/ || e.message =~ /unterminated list/
|
42
|
+
false
|
43
|
+
else
|
44
|
+
raise e
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
34
49
|
Pry.class_eval do
|
35
50
|
def handle_line(line, options)
|
36
51
|
if line.nil?
|
data/lib/pwn/version.rb
CHANGED
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.
|
4
|
+
version: 0.5.445
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -93,6 +93,20 @@ dependencies:
|
|
93
93
|
- - '='
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: 0.3.4
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: bitcoin-ruby
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - '='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.0.20
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - '='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.0.20
|
96
110
|
- !ruby/object:Gem::Dependency
|
97
111
|
name: brakeman
|
98
112
|
requirement: !ruby/object:Gem::Requirement
|