pwn 0.4.909 → 0.4.911

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: 39bbf680a6045bb2e60bceab8462fb445e59455e32e36c82eda6fd8533b34474
4
- data.tar.gz: 87aa92579f26b3fc91e7b8a9a5e0b96ba6760bf61442bf57cd0c2848d73af505
3
+ metadata.gz: 54d8f72874283d18d229ab99eae0af09d45e4f44aea51673d18a2041a7b7ccb8
4
+ data.tar.gz: 284f1221caadcb0cefd9931accb5d6582e4320c4d77c692edfff715ff9b09b90
5
5
  SHA512:
6
- metadata.gz: bab3d7df059662720204c2e6c110de09ea9975bdfd013335fd1f14d5cabdccce9a83d89e0c7010e3ae7287882ec333be5ca49782a7dad7200aed060895b6c1f2
7
- data.tar.gz: 94a7f8b7282e4e3ea2d3353c3f2889168570ee0f76aa368f121ba4c7337b73802f5bc74740b00d9aee60c12456f2c1688f3561cb3fe5b820d866a52b531024af
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.909]: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.909]: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 "[ { \"public_ip\": \"#{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
 
@@ -272,7 +272,12 @@ module PWN
272
272
  tls: 'optional - boolean listen on TLS-enabled socket (defaults to false)'
273
273
  )
274
274
 
275
- sock_obj = PWN::Plugins::Sock.disconnect(
275
+ cert_obj = #{self}.get_tls_cert(
276
+ target: 'required - target host or ip',
277
+ port: 'optional - target port (defaults to 443)'
278
+ )
279
+
280
+ sock_obj = #{self}.disconnect(
276
281
  sock_obj: 'required - sock_obj returned from #connect method'
277
282
  )
278
283
 
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.909'
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.909
4
+ version: 0.4.911
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.