pwn 0.4.787 → 0.4.788

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: f35306bdb225847ae25667d82732b50a9a5112ae1d11734b05c8d1f6a6fa15cf
4
- data.tar.gz: f15ff310aab91ecf8fefd3ff661b6abf091b190c5f3e1b24c9aa56c6da034e93
3
+ metadata.gz: 800aa942d00d995458f49f4b8e4c997a2a2087b2a8707eae5f3372ffdbc9dfbd
4
+ data.tar.gz: 52fb2482869d31daf470a3a23385d9b220527eda53f3eb7e5624e462de3d0a44
5
5
  SHA512:
6
- metadata.gz: 523cfc67f6e9e2f386de251d9923a43eed2aa081d162705a9b2e0e78eaab15f8e0631217ca1ddc24ba017dd4eff2d83ea860a6431dde91dbab637a69ec53d5f1
7
- data.tar.gz: c5960eb73849a7542dca3cdef8cf1599433c86fbf6d18df5c9033ec2e0622f008d261f2ee3f387857424c83dcaeadf9cde241a2a16bdb9e35d3cc34ab303edbd
6
+ metadata.gz: 4f148b54202627d30a9d53fd8085b0a6a6414d44b88e7fec756a0f45863f5983eb8800845a8eb84f9fc86693fd1dbd2e62329c6092de8ed82c986712fd004158
7
+ data.tar.gz: c1dc31cb2701303af1f009db266797eb5343d1021ae304b0200a0c902acea64b7f92f1a9f9ece1d36a23ce105214864e8b296300e082c6b50a4e09e7cb66e67c
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.787]:001 >>> PWN.help
40
+ pwn[v0.4.788]: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.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.787]:001 >>> PWN.help
55
+ pwn[v0.4.788]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn_bdba_scan CHANGED
@@ -27,6 +27,10 @@ OptionParser.new do |options|
27
27
  opts[:report_path] = r
28
28
  end
29
29
 
30
+ options.on('-R', '--report-only', '<Optional - Only Generate a Black Duck Binary Analysis Scan Report for an Existing Scan (Default: false)>') do |o|
31
+ opts[:report_only] = o
32
+ end
33
+
30
34
  options.on('-tTYPE', '--report-type=TYPE', '<Optional - Black Duck Binary Analysis Scan Report Type csv_libs|csv_vulns|pdf (Default: csv_vulns)>') do |t|
31
35
  opts[:report_type] = t
32
36
  end
@@ -58,6 +62,8 @@ begin
58
62
  report_path = opts[:report_path]
59
63
  raise "ERROR: BDBA Report Path Not Provided: #{report_path}" if report_path.nil?
60
64
 
65
+ report_only = opts[:report_only] ||= false
66
+
61
67
  report_type_str = opts[:report_type] ||= 'csv_vulns'
62
68
  report_type = report_type_str.to_s.to_sym
63
69
 
@@ -71,12 +77,14 @@ begin
71
77
  sorted_parent_arr = parent_arr.sort_by { |g| g[:id] }
72
78
  parent_id = sorted_parent_arr.last[:id]
73
79
 
74
- puts "Uploading/Scanning: #{target_file}"
75
- PWN::Plugins::BlackDuckBinaryAnalysis.upload_file(
76
- token: token,
77
- file: target_file,
78
- group_id: parent_id
79
- )
80
+ unless report_only
81
+ puts "Uploading/Scanning: #{target_file}"
82
+ PWN::Plugins::BlackDuckBinaryAnalysis.upload_file(
83
+ token: token,
84
+ file: target_file,
85
+ group_id: parent_id
86
+ )
87
+ end
80
88
 
81
89
  scan_progress_resp = {}
82
90
  loop do
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.787'
4
+ VERSION = '0.4.788'
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.787
4
+ version: 0.4.788
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.