pwn 0.5.379 → 0.5.380
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/README.md +3 -3
- data/bin/pwn_sast +4 -2
- data/lib/pwn/sast/amqp_connect_as_guest.rb +2 -2
- data/lib/pwn/sast/apache_file_system_util_api.rb +2 -2
- data/lib/pwn/sast/aws.rb +2 -2
- data/lib/pwn/sast/banned_function_calls_c.rb +2 -2
- data/lib/pwn/sast/base64.rb +2 -2
- 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: 2e7b6ee84c6d1db20d149b280c6fcd80f2f99b4cc2351ad68f522d099cce28d0
|
4
|
+
data.tar.gz: c94cdc3b832b629977921387b8074595171dc39abf241c30bd7eaae4b4fdc355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d1126929afb0fff17d04010855842ac5777d0173dd34af1872432547d07e80e7ded44ece36d3d69b54f172be812539b15974c6cf17f714d5dd3f9aac94ced87
|
7
|
+
data.tar.gz: 5a331c6e4323a9971b3b702ec82efdf159d9190df4f1ecc6138a6a46525411328ed4330bb147ce81adfa5886928dfbd91ab4ad56a08a54a799732a1e449ec319
|
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.380]: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.380]: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.380]: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_sast
CHANGED
@@ -79,6 +79,8 @@ begin
|
|
79
79
|
end_of_color = "\e[0m"
|
80
80
|
|
81
81
|
dir_path = opts[:dir_path] ||= '.'
|
82
|
+
previous_dir = Dir.pwd
|
83
|
+
Dir.chdir(dir_path) unless dir_path == '.'
|
82
84
|
|
83
85
|
uri_source_root = opts[:uri_source_root].to_s.scrub
|
84
86
|
|
@@ -211,8 +213,6 @@ begin
|
|
211
213
|
|
212
214
|
# Start Simple HTTP Server (If Requested)
|
213
215
|
if start_reporting_server
|
214
|
-
Dir.chdir(dir_path)
|
215
|
-
|
216
216
|
listen_ip = '127.0.0.1'
|
217
217
|
listen_ip = '0.0.0.0' if pwn_provider == 'docker'
|
218
218
|
listen_port = PWN::Plugins::Sock.get_random_unused_port.to_s
|
@@ -228,4 +228,6 @@ begin
|
|
228
228
|
end
|
229
229
|
rescue SystemExit, Interrupt
|
230
230
|
puts "\nGoodbye."
|
231
|
+
ensure
|
232
|
+
Dir.chdir(previous_dir) unless dir_path == '.'
|
231
233
|
end
|
data/lib/pwn/sast/aws.rb
CHANGED
@@ -200,9 +200,9 @@ module PWN
|
|
200
200
|
target_file: entry,
|
201
201
|
entry_beautified: entry_beautified
|
202
202
|
)
|
203
|
-
else
|
204
|
-
author = 'N/A'
|
205
203
|
end
|
204
|
+
author ||= 'N/A'
|
205
|
+
|
206
206
|
hash_line[:line_no_and_contents] = line_no_and_contents_arr.push(
|
207
207
|
line_no: line_no,
|
208
208
|
contents: contents,
|
data/lib/pwn/sast/base64.rb
CHANGED
data/lib/pwn/version.rb
CHANGED