pwn 0.4.521 → 0.4.522

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: 60b24aad2f42f980610399a7626128fd8831088c5bf300fb3abb47610833acb0
4
- data.tar.gz: d624ebfa98d3de0e2c62258d95f3512b1c71ab2300b7145cd381e12c8c374fcd
3
+ metadata.gz: 6533b6e61c14117954e65f98867f0ed01525d0be080b483183f73ee1a498fdda
4
+ data.tar.gz: 6f2142e1e87fd1dff7666f74b6df81b06dc60c53017a08680d87664188753045
5
5
  SHA512:
6
- metadata.gz: eeb26d68e7647e8824dc3c821768fb5954ed1a2b84741d9c1ce3b45deaa2e2437e491c10eec07cd417db29b38a6a46bf8df5c7dc213bac03d3e195387be9d031
7
- data.tar.gz: c7674ef30c818c22417d9885d394087b342a534b44fa754964da66af710bce93219e2824d9fca626321d6dfcedf6bb474e84c8cbf2cc8188b37860e4bfec6757
6
+ metadata.gz: 2a12e0c4324052400eae6b28a2f8d74b8b1af3ef5191e3a8fc6190b236991022d0003b91e777e55ecd4c2be0208c865101c2d0504b41f61df0be220dd4987863
7
+ data.tar.gz: f1472201917c401647937174846576536fb6f2ae7d6b7dabb94f51e1d16c9f304c91bcc4934f59d48ef54af468e02bf4b4f58044fecb4918b2e9038e3837423e
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.522]: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.522]: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
 
@@ -58,7 +58,7 @@ begin
58
58
  dir_path ||= '.'
59
59
 
60
60
  report_name = opts[:report_name]
61
- report_name ||= "#{parsed_target_url.host}-#{format('%Y-%m-%d_%H-%M-%S', Time.now)}"
61
+ report_name ||= "#{parsed_target_url.host}-#{Time.now.strftime('%Y-%m-%d_%H-%M-%S')}"
62
62
 
63
63
  start_reporting_server = opts[:start_reporting_server]
64
64
 
@@ -95,7 +95,7 @@ begin
95
95
  )
96
96
 
97
97
  rest_client_resp_hash = {
98
- request_timestamp: format('%Y-%m-%d_%H-%M-%S', Time.now),
98
+ request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
99
99
  http_uri: http_uri,
100
100
  http_method: http_method,
101
101
  http_resp_code: response.code,
@@ -106,7 +106,7 @@ begin
106
106
  RestClient::NotFound => e
107
107
 
108
108
  rest_client_resp_hash = {
109
- request_timestamp: format('%Y-%m-%d_%H-%M-%S', Time.now),
109
+ request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
110
110
  http_uri: http_uri,
111
111
  http_method: http_method,
112
112
  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.522'
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.522
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.