pwn 0.4.714 → 0.4.716

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: '0249d1b65b57936b80399b3d5676bfd6729da8d29e5da4d0a1385e06e81a100c'
4
+ data.tar.gz: 3eb456af567655ff485238033d3b409dde6a0d36bd82c2c709bad908f0bfa9bf
5
5
  SHA512:
6
- metadata.gz: 9855b87bb082f0d68d14346718a7c37f4dde72cd65460bd1d86fd5b6ebcaf9a3e141469b033ef97481e7ac513ecfc0e6e41bfa5688c445e51778f0c7848be519
7
- data.tar.gz: 02bb5656576a69c16efaa247aa6b3576c63a3089075d85cc82454923900265ea0747772a6d207e09371d9360487b2ad81998d37e1b6f2a967db5b82e388898b3
6
+ metadata.gz: 69d5b29665d3cd99dd584fdb0ad96559941deb73321e63f8ff5a5c312965bc86bf61ee809592450c117a112f5a0376d6207f4c096d8a717d320cbc5bfa5172f5
7
+ data.tar.gz: e799946fdc810711efc928440a1c0f5e031e17f9c5d7e5c598652e2378d3cb5beecd9426b8af9438752ea7e1d4bc37d321993833ac68ec135d4d243043430adf
data/Gemfile CHANGED
@@ -48,7 +48,7 @@ gem 'net-ldap', '0.18.0'
48
48
  gem 'net-openvpn', '0.8.7'
49
49
  gem 'net-smtp', '0.3.3'
50
50
  gem 'nexpose', '7.3.0'
51
- gem 'nokogiri', '1.15.1'
51
+ gem 'nokogiri', '1.15.2'
52
52
  gem 'nokogiri-diff', '0.2.0'
53
53
  gem 'oily_png', '1.2.1'
54
54
  gem 'open3', '0.1.2'
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.716]: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.716]: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[:no_script]
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.716'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.716
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-22 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -534,14 +534,14 @@ dependencies:
534
534
  requirements:
535
535
  - - '='
536
536
  - !ruby/object:Gem::Version
537
- version: 1.15.1
537
+ version: 1.15.2
538
538
  type: :runtime
539
539
  prerelease: false
540
540
  version_requirements: !ruby/object:Gem::Requirement
541
541
  requirements:
542
542
  - - '='
543
543
  - !ruby/object:Gem::Version
544
- version: 1.15.1
544
+ version: 1.15.2
545
545
  - !ruby/object:Gem::Dependency
546
546
  name: nokogiri-diff
547
547
  requirement: !ruby/object:Gem::Requirement