pwn 0.4.664 → 0.4.666

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: d231662348a2f93ca5d2c282ba395848dc3a9f1cbac00fd5a033787ca95d21c4
4
- data.tar.gz: 1e6ec131ce26a248425bdc8fa36d30eecb844d675092c3ac12e12c8e728c7079
3
+ metadata.gz: 668626b1a3332cf0b09f04a683d7b79462724328afd3535a3d47652b120aca93
4
+ data.tar.gz: 921a004b8a3bcf11031589da46b45b3e347f3cd6a7fe33854adaf3f61f2cf9ef
5
5
  SHA512:
6
- metadata.gz: 35b1ccc8c208aa3070ed01a7251bf86b2be58b8f6b6da55c6e89f3043a45d3553ab68d28919767d285e662fae6c5887359b5333f0f16ae38bf23e0a5c96577c1
7
- data.tar.gz: 759ac72f2f7af9b2c323c1d8fcc28e3cb2f1468aaf2d81d1cbdc52856f5f28c7a663ef804a2e8303f41dff7b3dd93eca96d435e4a91ad42b0b6b958d56587481
6
+ metadata.gz: 9e1b117de7f4eceaf24145de0f8923394fb225356a7b79bd6024548476ba3770aa829c9cb65830a5eda93f280b79acbb6ecaf75178262ec9b6c2790ea34f37c0
7
+ data.tar.gz: 03de28428d438c9394ca0254ca7f5093e5c8e6b23d4f217edb8fdc88edaa33dc0e7be5d643c2282e6d13f2a95e834e1809cb10d6530ae68658ed0b0cf285b692
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.664]:001 >>> PWN.help
40
+ pwn[v0.4.666]: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.664]:001 >>> PWN.help
55
+ pwn[v0.4.666]: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
 
@@ -79,6 +79,11 @@ module PWN
79
79
  sleep 3
80
80
 
81
81
  response
82
+ rescue RestClient::ExceptionWithResponse => e
83
+ puts "#{base_nessus_cloud_api_uri}/#{rest_call}"
84
+ puts params
85
+ puts http_body
86
+ raise e
82
87
  rescue StandardError, SystemExit, Interrupt => e
83
88
  raise e
84
89
  end
@@ -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.664'
4
+ VERSION = '0.4.666'
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.664
4
+ version: 0.4.666
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.