pwn 0.4.719 → 0.4.720
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_defectdojo_reimportscan +7 -1
- data/lib/pwn/plugins/defect_dojo.rb +6 -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: d5127d508798b97f84a9f6bba53a3e1facd1e8df7eb509d0bbc00c27c87d867c
|
4
|
+
data.tar.gz: c8094c41e93b4b9f66a306c6ce3da070eaf4a759fc12bcb1d3b2caad88df7d07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca59a7dfb3be9e0167b787ceaa6a7b44c501f0c50e191c99d00d45d3d3ecf2511197edb754cb9ab09fb1e96774b32f59a5ef0c2bd0af954c8b9e1d2a99352d7
|
7
|
+
data.tar.gz: 109d9153b2a19fa8f05de51e533ee8fa6c05e38ebb51acf39e1789030c54bb622afc167ad865231d075c906fab3e3e0b86a6196b5114e5288a35158894b0d6c8
|
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.720]: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.720]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
@@ -57,6 +57,10 @@ OptionParser.new do |options|
|
|
57
57
|
options.on('-v', '--[no-]verified', '<Optional - flag finding as verified by a tester (defaults to false)') do |v|
|
58
58
|
opts[:verified] = v
|
59
59
|
end
|
60
|
+
|
61
|
+
options.on('-g', '--create-finding-groups', '<Optional - group similar findings into one finding (defaults to false)') do |g|
|
62
|
+
opts[:create_finding_groups] = g
|
63
|
+
end
|
60
64
|
end.parse!
|
61
65
|
|
62
66
|
if opts.empty?
|
@@ -79,6 +83,7 @@ tags = opts[:tags]
|
|
79
83
|
minimum_severity = opts[:minimum_severity]
|
80
84
|
scan_date = opts[:scan_date]
|
81
85
|
verified = opts[:verified]
|
86
|
+
create_finding_groups = opts[:create_finding_groups]
|
82
87
|
|
83
88
|
begin
|
84
89
|
dd_obj = PWN::Plugins::DefectDojo.login(
|
@@ -97,7 +102,8 @@ begin
|
|
97
102
|
tags: tags,
|
98
103
|
minimum_severity: minimum_severity,
|
99
104
|
scan_date: scan_date,
|
100
|
-
verified: verified
|
105
|
+
verified: verified,
|
106
|
+
create_finding_groups: create_finding_groups
|
101
107
|
)
|
102
108
|
rescue StandardError => e
|
103
109
|
raise e
|
@@ -488,7 +488,8 @@ module PWN
|
|
488
488
|
# test_resource_uri: 'optional - alternative to tag names to know which test to reimport',
|
489
489
|
# minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
|
490
490
|
# scan_date: 'optional - date in which scan was kicked off (defaults to now)',
|
491
|
-
# verified: 'optional - flag finding as verified by a tester (defaults to false)'
|
491
|
+
# verified: 'optional - flag finding as verified by a tester (defaults to false)',
|
492
|
+
# create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
|
492
493
|
# )
|
493
494
|
|
494
495
|
public_class_method def self.reimportscan(opts = {})
|
@@ -567,6 +568,8 @@ module PWN
|
|
567
568
|
# Defaults to false
|
568
569
|
opts[:verified] ? (http_body[:verified] = true) : (http_body[:verified] = false)
|
569
570
|
|
571
|
+
opts[:create_finding_groups] ? (http_body[:create_finding_groups_for_all_findings] = true) : (http_body[:create_finding_groups_for_all_findings] = false)
|
572
|
+
|
570
573
|
api_path = 'reimport-scan/'
|
571
574
|
api_path = 'reimportscan/' if api_version == 'v1'
|
572
575
|
|
@@ -735,7 +738,8 @@ module PWN
|
|
735
738
|
test_resource_uri: 'optional - alternative to tag names to know which test to reimport',
|
736
739
|
minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
|
737
740
|
scan_date: 'optional - date in which scan was kicked off (defaults to now)',
|
738
|
-
verified: 'optional - flag finding as verified by a tester (defaults to false)'
|
741
|
+
verified: 'optional - flag finding as verified by a tester (defaults to false)',
|
742
|
+
create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
|
739
743
|
)
|
740
744
|
|
741
745
|
finding_list = #{self}.finding_list(
|
data/lib/pwn/version.rb
CHANGED