pwn 0.4.959 → 0.4.961

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: 6a6db9fa965b43e1da54d41ffd936d510bd9cda4878a2a5ae50b7228dc18fee1
4
- data.tar.gz: ed6c13772d8a3d85984239bb80f6ee45525c13c65054a057c9cabb2aa10bc5e7
3
+ metadata.gz: 20ef74cfd290def00c98a018522a5289dbbd11874e25a715b9b6c86e4bade238
4
+ data.tar.gz: d76261f22ee58d0ab71862d33d55bfaf25b28cc99d32264ebb3354448349e420
5
5
  SHA512:
6
- metadata.gz: 743ef3e9403b79c0d12054c6f77cd51f37a022b7654a4116a8c552ce54a8701a388d02127a58cd99d9806839840c3b1a3332a022d77901e9de9189a7d1674cba
7
- data.tar.gz: cb589e54c538ffdc69edc33287d49846d6c1b6d0646873627754b5d3ab7bb287473682192e6a41875f224fc75dafd9f8e9158176d9a2ee81e59e5321d877c1a3
6
+ metadata.gz: 8dc3dd5a8c4d99ec2054b129551759e2a26b5dbacdee6aad8d58f6623e1fc34742fa0cb7111a5ce52ee1baf47614b4725944f6c81d5495040a0b58ecb16e931f
7
+ data.tar.gz: fb08e83577a72a5e6d7a274a57d2afebfbe5815b0c494c2ff0772e3e1c7ff4c7a994bd131a81f6d76acdc6f80c090f23889647372008c6b5e621379cd3ea5083
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.961]: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.961]: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.961]: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
@@ -146,7 +146,10 @@ begin
146
146
  find_product_attempts = scan_attempts
147
147
  print 'Looking for Product in Apps by Group...'
148
148
  loop do
149
- find_product = scan_progress_resp[:products].find { |p| p[:name] == CGI.escape(File.basename(target_file)) }
149
+ target_basename = File.basename(target_file)
150
+
151
+ find_product = scan_progress_resp[:products].find { |p| p[:name] == target_basename }
152
+ # find_product = scan_progress_resp[:products].find { |p| p[:name] == CGI.escape(target_basename) } if find_product.nil?
150
153
  break unless find_product.nil?
151
154
 
152
155
  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.961'
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.961
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.