pwn 0.5.165 → 0.5.167

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: 220a6dc9c568e1ef3623a1e32a5d0093dc55c4de9897dd1003d8e94cefd5e409
4
- data.tar.gz: 1ef935ac0f9e18a9d5261bd18fca9e332a0483b6e738aad1d8ca857098187718
3
+ metadata.gz: 11593e950e655277579eec76ad13903d34626a75a3a447aafd510d2ff693d13a
4
+ data.tar.gz: e73406d33b46258e8fbdf880b89807e3ddd164862a9b2e976778eaca47619654
5
5
  SHA512:
6
- metadata.gz: fe40bdedcaedc7a188cca300cd62ebb38093b0fd9cded69be61156b511a6033730c7c04a1f53572b63a716b2896b876e8d700e35caaa540fc0be67552d157033
7
- data.tar.gz: f1296957a40c40ff587da2de3b9713bd5bfa0e7008c93e5e7e85dc607b1c1ea5616458400178005cf3f6dc196e840582b51d50f77ee2be5634d86b67454c23f5
6
+ metadata.gz: '09e82f98797370ba93ba8e16369ae2949e43e602be4e280796799530960316d83abb4f9fc1945ea80eb6262ebd14d901aed23b99deedb79d26882a9001cf4d43'
7
+ data.tar.gz: 3a0cd8c796c916a28ca64941aae0cc5832359866b2d49f84422b537012f309c0600deee68235163bb138aa720e23bb234a240fada722b97431ecbf830e3f2176
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.167]: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.167]: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.167]: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_domain}-#{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.167'
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.167
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.