pwn 0.4.669 → 0.4.670

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: e96159a287c2265adb91e39a706e3c0a9548ddd2ba8d074578f2934e2775fe10
4
- data.tar.gz: 2b4974403902f379fa8f2784c77092133f78efd2cba81ab5ca484f1312e4a6e3
3
+ metadata.gz: d48662417de23f29ea2e4a610b7c79477a98ee0164cbc393848ebc5a389015ec
4
+ data.tar.gz: c3b99f5416f14f38e7d49ddb749a105805a1b72322713ab9dcf93fd3289d2764
5
5
  SHA512:
6
- metadata.gz: a430615e3224be664dfe9a5a0c0f0c9bd5c91187bad66f512cddcd2d49eae7774f434d5df04f1460a2643812a93fc6e14ff6920daaeda644d825c7f5309b071e
7
- data.tar.gz: 220f9d349bba6b0ccff98969372369faf2d562ae6de83811accdc8d0c604f86ff0e22fc513564ef487041eaa88e957eed1d29ad986df60ccf83a9e235d7821e3
6
+ metadata.gz: b35d6ecd5fdd6a0c3a33cd5fcd19516ba9e8bdb20c56587af541c2ceff0c348cf3c7828e2bbf04b034979b6bad7ad30a4a8f018219d860dc0cb8e72526b760df
7
+ data.tar.gz: d46298ac157563739c49d686d60df1064cd1cafeecf2d2b02b502c6a3b7804ebf990f9b907ab5382b11c6e868b787e076cd76bd1201b9263869f376379eb114e
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.669]:001 >>> PWN.help
40
+ pwn[v0.4.670]: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.669]:001 >>> PWN.help
55
+ pwn[v0.4.670]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -25,6 +25,10 @@ OptionParser.new do |options|
25
25
  options.on('-pPASSWORD', '--password=PASSWORD', '<Optional - Password to AuthN (Will Prompt if nil)>') do |p|
26
26
  opts[:password] = p
27
27
  end
28
+
29
+ options.on('-fFILTER', '--report-filter=FILTER', '<Optional - GVM Results Filter (Default: "apply_overrides=0 levels=hml rows=1000 min_qod=70 first=1 sort-reverse=severity")>') do |p|
30
+ opts[:password] = p
31
+ end
28
32
  end.parse!
29
33
 
30
34
  if opts.empty?
@@ -46,6 +50,8 @@ password = if opts[:password].nil?
46
50
  opts[:password].to_s.scrub
47
51
  end
48
52
 
53
+ report_filter = opts[:report_filter]
54
+
49
55
  begin
50
56
  start_time = Time.now
51
57
  puts "Started: #{start_time}"
@@ -89,6 +95,7 @@ begin
89
95
  report_type: :csv,
90
96
  report_id: last_report_id,
91
97
  report_dir: report_dir,
98
+ report_filter: report_filter,
92
99
  username: username,
93
100
  password: password
94
101
  )
@@ -147,6 +147,7 @@ module PWN
147
147
  # PWN::Plugins::OpenVAS.save_report(
148
148
  # report_type: 'required report type (csv|itg|pdf|txt|xml)',
149
149
  # report_id: 'required report id to save',
150
+ # report_filter: 'optional - results filter (Default: "")
150
151
  # username: 'required username',
151
152
  # password: 'optional password (will prompt if nil)'
152
153
  # )
@@ -159,6 +160,9 @@ module PWN
159
160
  report_dir
160
161
  )
161
162
 
163
+ report_filter = opts[:report_filter]
164
+ report_filter ||= 'apply_overrides=0 levels=hml rows=1000 min_qod=70 first=1 sort-reverse=severity'
165
+
162
166
  username = opts[:username].to_s.scrub
163
167
 
164
168
  password = if opts[:password].nil?
@@ -203,7 +207,7 @@ module PWN
203
207
  --gmp-username '#{username}' \
204
208
  --gmp-password '#{password}' \
205
209
  socket \
206
- --xml="<get_reports report_id='#{report_id}' format_id='#{format_id}' details='1' />"
210
+ --xml="<get_reports report_id='#{report_id}' format_id='#{format_id}' filter='#{report_filter}' details='1' />"
207
211
  `
208
212
  )
209
213
 
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.669'
4
+ VERSION = '0.4.670'
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.669
4
+ version: 0.4.670
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.