pwn 0.4.523 → 0.4.526

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: 7bc470b95387f5ab93968d1f368cc48904ae50465b74cbcdddaf4d5211b4ce4f
4
- data.tar.gz: 6d04dbdb7b479faff47ab162fe03330be7f8ab2b851307167a44d3c0628114e4
3
+ metadata.gz: a4983cf7b88510c922dff044a69285eefcc0a54c4ad983c0ea50a65b394eb87a
4
+ data.tar.gz: eccb999e2da3f8822969b399a42d6326259fecace34135050724ed4489d9e04e
5
5
  SHA512:
6
- metadata.gz: 97bfd2924108fdeb1c0762b5cf99f99a1b8094d2687a41f7e0ba501dabf962a815a52e0ed126b15b2c9b715282341da7cbd896dc4a5d531a8f044a455f71b338
7
- data.tar.gz: 3ac24cdf702f4ade7ea3eeff59efcd812ffaee25f76f8267622495bb3be5c16df8d042176db64c7fc7ef205aefea919e0b9557f450bcc93f5f470478fda43f15
6
+ metadata.gz: a164203055778c7a56d16f69ef43e72e0462355182b8508b7761a82b100be718a5dd040b2997e03d18b277e70ee3f8ccf0990ce815331c6ebece95a6fb200929
7
+ data.tar.gz: 96ec62fcf80a95c483d351d92ddae215c46f5742b5377da82077cd418aedf32e05d3eade498fcaae5b82ecbc91d1ed338cf2084f10d708843faa34e3f5270432
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.523]:001 >>> PWN.help
40
+ pwn[v0.4.526]: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.523]:001 >>> PWN.help
55
+ pwn[v0.4.526]: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>-<Time.now.strftime("%Y-%m-%d_%H-%M-%S")>")>') do |n|
31
+ options.on('-nREPORTNAME', '--report-name=REPORTNAME', '<Optional Report Name (Defaults to, "<TARGET_URL_HOST>-<File.basename(wordlist)>-<Time.now.strftime("%Y-%m-%d_%H-%M-%S")>")>') do |n|
32
32
  opts[:report_name] = n
33
33
  end
34
34
 
@@ -56,7 +56,7 @@ begin
56
56
  dir_path ||= '.'
57
57
 
58
58
  report_name = opts[:report_name]
59
- report_name ||= "#{parsed_target_url.host}-#{Time.now.strftime('%Y-%m-%d_%H-%M-%S')}"
59
+ report_name ||= "#{parsed_target_url.host}-#{File.basename(wordlist)}-#{Time.now.strftime('%Y-%m-%d_%H-%M-%S')}"
60
60
 
61
61
  start_reporting_server = opts[:start_reporting_server]
62
62
 
@@ -78,7 +78,7 @@ begin
78
78
 
79
79
  next if wordlist_line.match?(/^#/)
80
80
 
81
- http_methods = %i[GET HEAD POST PUT DELETE CONNECT OPTIONS TRACE]
81
+ http_methods = %i[GET HEAD POST PUT DELETE OPTIONS TRACE]
82
82
 
83
83
  http_methods.each do |http_method|
84
84
  begin
@@ -97,7 +97,7 @@ begin
97
97
  http_uri: http_uri,
98
98
  http_method: http_method,
99
99
  http_resp_code: response.code,
100
- http_resp: response.body
100
+ http_resp: response.body[0..300]
101
101
  }
102
102
  rescue RestClient::Forbidden,
103
103
  RestClient::BadRequest,
@@ -108,7 +108,7 @@ begin
108
108
  http_uri: http_uri,
109
109
  http_method: http_method,
110
110
  http_resp_code: e.response.code,
111
- http_resp: e.response.body
111
+ http_resp: e.response.body[0..300]
112
112
  }
113
113
  next
114
114
  ensure
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.523'
4
+ VERSION = '0.4.526'
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.523
4
+ version: 0.4.526
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.