pwn 0.4.910 → 0.4.911

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: 0e5b5fcff5cfcc3cd255ad4002d83e380cddcbad9a292f6f49f6b661b9c99042
4
- data.tar.gz: b2b9f09b64164da56b798af7ab4d11d0fb5874ad35295cf32d5aacbdcd3f683a
3
+ metadata.gz: 54d8f72874283d18d229ab99eae0af09d45e4f44aea51673d18a2041a7b7ccb8
4
+ data.tar.gz: 284f1221caadcb0cefd9931accb5d6582e4320c4d77c692edfff715ff9b09b90
5
5
  SHA512:
6
- metadata.gz: 68afcd359bf5660e29902575849e58239717d4116e2673828592c2b39135a780197e059405effd1b752b52c0f621095a269b413d82f789f8a0d992629f794b70
7
- data.tar.gz: 3402edfa4ad389f09753638959884d99055ccb4b0465f09e01684da69185e6125e985aa74c33a1aa7ad28a5d45fe2702d67b1b03e56b8f124143c181277f42ad
6
+ metadata.gz: 8324852ae94bcdd772cfc2476b55a9bc90d4b790d98fdf45b273e572f4a083f92572ba3aa8751fadeb46f4ce829c9108dd53727a700bb246be69169ff228f621
7
+ data.tar.gz: 03d1918d8e38a0ff3ca23e5a96824305a080a264d700ed2ba6910ad2a43f378847c96da8224bdd8ef0b77d361fbafceac100b92d7232014d3e1c3d57a1f91d9c
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.910]:001 >>> PWN.help
40
+ pwn[v0.4.911]: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.910]:001 >>> PWN.help
55
+ pwn[v0.4.911]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn_www_checkip CHANGED
@@ -53,7 +53,7 @@ begin
53
53
  ).to_s.chomp
54
54
  end
55
55
 
56
- puts "[ { \"query\": \"#{target}\" } ]" if ipinfo.nil? && opts[:target].nil?
56
+ puts "[ { \"target\": \"#{target}\" } ]" if ipinfo.nil? && opts[:target].nil?
57
57
 
58
58
  ipinfo = true if ipinfo.nil? && opts[:target]
59
59
  if ipinfo
@@ -60,16 +60,14 @@ module PWN
60
60
 
61
61
  ip_info_resp = []
62
62
  if IPAddress.valid?(target)
63
- if proxy
64
- ip_resp_json = ip_info_rest_call(ip: target, proxy: proxy)
65
- else
66
- ip_resp_json = ip_info_rest_call(ip: target)
67
- end
68
-
63
+ ip_resp_json = ip_info_rest_call(ip: target, proxy: proxy)
64
+ ip_resp_json[:target] = target
69
65
  ip_info_resp.push(ip_resp_json)
70
66
  else
71
67
  Resolv::DNS.new.each_address(target) do |ip|
72
- ip_info_resp.push(ip_info_rest_call(ip: ip))
68
+ ip_resp_json = ip_info_rest_call(ip: ip, proxy: proxy)
69
+ ip_resp_json[:target] = target
70
+ ip_info_resp.push(ip_resp_json)
73
71
  end
74
72
  end
75
73
 
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.910'
4
+ VERSION = '0.4.911'
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.910
4
+ version: 0.4.911
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.