pwn 0.5.165 → 0.5.166

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: 220a6dc9c568e1ef3623a1e32a5d0093dc55c4de9897dd1003d8e94cefd5e409
4
- data.tar.gz: 1ef935ac0f9e18a9d5261bd18fca9e332a0483b6e738aad1d8ca857098187718
3
+ metadata.gz: cf7ab54a1b59e7a1c07512329e58212e1045961dc7106e6b21c62f81039bfead
4
+ data.tar.gz: 107f8c305849e0db635d32992fac3480413713bb9ef3d360481d1cf27845faf6
5
5
  SHA512:
6
- metadata.gz: fe40bdedcaedc7a188cca300cd62ebb38093b0fd9cded69be61156b511a6033730c7c04a1f53572b63a716b2896b876e8d700e35caaa540fc0be67552d157033
7
- data.tar.gz: f1296957a40c40ff587da2de3b9713bd5bfa0e7008c93e5e7e85dc607b1c1ea5616458400178005cf3f6dc196e840582b51d50f77ee2be5634d86b67454c23f5
6
+ metadata.gz: cf16a64537bba5fcc43b3b078e40da52c2b780e592c8ca48e4cc37b7436f80dbb677232fce6b6d7c1ad2bc6b9450d8d52a2c0295c2f9e6789cb7ab5e12866ab5
7
+ data.tar.gz: 66869416a4b462fea13338075694f6bdc465712c3f17506ca0e3e33c0f8643ba5ea7c5e58931be40862c466ff7e07d6bc3b7170e5609890777b9974ac8611ecf
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.5.165]:001 >>> PWN.help
40
+ pwn[v0.5.166]: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.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.165]:001 >>> PWN.help
55
+ pwn[v0.5.166]: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.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.165]:001 >>> PWN.help
65
+ pwn[v0.5.166]: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_crt_sh CHANGED
@@ -33,8 +33,8 @@ begin
33
33
  target_domain = opts[:target_domain]
34
34
  raise 'No target domain provided' if target_domain.nil?
35
35
 
36
- timestamp = Time.now.strftime('%Y-%m-%d %H:%M:%S.%L')
37
- report_path = opts[:report_path] ||= "/tmp/pwn_crt_sh-#{timestamp}.json"
36
+ timestamp = Time.now.strftime('%Y-%m-%d_%H:%M:%S.%L')
37
+ report_path = opts[:report_path] ||= "/tmp/pwn_crt_sh-#{target}-#{timestamp}.json"
38
38
 
39
39
  proxy = opts[:proxy]
40
40
  if proxy
@@ -62,7 +62,8 @@ begin
62
62
  end
63
63
 
64
64
  nokogiri_obj = Nokogiri::HTML.parse(rest_resp.body)
65
- uniq_subd_arr = nokogiri_obj.xpath('//td[@class="outer"]/table/tr/td[5]/text()').map(&:to_s).uniq
65
+ uniq_subd_arr = nokogiri_obj.xpath('//td[@class="outer"]/table/tr/td[5]/text()').map(&:to_s).uniq.sort
66
+ uniq_subd_arr.each { |subd| puts subd }
66
67
 
67
68
  report = {
68
69
  target_domain: target_domain,
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.5.165'
4
+ VERSION = '0.5.166'
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.5.165
4
+ version: 0.5.166
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.