pwn 0.4.916 → 0.4.917
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/bin/pwn_bdba_scan +10 -5
- 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: d18defc5e168dd62b82833b77835fae644b86e6b7126f8224589131d594fa8f6
|
4
|
+
data.tar.gz: af4efdb57b419ff3372f36e1e8d99c19d48ff3809292265b96de8968f099f901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f62fd209b7be92d0161e7d149eb1320f48c9c74580fcb88184e499e01fe0747fa086e4119cdbcde0009477d7f43bff6ecfa26a6f4034ddf0aaeb0161b48a9cc4
|
7
|
+
data.tar.gz: bdf7f8c52e5b1663e8acec4d39dba19d3be1964dfbdf750362514583dcc6c574d10236bd04d715c10941e3c5fb8de8944148759d547c5fb74b278854bba560c8
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
37
37
|
$ rvm list gemsets
|
38
38
|
$ gem install --verbose pwn
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.4.
|
40
|
+
pwn[v0.4.917]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
If you're using a multi-user install of RVM do:
|
@@ -48,7 +48,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
48
48
|
$ rvm list gemsets
|
49
49
|
$ rvmsudo gem install --verbose pwn
|
50
50
|
$ pwn
|
51
|
-
pwn[v0.4.
|
51
|
+
pwn[v0.4.917]:001 >>> PWN.help
|
52
52
|
```
|
53
53
|
|
54
54
|
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
|
@@ -63,7 +63,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
63
63
|
$ gem uninstall --all --executables pwn
|
64
64
|
$ gem install --verbose pwn
|
65
65
|
$ pwn
|
66
|
-
pwn[v0.4.
|
66
|
+
pwn[v0.4.917]:001 >>> PWN.help
|
67
67
|
```
|
68
68
|
|
69
69
|
If you're using a multi-user install of RVM do:
|
@@ -73,7 +73,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
73
73
|
$ rvmsudo gem uninstall --all --executables pwn
|
74
74
|
$ rvmsudo gem install --verbose pwn
|
75
75
|
$ pwn
|
76
|
-
pwn[v0.4.
|
76
|
+
pwn[v0.4.917]:001 >>> PWN.help
|
77
77
|
```
|
78
78
|
|
79
79
|
|
data/bin/pwn_bdba_scan
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'cgi'
|
5
5
|
require 'optparse'
|
6
6
|
require 'pwn'
|
7
|
+
require 'timeout'
|
7
8
|
require 'yaml'
|
8
9
|
|
9
10
|
opts = {}
|
@@ -109,9 +110,7 @@ begin
|
|
109
110
|
|
110
111
|
# Cancel queued scan if it's been queued for more than 90 minutes
|
111
112
|
if scan_progress_busy_duration > queue_timeout.to_i
|
112
|
-
abort_total += 1
|
113
113
|
puts "Scan Queued for More than #{queue_timeout} Seconds."
|
114
|
-
puts "Aborting and Re-Queuing Attempt #{abort_total} of #{scan_attempts}..."
|
115
114
|
scan_progress_resp[:products].select { |p| p[:status] == 'B' }.each do |p|
|
116
115
|
puts "Abort Queued Scan: #{p[:name]}"
|
117
116
|
PWN::Plugins::BlackDuckBinaryAnalysis.abort_product_scan(
|
@@ -120,9 +119,7 @@ begin
|
|
120
119
|
)
|
121
120
|
end
|
122
121
|
|
123
|
-
|
124
|
-
|
125
|
-
raise "ERROR: BDBA Scan Aborted: #{target_file}"
|
122
|
+
raise Timeout::Error, "ERROR: BDBA Scan Aborted: #{target_file}"
|
126
123
|
end
|
127
124
|
|
128
125
|
10.times do
|
@@ -142,6 +139,14 @@ begin
|
|
142
139
|
)
|
143
140
|
|
144
141
|
puts "\nReport Saved to: #{report_path}"
|
142
|
+
rescue Timeout::Error
|
143
|
+
abort_total += 1
|
144
|
+
|
145
|
+
puts "Scan Attempt #{abort_total} of #{scan_attempts}..."
|
146
|
+
retry if abort_total <= scan_attempts.to_i
|
147
|
+
|
148
|
+
puts 'Scan Attempts Reached - Goodbye.'
|
149
|
+
exit 1
|
145
150
|
rescue SystemExit, Interrupt
|
146
151
|
puts "\nGoodbye."
|
147
152
|
rescue StandardError => e
|
data/lib/pwn/version.rb
CHANGED