pwn 0.4.718 → 0.4.720

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: 26afd053ddf66ceb52b537a86b5b9a26ffd84786f6ab3682f205e9159089d05d
4
- data.tar.gz: bbe2d2805ee9ed4412cb96ec4431ec8971f5a606ae12728bef4991617348f77f
3
+ metadata.gz: d5127d508798b97f84a9f6bba53a3e1facd1e8df7eb509d0bbc00c27c87d867c
4
+ data.tar.gz: c8094c41e93b4b9f66a306c6ce3da070eaf4a759fc12bcb1d3b2caad88df7d07
5
5
  SHA512:
6
- metadata.gz: f8f353d22573d94df9ed1a607968fb7b01ac116a6af3bde0a5712804fe38a99edc5796c4e251eff2249e3c4a8cbab29917579a83ab1c67a8cb8034e3364b0b62
7
- data.tar.gz: a027d2f5a316c18459bd5d5a33d9bf08166e833603bfc1ec9c263553829a007888e663d020b5e7cc93da18d1dfce749ef09887d402f544bfb73565d2cab1140e
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.718]:001 >>> PWN.help
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.718]:001 >>> PWN.help
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
@@ -386,7 +386,8 @@ module PWN
386
386
  # tags: 'optional - comma-delimited list of tag names to tie to scan',
387
387
  # minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
388
388
  # scan_date: 'optional - date in which scan was kicked off (defaults to now)',
389
- # verified: 'optional - flag finding as verified by a tester (defaults to false)'
389
+ # verified: 'optional - flag finding as verified by a tester (defaults to false)',
390
+ # create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
390
391
  # )
391
392
 
392
393
  public_class_method def self.importscan(opts = {})
@@ -487,7 +488,8 @@ module PWN
487
488
  # test_resource_uri: 'optional - alternative to tag names to know which test to reimport',
488
489
  # minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
489
490
  # scan_date: 'optional - date in which scan was kicked off (defaults to now)',
490
- # 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)'
491
493
  # )
492
494
 
493
495
  public_class_method def self.reimportscan(opts = {})
@@ -566,6 +568,8 @@ module PWN
566
568
  # Defaults to false
567
569
  opts[:verified] ? (http_body[:verified] = true) : (http_body[:verified] = false)
568
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
+
569
573
  api_path = 'reimport-scan/'
570
574
  api_path = 'reimportscan/' if api_version == 'v1'
571
575
 
@@ -721,7 +725,8 @@ module PWN
721
725
  tags: 'optional - comma-delimited list of tag names to tie to scan',
722
726
  minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
723
727
  scan_date: 'optional - date in which scan was kicked off (defaults to now)',
724
- verified: 'optional - flag finding as verified by a tester (defaults to false)'
728
+ verified: 'optional - flag finding as verified by a tester (defaults to false)',
729
+ create_finding_groups: 'optional - flag to create finding groups (defaults to false)'
725
730
  )
726
731
 
727
732
  reimportscan_response = #{self}.reimportscan(
@@ -733,7 +738,8 @@ module PWN
733
738
  test_resource_uri: 'optional - alternative to tag names to know which test to reimport',
734
739
  minimum_severity: 'optional - minimum finding severity Info||Low||Medium||High||Critical (Defaults to Info)',
735
740
  scan_date: 'optional - date in which scan was kicked off (defaults to now)',
736
- 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)'
737
743
  )
738
744
 
739
745
  finding_list = #{self}.finding_list(
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.718'
4
+ VERSION = '0.4.720'
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.718
4
+ version: 0.4.720
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.