pwn 0.4.668 → 0.4.670

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: 81bb385ebabab222a3d4da59c7eda736aaac086600e3c9710d6680428e05c023
4
- data.tar.gz: 3227d1e76969e9b89ed2b5ce7090f8f2407288f89aa157b2af33dd4138855e38
3
+ metadata.gz: d48662417de23f29ea2e4a610b7c79477a98ee0164cbc393848ebc5a389015ec
4
+ data.tar.gz: c3b99f5416f14f38e7d49ddb749a105805a1b72322713ab9dcf93fd3289d2764
5
5
  SHA512:
6
- metadata.gz: 262b94064b575f5200f500c4ea41e42bde4050d82f95ce8675ea3166c2ee4370126bcdb7222b3e261496e283dd04d85b80b040d939587817a8606f6e3be15559
7
- data.tar.gz: c2cfd0bc37664e45aca472b1f4682962ad675262fc39363e6830caf05ffaf2e34b27795efdf7b7395cd383e6edd5bcb9a19518162aa7a5de87337335dce83043
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.668]: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.668]:001 >>> PWN.help
55
+ pwn[v0.4.670]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -109,7 +109,7 @@ def csv_diff(opts = {})
109
109
  end
110
110
  else
111
111
  f.puts csv_headers_orig
112
- larger_csv_orig(1..-1).each do |line_arr|
112
+ larger_csv_orig[1..-1].each do |line_arr|
113
113
  line = line_arr.join(',')
114
114
  f.puts line if diff_csv.include?(line_arr)
115
115
  end
@@ -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.668'
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.668
4
+ version: 0.4.670
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.