pwn 0.4.521 → 0.4.524

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: 60b24aad2f42f980610399a7626128fd8831088c5bf300fb3abb47610833acb0
4
- data.tar.gz: d624ebfa98d3de0e2c62258d95f3512b1c71ab2300b7145cd381e12c8c374fcd
3
+ metadata.gz: a25f229c9216eca02d721249e3799f6b550772cc0356a8f7654fbeee3f61281f
4
+ data.tar.gz: 487b0a1c4a393f7a9878b311c5c84dde861570486b8b0d327877643dddef54f4
5
5
  SHA512:
6
- metadata.gz: eeb26d68e7647e8824dc3c821768fb5954ed1a2b84741d9c1ce3b45deaa2e2437e491c10eec07cd417db29b38a6a46bf8df5c7dc213bac03d3e195387be9d031
7
- data.tar.gz: c7674ef30c818c22417d9885d394087b342a534b44fa754964da66af710bce93219e2824d9fca626321d6dfcedf6bb474e84c8cbf2cc8188b37860e4bfec6757
6
+ metadata.gz: 24b915bbb16d51d36eab34c1576c650da54d6edaeaf00d70b2ab37dd4808e5394b51e22550dd948222a290991fbd867babfafb5bcfec752d41143a7b2b4d2755
7
+ data.tar.gz: 7f97bf77d74102c03b2b5b1c52d98dc4163bd096a752dfb9291c5eb6f58acd3bb5755dd5e3c7bb2920124f343c350bf8ef3ec8cba0c99c44408392aeb0932550
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.521]:001 >>> PWN.help
40
+ pwn[v0.4.524]: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.1.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.521]:001 >>> PWN.help
55
+ pwn[v0.4.524]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -28,7 +28,7 @@ OptionParser.new do |options|
28
28
  opts[:wordlist] = w
29
29
  end
30
30
 
31
- options.on('-nREPORTNAME', '--report-name=REPORTNAME', '<Optional Report Name (Defaults to, "<TARGET_URL_HOST>-<format("%Y-%m-%d_%H-%M-%S", Time.now)>")>') do |n|
31
+ options.on('-nREPORTNAME', '--report-name=REPORTNAME', '<Optional Report Name (Defaults to, "<TARGET_URL_HOST>-<Time.now.strftime("%Y-%m-%d_%H-%M-%S")>")>') do |n|
32
32
  opts[:report_name] = n
33
33
  end
34
34
 
@@ -44,8 +44,6 @@ end
44
44
 
45
45
  begin
46
46
  target_url = opts[:target_url]
47
- raise "ERROR: Invalid URL #{target_url}\nBe sure to include URL scheme (e.g. http://)" if target_url =~ URI::DEFAULT_PARSER.make_regexp.nil?
48
-
49
47
  parsed_target_url = URI.parse(target_url)
50
48
 
51
49
  wordlist = opts[:wordlist]
@@ -58,7 +56,7 @@ begin
58
56
  dir_path ||= '.'
59
57
 
60
58
  report_name = opts[:report_name]
61
- report_name ||= "#{parsed_target_url.host}-#{format('%Y-%m-%d_%H-%M-%S', Time.now)}"
59
+ report_name ||= "#{parsed_target_url.host}-#{Time.now.strftime('%Y-%m-%d_%H-%M-%S')}"
62
60
 
63
61
  start_reporting_server = opts[:start_reporting_server]
64
62
 
@@ -80,7 +78,7 @@ begin
80
78
 
81
79
  next if wordlist_line.match?(/^#/)
82
80
 
83
- http_methods = %i[GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE]
81
+ http_methods = %i[GET HEAD POST PUT DELETE OPTIONS TRACE]
84
82
 
85
83
  http_methods.each do |http_method|
86
84
  begin
@@ -88,14 +86,14 @@ begin
88
86
  rest_client_resp_hash = {}
89
87
  http_uri = "#{target_url}/#{wordlist_line}"
90
88
  rest_client = PWN::Plugins::TransparentBrowser.open(browser_type: :rest)::Request
91
- response = rest_client_request.execute(
89
+ response = rest_client.execute(
92
90
  method: http_method,
93
91
  url: http_uri,
94
92
  verify_ssl: false
95
93
  )
96
94
 
97
95
  rest_client_resp_hash = {
98
- request_timestamp: format('%Y-%m-%d_%H-%M-%S', Time.now),
96
+ request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
99
97
  http_uri: http_uri,
100
98
  http_method: http_method,
101
99
  http_resp_code: response.code,
@@ -106,7 +104,7 @@ begin
106
104
  RestClient::NotFound => e
107
105
 
108
106
  rest_client_resp_hash = {
109
- request_timestamp: format('%Y-%m-%d_%H-%M-%S', Time.now),
107
+ request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
110
108
  http_uri: http_uri,
111
109
  http_method: http_method,
112
110
  http_resp_code: e.response.code,
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.521'
4
+ VERSION = '0.4.524'
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.521
4
+ version: 0.4.524
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.