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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c4f3fd5980cf3cb55b8500ad5e814e14bdfbdf017997f1073691dc5d35a7aac
4
- data.tar.gz: 698b56938ae28feffeb3d6889a486dcd137875ba23846ee20dfe20abd83b3b06
3
+ metadata.gz: d18defc5e168dd62b82833b77835fae644b86e6b7126f8224589131d594fa8f6
4
+ data.tar.gz: af4efdb57b419ff3372f36e1e8d99c19d48ff3809292265b96de8968f099f901
5
5
  SHA512:
6
- metadata.gz: ee94b8fd2dba635fc66a4c59945f5f57da920692a4d2a2e5bc844f162f762cf933dbab4efe945d595d7aca225e1598344463c90cd7b60f8bb7e4f758a48b9464
7
- data.tar.gz: 276af70259c1171059ebb08a0b129d8bf9c0c2e1ecc1447644c2fe94768dd410bb035acde91051c096a4d914e5cee4c06b035e44b8b1c6b01c153992a5e356a5
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.916]:001 >>> PWN.help
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.916]:001 >>> PWN.help
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.916]:001 >>> PWN.help
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.916]:001 >>> PWN.help
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
- retry if abort_total <= scan_attempts.to_i
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.916'
4
+ VERSION = '0.4.917'
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.4.916
4
+ version: 0.4.917
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.