pwn 0.4.938 → 0.4.940

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: f9c5851305863170d62d5245960c1586f69329d30aebfcab6e490caa56eb33d0
4
- data.tar.gz: 9a6364025db0a0bb94537b62e6cb984bf5372c79b1aeb036a353d7a42f3776c4
3
+ metadata.gz: 460a613119553f910db7f4f6fea99db74e595e4df153910a6d7efa81567e1130
4
+ data.tar.gz: 758f19fed91e6e63e889924f8c7c231b11d9c3c6ca9dcc372782a048627cb108
5
5
  SHA512:
6
- metadata.gz: 5103601a156b1268bc7829dc7eb6906e067ff75f4e401eb194bd92b4c00f4e3fc8785c8090471b8d32acfaaa5c2446a8c89a1897ec10b5aacc75e0fd0326a8ef
7
- data.tar.gz: 8f15984c2773b852957e5a82c0ea2574ef6216e5f28154ae5d65ef684635cd17cabcf2c639a1f5af604b4d3d32a47fd38545e81d40d3681f85476b4332a09bcc
6
+ metadata.gz: d2b6cb2a570f9c7dfb04a092fa2b624673c1fc5d07ae216ef72572afd861fc7da92913cf890864105baa4576a719fbf7e4f731964beb60f9023d24f83da3387c
7
+ data.tar.gz: 5363b1ffbce877ad2abbb2eec9be1258099a64db4a75a299896fdfecf0bb571ad2ad2b0c02ba207000271663f484aab40edd9018ac9fad96cbb1ae7e90aa5ce5
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.4.938]:001 >>> PWN.help
40
+ pwn[v0.4.940]: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.938]:001 >>> PWN.help
55
+ pwn[v0.4.940]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.2.2@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.4.938]:001 >>> PWN.help
65
+ pwn[v0.4.940]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
 
@@ -101,7 +101,7 @@ module PWN
101
101
  headers: {
102
102
  authorization: dd_obj[:authz_header]
103
103
  },
104
- payload: http_body,
104
+ payload: http_body.to_json,
105
105
  verify_ssl: false,
106
106
  timeout: request_timeout,
107
107
  open_timeout: request_timeout
@@ -449,9 +449,7 @@ module PWN
449
449
  http_body[:lead] = user_by_username_object.first[:id]
450
450
  end
451
451
 
452
- # http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',') if opts[:tags]
453
- # String should include [] around tag values
454
- http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',').to_s if opts[:tags]
452
+ http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',') if opts[:tags]
455
453
 
456
454
  minimum_severity = opts[:minimum_severity].to_s.strip.chomp.scrub.downcase.capitalize
457
455
  case minimum_severity
@@ -557,14 +555,7 @@ module PWN
557
555
  end
558
556
  end
559
557
 
560
- # TODO: wait for solution to:
561
- # https://github.com/DefectDojo/django-DefectDojo/issues/457
562
- # in order to obtain the unique test resource_uri
563
- # by searching tags for unique identifier (would be better to have a unique test names)
564
-
565
- # http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',') if opts[:tags]
566
- # String should include [] around tag values
567
- http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',').to_s if opts[:tags]
558
+ http_body[:tags] = opts[:tags].to_s.strip.chomp.scrub.gsub("\s,\s", ',').split(',') if opts[:tags]
568
559
 
569
560
  http_body[:test] = opts[:test_resource_uri] if opts[:test_resource_uri]
570
561
 
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.938'
4
+ VERSION = '0.4.940'
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.938
4
+ version: 0.4.940
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.