pwn 0.4.663 → 0.4.665

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: 9fc057160008602306c98afd5dd5eb649b8d702b304ed885bdf2d7edb4df38be
4
- data.tar.gz: dd6ddbea17943b85f834de5677ba316f4d4c36973237ede1c2951d2fdd4b3c3a
3
+ metadata.gz: 5923e4860e5758cc34bb8e0698b534997bf17cbcfa117d1ce0908fab20e0105a
4
+ data.tar.gz: 3dde8a7b2b293e886b9b017df90e893b22dd0f0911b954bc44a147a9401d1a7a
5
5
  SHA512:
6
- metadata.gz: ef27e033d6dfa1acb58a98c57b49fc79a9d53d7666b79bcf91e6de7ef5359bd748ede77f48e7e0e49eadb8afd946402546bbcc605e702b25b0edbe4a4276003d
7
- data.tar.gz: 6e293cc91415495a397ebbbfdd0c73444328cb74a017ac4dac43de8e1cfa811c5cda934b0b49179bad979406c9d9d19a929e19c92130c27995e96cf7140ec30f
6
+ metadata.gz: e23034ce0921c4efb5018facb7f13d2856dec27e69eb85cab6ce7fbb1a8b941c77aecceaaeaf3799112906beb1c69c3a5ffce58a0f0063f808e88701fc0c675f
7
+ data.tar.gz: 99e8d782a9dca25ecc89b395f103fd89f2ff64a54b0f429274de85244df229c116c474488e492fa22c848464d6f7b1c71f58ad32fad6528bd6a117fe493ab015
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.663]:001 >>> PWN.help
40
+ pwn[v0.4.665]: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.663]:001 >>> PWN.help
55
+ pwn[v0.4.665]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -49,6 +49,9 @@ def csv_diff(opts = {})
49
49
  include_csv_headers = opts[:include_csv_headers]
50
50
  column_names_to_exclude = opts[:column_names_to_exclude]
51
51
 
52
+ # TODO: Exclude the column values for diff consideration
53
+ # while including the columns in the diff...figure out what
54
+ # to do with the columns' values.
52
55
  columns_index_arr = []
53
56
  column_names_to_exclude&.each do |column_name|
54
57
  column_index = smaller_csv.first.find_index(column_name)
@@ -77,11 +77,11 @@ begin
77
77
  )
78
78
 
79
79
  scan_status = scan_status_resp[:status]
80
- break if scan_status != 'initializing' && scan_status != 'pending' && scan_status != 'running' && scan_status != 'publishing'
81
- # break if scan_status == 'completed'
80
+ # break if scan_status != 'initializing' && scan_status != 'pending' && scan_status != 'running' && scan_status != 'publishing'
81
+ break if scan_status == 'completed'
82
82
  end
83
83
 
84
- raise "Scan status reached an unexpected condition: #{scan_status}. Re-verify the scan config for, '#{scan_name}' and try again." unless scan_status == 'completed'
84
+ # raise "Scan status reached an unexpected condition: #{scan_status}. Re-verify the scan config for, '#{scan_name}' and try again." unless scan_status == 'completed'
85
85
 
86
86
  puts 'scan complete.'
87
87
 
@@ -52,9 +52,7 @@ module PWN
52
52
  puts "\nERROR: See #{log_file_path} for more details." if driver_name == 'pwn'
53
53
  when :fatal
54
54
  logger.level = Logger::FATAL
55
- if driver_name == 'pwn'
56
- puts "\n FATAL ERROR: See #{log_file_path} for more details."
57
- end
55
+ puts "\n FATAL ERROR: See #{log_file_path} for more details." if driver_name == 'pwn'
58
56
  when :info, :learning
59
57
  logger.level = Logger::INFO
60
58
  when :unknown
@@ -107,7 +105,7 @@ module PWN
107
105
  "
108
106
  end
109
107
 
110
- # Display Usage for this Module
108
+ # Display Usage for this Module
111
109
 
112
110
  public_class_method def self.help
113
111
  puts "USAGE:
@@ -229,6 +229,8 @@ module PWN
229
229
 
230
230
  json_resp
231
231
  rescue JSON::ParserError => e
232
+ # TODO: Leverage PWN::Plugins::Log & log to JSON file
233
+ # in order to manage memory
232
234
  if e.message.include?('exceeded')
233
235
  if request.length > max_tokens
234
236
  puts "Request Length Too Long: #{request.length}\n"
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.663'
4
+ VERSION = '0.4.665'
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.663
4
+ version: 0.4.665
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.