pwn 0.4.713 → 0.4.715

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa5b6495866a18e1636f4c4be774206d388bfd64e14ce4758b7d32821138f241
4
- data.tar.gz: 13024721078e9383b4497be913aad3ac5b7841a28b88452278fe97bb98665e80
3
+ metadata.gz: 11a4ec73636955d68c46a65d042ecdea60d97eef02e4e4f1eb0d1263bdeea3d6
4
+ data.tar.gz: c214f6f4eb5345a07eb99decd1b24b6e3ad01310cc648acaf5fb53bd99327266
5
5
  SHA512:
6
- metadata.gz: cc878715a99602695d3dda2be2583ca3f9ea27d4c0ac30957fd85115787b6d7721f061bdceb7f88c43198f18a2f7e3ef2b1a091a50563c23a592a730a6da7c5e
7
- data.tar.gz: 47ec9efac5c2824b77fbb6e6c00269c65cdb2c2ef7fe6e607c434166170938844ea9f8018a6898b6ac3e6f0aebc2bdccee04af56c844207e8942ec546e56ecbc
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.713]:001 >>> PWN.help
40
+ pwn[v0.4.715]: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.713]:001 >>> PWN.help
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
- nmap.proxies = proxy
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.713'
4
+ VERSION = '0.4.715'
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.713
4
+ version: 0.4.715
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.