pwn 0.4.714 → 0.4.715
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_nmap_discover_tcp_udp +13 -5
- 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: 11a4ec73636955d68c46a65d042ecdea60d97eef02e4e4f1eb0d1263bdeea3d6
|
4
|
+
data.tar.gz: c214f6f4eb5345a07eb99decd1b24b6e3ad01310cc648acaf5fb53bd99327266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ded526f96a9d77627ed4095a6c6b6521dafce4256738beed3b4e3b4a5717e854a9d008e219ac65c3bd51224f7be5c1bba9ef06223c0824d6ac0e286154383a11
|
7
|
+
data.tar.gz: d485cdcab39f05bf0763669e218e7e47d587dd4913224911aa2a7603c30c4bd0803bd1ebc5c88a31a014df4320916a32c370bfa79bfd77555bb6fe56ea543e7a
|
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.715]: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.715]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
@@ -28,6 +28,10 @@ OptionParser.new do |options|
|
|
28
28
|
opts[:results_root] = r
|
29
29
|
end
|
30
30
|
|
31
|
+
options.on('-N', '--no-script', '<Optional - Exclude Nmap Scripts>') do |n|
|
32
|
+
opts[:no_script] = n
|
33
|
+
end
|
34
|
+
|
31
35
|
options.on('-T', '--tor', '<Optional - Source Scans from Tor Nodes>') do |t|
|
32
36
|
opts[:with_tor] = t
|
33
37
|
end
|
@@ -60,6 +64,9 @@ File.new(exclude_file, 'w') unless File.exist?(exclude_file)
|
|
60
64
|
interface = opts[:interface]
|
61
65
|
interface ||= 'eth0'
|
62
66
|
|
67
|
+
no_script = true if opts[:with_tor]
|
68
|
+
no_script ||= false
|
69
|
+
|
63
70
|
with_tor = true if opts[:with_tor]
|
64
71
|
with_tor ||= false
|
65
72
|
|
@@ -251,6 +258,10 @@ begin
|
|
251
258
|
# retransmission attempts on filtered ports.
|
252
259
|
PWN::Plugins::NmapIt.port_scan do |nmap|
|
253
260
|
nmap.proxies = proxy if with_tor
|
261
|
+
unless no_script
|
262
|
+
nmap.default_script = true
|
263
|
+
nmap.update_scriptdb = true
|
264
|
+
end
|
254
265
|
nmap.verbose = true
|
255
266
|
nmap.target_file = target_file
|
256
267
|
nmap.randomize_hosts = true
|
@@ -262,8 +273,6 @@ begin
|
|
262
273
|
nmap.insane_timing = true
|
263
274
|
nmap.skip_discovery = true
|
264
275
|
nmap.syn_scan = true
|
265
|
-
nmap.default_script = true
|
266
|
-
nmap.update_scriptdb = true
|
267
276
|
nmap.ports = [1..65_535]
|
268
277
|
nmap.output_all = latest_tcp_results
|
269
278
|
nmap.min_parallelism = 36
|
@@ -295,9 +304,8 @@ begin
|
|
295
304
|
# Using -T5 template to reduce number of
|
296
305
|
# retransmission attempts on filtered ports.
|
297
306
|
PWN::Plugins::NmapIt.port_scan do |nmap|
|
298
|
-
if with_tor
|
299
|
-
|
300
|
-
else
|
307
|
+
nmap.proxies = proxy if with_tor
|
308
|
+
unless no_script
|
301
309
|
nmap.default_script = true
|
302
310
|
nmap.update_scriptdb = true
|
303
311
|
end
|
data/lib/pwn/version.rb
CHANGED