pwn 0.4.865 → 0.4.866
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_shodan_search +0 -4
- data/lib/pwn/plugins/burp_suite.rb +2 -2
- data/lib/pwn/plugins/shodan.rb +2 -0
- 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: b6055d9f27f68d7c53bbb035c857bb78126e8dd9e65d511d51653d967fac9e97
|
4
|
+
data.tar.gz: 256fb4831c0be42992788c95f4de533b431bca48403a78a270c790248ed312dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf19b2e8d064eae6fbd59fa3cda7e797456fa4a1971a2726bbcc90b4e9ecaedf6e2882c5839a6044cab93d6f0d8e57f4277273a43201f5044f2a0776fb21bc7
|
7
|
+
data.tar.gz: b5c436c6ea7870b2d0398452392884f23f5e6d80c9e41dec54800435239d962ae37afe26c5ae5faaf198d5510059d1d9abd636cec3a3b0240070908d52b824b7
|
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.
|
40
|
+
pwn[v0.4.866]: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.866]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/bin/pwn_shodan_search
CHANGED
@@ -84,10 +84,6 @@ begin
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
File.write(raw_query_results_file, JSON.pretty_generate(raw_results_arr))
|
87
|
-
rescue JSON::GeneratorError
|
88
|
-
# Sometimes we get source sequence is illegal/malformed utf-8
|
89
|
-
# errors, so we still attempt to write without pretty_generate
|
90
|
-
File.write(raw_query_results_file, raw_results_arr.to_json)
|
91
87
|
rescue SystemExit, Interrupt
|
92
88
|
puts "\nGoodbye."
|
93
89
|
end
|
@@ -100,7 +100,7 @@ module PWN
|
|
100
100
|
out_of_scope_arr = out_of_scope.select do |os|
|
101
101
|
URI.parse(uri).scheme =~ /#{os[:protocol]}/ &&
|
102
102
|
URI.parse(uri).host =~ /#{os[:host]}/ &&
|
103
|
-
URI.parse(uri).path =~ /#{os[:file]}/
|
103
|
+
(URI.parse(uri).path =~ /#{os[:file]}/ || URI.parse(uri).path == '')
|
104
104
|
end
|
105
105
|
return false unless out_of_scope_arr.empty?
|
106
106
|
|
@@ -108,7 +108,7 @@ module PWN
|
|
108
108
|
in_scope_arr = in_scope.select do |is|
|
109
109
|
URI.parse(uri).scheme =~ /#{is[:protocol]}/ &&
|
110
110
|
URI.parse(uri).host =~ /#{is[:host]}/ &&
|
111
|
-
URI.parse(uri).path =~ /#{is[:file]}/
|
111
|
+
(URI.parse(uri).path =~ /#{is[:file]}/ || URI.parse(uri).path == '')
|
112
112
|
end
|
113
113
|
return false if in_scope_arr.empty?
|
114
114
|
|
data/lib/pwn/plugins/shodan.rb
CHANGED
@@ -104,6 +104,8 @@ module PWN
|
|
104
104
|
else
|
105
105
|
raise @@logger.error("Unsupported HTTP Method #{http_method} for #{self} Plugin")
|
106
106
|
end
|
107
|
+
response_body_scrubbed = response.body.to_s.scrub
|
108
|
+
response.body = response_body_scrubbed
|
107
109
|
response
|
108
110
|
rescue RestClient::TooManyRequests
|
109
111
|
print 'Too many requests. Sleeping 10s...'
|
data/lib/pwn/version.rb
CHANGED