pwn 0.4.959 → 0.4.960

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a6db9fa965b43e1da54d41ffd936d510bd9cda4878a2a5ae50b7228dc18fee1
4
- data.tar.gz: ed6c13772d8a3d85984239bb80f6ee45525c13c65054a057c9cabb2aa10bc5e7
3
+ metadata.gz: 755bbc5cdfeab1bd65cd011562cd4b5b996fded1a7a6bd0b47db234c48f840d6
4
+ data.tar.gz: b1c46889926517b9afc0a610fa31b7c16ec72d942f84a93bcdee8e948544c605
5
5
  SHA512:
6
- metadata.gz: 743ef3e9403b79c0d12054c6f77cd51f37a022b7654a4116a8c552ce54a8701a388d02127a58cd99d9806839840c3b1a3332a022d77901e9de9189a7d1674cba
7
- data.tar.gz: cb589e54c538ffdc69edc33287d49846d6c1b6d0646873627754b5d3ab7bb287473682192e6a41875f224fc75dafd9f8e9158176d9a2ee81e59e5321d877c1a3
6
+ metadata.gz: a3c1b68944afc2aea6ad4e9b2e9f37da6080a4021bf4a382abb3a6bf302263ca8ac67a451be61c71939f3cad6bb0d0f18d190bca298a7715f4e09122cbb50e0c
7
+ data.tar.gz: 17fe161a41641c1b2a0467789a1a78de8eece85f532c26d4695d2f9e80c37feb88a0c591f53640c9690471f368997f17bacac56a4e5570cced5c733b11259089
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.4.959]:001 >>> PWN.help
40
+ pwn[v0.4.960]: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.3.0@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.959]:001 >>> PWN.help
55
+ pwn[v0.4.960]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.0@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.4.959]:001 >>> PWN.help
65
+ pwn[v0.4.960]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
data/bin/pwn_bdba_scan CHANGED
@@ -147,6 +147,7 @@ begin
147
147
  print 'Looking for Product in Apps by Group...'
148
148
  loop do
149
149
  find_product = scan_progress_resp[:products].find { |p| p[:name] == CGI.escape(File.basename(target_file)) }
150
+ find_product = scan_progress_resp[:products].find { |p| p[:name] == File.basename(target_file) } if find_product.nil?
150
151
  break unless find_product.nil?
151
152
 
152
153
  find_product_attempts += 1
@@ -17,22 +17,10 @@ OptionParser.new do |options|
17
17
  end
18
18
  end.parse!
19
19
 
20
- if opts.empty?
21
- puts `#{$PROGRAM_NAME} --help`
22
- exit 1
23
- end
24
-
25
- if opts[:bind_ip]
26
- bind_ip = opts[:bind_ip]
27
- else
28
- bind_ip = '127.0.0.1'
29
- end
20
+ bind_ip = opts[:bind_ip] || '127.0.0.1'
30
21
 
31
- if opts[:port]
32
- port = opts[:port].to_i
33
- else
34
- port = 3333
35
- end
22
+ port = opts[:port].to_i
23
+ port = 3333 if port.zero?
36
24
 
37
25
  begin
38
26
  system(
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.959'
4
+ VERSION = '0.4.960'
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.959
4
+ version: 0.4.960
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.