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 +4 -4
- data/README.md +2 -2
- data/bin/pwn_bdba_scan +14 -6
- 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: 800aa942d00d995458f49f4b8e4c997a2a2087b2a8707eae5f3372ffdbc9dfbd
|
4
|
+
data.tar.gz: 52fb2482869d31daf470a3a23385d9b220527eda53f3eb7e5624e462de3d0a44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
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