pwn 0.4.714 → 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: bf2e8d7d44619d1b186edb41fa5da9b565ee08014ab7f5a3478124a01089dc5f
4
- data.tar.gz: 23c73f93eeca9794b01b9550e5658a28a2ca0adceae55986e0d3694334433839
3
+ metadata.gz: 11a4ec73636955d68c46a65d042ecdea60d97eef02e4e4f1eb0d1263bdeea3d6
4
+ data.tar.gz: c214f6f4eb5345a07eb99decd1b24b6e3ad01310cc648acaf5fb53bd99327266
5
5
  SHA512:
6
- metadata.gz: 9855b87bb082f0d68d14346718a7c37f4dde72cd65460bd1d86fd5b6ebcaf9a3e141469b033ef97481e7ac513ecfc0e6e41bfa5688c445e51778f0c7848be519
7
- data.tar.gz: 02bb5656576a69c16efaa247aa6b3576c63a3089075d85cc82454923900265ea0747772a6d207e09371d9360487b2ad81998d37e1b6f2a967db5b82e388898b3
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.714]: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.714]: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.714'
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.714
4
+ version: 0.4.715
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.