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 +4 -4
- data/README.md +2 -2
- data/bin/pwn_openvas_vulnscan +7 -0
- data/lib/pwn/plugins/openvas.rb +5 -1
- 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: d48662417de23f29ea2e4a610b7c79477a98ee0164cbc393848ebc5a389015ec
|
4
|
+
data.tar.gz: c3b99f5416f14f38e7d49ddb749a105805a1b72322713ab9dcf93fd3289d2764
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
40
|
+
pwn[v0.4.670]: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.670]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/bin/pwn_openvas_vulnscan
CHANGED
@@ -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
|
)
|
data/lib/pwn/plugins/openvas.rb
CHANGED
@@ -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