pwn 0.4.507 → 0.4.510
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 +2 -2
- data/bin/pwn_simple_http_server +2 -1
- data/lib/pwn/reports/fuzz.rb +1 -3
- data/lib/pwn/reports/sast.rb +2 -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: 0caa8625d5bcbe7d423eca4644c94dbc753d295922c29c1008947360a22abf8e
|
|
4
|
+
data.tar.gz: d8c8b64f30fc2ce1fffaf61946d72707b7c4cca1f42b47e6d87fabbd2c994846
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f731fdd40c62f92fe9c0ccddf06e3deef886ef58253b41bc89a62c71c55795da25521bba2c32c92c89a0a0fe5264269d8c303cadb51d6c5f5a3605683ec49f3e
|
|
7
|
+
data.tar.gz: daaa0bdec63ee6169d601d22353930f6a41937ab3091bc79657ff49bf789492d7ab619339cc2d76a169f623697438807ab3e032b7f55be8e060e2827fe150ec5
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
|
|
|
37
37
|
$ rvm list gemsets
|
|
38
38
|
$ gem install --verbose pwn
|
|
39
39
|
$ pwn
|
|
40
|
-
pwn[v0.4.
|
|
40
|
+
pwn[v0.4.510]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.1.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.510]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
data/bin/pwn_simple_http_server
CHANGED
data/lib/pwn/reports/fuzz.rb
CHANGED
|
@@ -26,9 +26,7 @@ module PWN
|
|
|
26
26
|
# JSON object Completion
|
|
27
27
|
File.open("#{dir_path}/pwn_fuzz_net_app_proto.json", "w:#{char_encoding}") do |f|
|
|
28
28
|
f.print(
|
|
29
|
-
JSON.pretty_generate(
|
|
30
|
-
results_hash.to_json.force_encoding(char_encoding)
|
|
31
|
-
)
|
|
29
|
+
JSON.pretty_generate(results_hash).force_encoding(char_encoding)
|
|
32
30
|
)
|
|
33
31
|
end
|
|
34
32
|
|
data/lib/pwn/reports/sast.rb
CHANGED
|
@@ -27,7 +27,7 @@ module PWN
|
|
|
27
27
|
# end
|
|
28
28
|
File.write(
|
|
29
29
|
"#{dir_path}/pwn_scan_git_source.json",
|
|
30
|
-
JSON.pretty_generate(results_hash
|
|
30
|
+
JSON.pretty_generate(results_hash)
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
html_report = %q{<!DOCTYPE HTML>
|
|
@@ -176,7 +176,7 @@ module PWN
|
|
|
176
176
|
var sast_module = data['sast_module'].split('::')[2];
|
|
177
177
|
var sast_test_case = sast_module.replace(/\.?([A-Z])/g, function (x,y){ if (sast_module.match(/\.?([A-Z][a-z])/g) ) { return "_" + y.toLowerCase(); } else { return y.toLowerCase(); } }).replace(/^_/g, "");
|
|
178
178
|
|
|
179
|
-
return '<tr><td style="width:150px;" align="left"><a href="https://github.com/0dayinc/pwn/tree/master/lib/' + htmlEntityEncode(sast_dirname) + '/' + htmlEntityEncode(sast_test_case) + '.rb" target="_blank">' + htmlEntityEncode(data['sast_module'].split("::")[2]) + '</a><br /><a href="' + htmlEntityEncode(data['nist_800_53_uri']) + '" target="_blank">NIST 800-53:' + htmlEntityEncode(data['section']) + '</a><a href="' + htmlEntityEncode(data['cwe_uri']) + '" target="_blank">CWE:' + htmlEntityEncode(data['cwe_id']) + '</a></td></tr>';
|
|
179
|
+
return '<tr><td style="width:150px;" align="left"><a href="https://github.com/0dayinc/pwn/tree/master/lib/' + htmlEntityEncode(sast_dirname) + '/' + htmlEntityEncode(sast_test_case) + '.rb" target="_blank">' + htmlEntityEncode(data['sast_module'].split("::")[2]) + '</a><br /><br /><a href="' + htmlEntityEncode(data['nist_800_53_uri']) + '" target="_blank">NIST 800-53: ' + htmlEntityEncode(data['section']) + '</a><br /><br /><a href="' + htmlEntityEncode(data['cwe_uri']) + '" target="_blank">CWE:' + htmlEntityEncode(data['cwe_id']) + '</a></td></tr>';
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
{
|
data/lib/pwn/version.rb
CHANGED