pwn 0.4.937 → 0.4.938
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 +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/defect_dojo.rb +7 -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: f9c5851305863170d62d5245960c1586f69329d30aebfcab6e490caa56eb33d0
|
|
4
|
+
data.tar.gz: 9a6364025db0a0bb94537b62e6cb984bf5372c79b1aeb036a353d7a42f3776c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5103601a156b1268bc7829dc7eb6906e067ff75f4e401eb194bd92b4c00f4e3fc8785c8090471b8d32acfaaa5c2446a8c89a1897ec10b5aacc75e0fd0326a8ef
|
|
7
|
+
data.tar.gz: 8f15984c2773b852957e5a82c0ea2574ef6216e5f28154ae5d65ef684635cd17cabcf2c639a1f5af604b4d3d32a47fd38545e81d40d3681f85476b4332a09bcc
|
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.
|
|
40
|
+
pwn[v0.4.938]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.938]: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.
|
|
65
|
+
pwn[v0.4.938]:001 >>> PWN.help
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
|
|
@@ -449,7 +449,9 @@ 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]
|
|
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]
|
|
453
455
|
|
|
454
456
|
minimum_severity = opts[:minimum_severity].to_s.strip.chomp.scrub.downcase.capitalize
|
|
455
457
|
case minimum_severity
|
|
@@ -559,7 +561,10 @@ module PWN
|
|
|
559
561
|
# https://github.com/DefectDojo/django-DefectDojo/issues/457
|
|
560
562
|
# in order to obtain the unique test resource_uri
|
|
561
563
|
# by searching tags for unique identifier (would be better to have a unique test names)
|
|
562
|
-
|
|
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]
|
|
563
568
|
|
|
564
569
|
http_body[:test] = opts[:test_resource_uri] if opts[:test_resource_uri]
|
|
565
570
|
|
data/lib/pwn/version.rb
CHANGED