pwn 0.4.520 → 0.4.523

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: 9055d4138a29af0aaf29d6671972de3fb0bd903d76ee9bcfd6807e13202ad73d
4
- data.tar.gz: 190e35d2c9c8ebc1dcc5bfb34fdfc60f313d5a815a13dcf8ccf1bc46b355cbfd
3
+ metadata.gz: 7bc470b95387f5ab93968d1f368cc48904ae50465b74cbcdddaf4d5211b4ce4f
4
+ data.tar.gz: 6d04dbdb7b479faff47ab162fe03330be7f8ab2b851307167a44d3c0628114e4
5
5
  SHA512:
6
- metadata.gz: 987a56505f9a8460198181f32328c8603d4c49de5fb0712540dd468ac485cc24ed70c3ac68e1287dbd10cc50597e01e32fd417046fbe06ed99a8cc33359e3d59
7
- data.tar.gz: 29e0abf86279e6ca2af1fa6037dd431f812d2c73278c4195a11649e22ba7125070fed6253c6dcc5a100aa1e8564470b1e1e38f515897def9bc5af91e453e84f2
6
+ metadata.gz: 97bfd2924108fdeb1c0762b5cf99f99a1b8094d2687a41f7e0ba501dabf962a815a52e0ed126b15b2c9b715282341da7cbd896dc4a5d531a8f044a455f71b338
7
+ data.tar.gz: 3ac24cdf702f4ade7ea3eeff59efcd812ffaee25f76f8267622495bb3be5c16df8d042176db64c7fc7ef205aefea919e0b9557f450bcc93f5f470478fda43f15
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.520]:001 >>> PWN.help
40
+ pwn[v0.4.523]: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.520]:001 >>> PWN.help
55
+ pwn[v0.4.523]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -12,7 +12,7 @@ OptionParser.new do |options|
12
12
  #{$PROGRAM_NAME} [opts]
13
13
  "
14
14
 
15
- options.on('-tURL', '--target-url=URL', '<Required - Target URL)>') do |t|
15
+ options.on('-uURL', '--target-url=URL', '<Required - Target URL)>') do |t|
16
16
  opts[:target_url] = t
17
17
  end
18
18
 
@@ -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
 
@@ -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.520'
4
+ VERSION = '0.4.523'
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.520
4
+ version: 0.4.523
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -2028,7 +2028,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2028
2028
  - !ruby/object:Gem::Version
2029
2029
  version: '0'
2030
2030
  requirements: []
2031
- rubygems_version: 3.3.20
2031
+ rubygems_version: 3.3.21
2032
2032
  signing_key:
2033
2033
  specification_version: 4
2034
2034
  summary: Automated Security Testing for CI/CD Pipelines & Beyond