pwn 0.4.719 → 0.4.720

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5a7a93b7b534675f369a97e9ab0654d485a9d6c0f6c1b954011d5a95c000391
4
- data.tar.gz: cbd332f8a8577d3438348ff5a6205152f4a432fc15071e7e0a92db9e90d7082b
3
+ metadata.gz: d5127d508798b97f84a9f6bba53a3e1facd1e8df7eb509d0bbc00c27c87d867c
4
+ data.tar.gz: c8094c41e93b4b9f66a306c6ce3da070eaf4a759fc12bcb1d3b2caad88df7d07
5
5
  SHA512:
6
- metadata.gz: 7227ac0c69e95f9362712d757db641959c3507fe17511c2f0dbd7a19b454e730c9a51c394a553f463b3d2e47020add3cb5548270524f00d0e0547e7dc09cefac
7
- data.tar.gz: 1c623f506c519b69fea6e602205e3c9ff8f20a618210ea524fd55f6870e7e5f0e33cf1a883936819a1dd6cbc8d4f3faf8879f28cd40de7e60f6b716a0f491d28
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.719]: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.719]: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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.719'
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.719
4
+ version: 0.4.720
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.