pwn 0.4.663 → 0.4.665
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 +4 -4
- data/README.md +2 -2
- data/bin/pwn_diff_csv_files_w_column_exclude +3 -0
- data/bin/pwn_nessus_cloud_vulnscan +3 -3
- data/lib/pwn/plugins/log.rb +2 -4
- data/lib/pwn/plugins/open_ai.rb +2 -0
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5923e4860e5758cc34bb8e0698b534997bf17cbcfa117d1ce0908fab20e0105a
|
|
4
|
+
data.tar.gz: 3dde8a7b2b293e886b9b017df90e893b22dd0f0911b954bc44a147a9401d1a7a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
40
|
+
pwn[v0.4.665]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.
|
|
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
|
-
|
|
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
|
|
data/lib/pwn/plugins/log.rb
CHANGED
|
@@ -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
|
-
|
|
108
|
+
# Display Usage for this Module
|
|
111
109
|
|
|
112
110
|
public_class_method def self.help
|
|
113
111
|
puts "USAGE:
|
data/lib/pwn/plugins/open_ai.rb
CHANGED
|
@@ -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