Skip to content

Commit abe4d6c

Browse files
committed
Land rapid7#2991 - Modified output for smb_enumshares
2 parents 518242c + 0e7074c commit abe4d6c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/auxiliary/scanner/smb/smb_enumshares.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def initialize(info={})
3232
[
3333
'hdm',
3434
'nebulus',
35-
'sinn3r'
35+
'sinn3r',
36+
'r3dy'
3637
],
3738
'License' => MSF_LICENSE,
3839
'DefaultOptions' =>
@@ -362,8 +363,10 @@ def run_host(ip)
362363
if shares.empty?
363364
print_status("#{ip}:#{rport} - No shares collected")
364365
else
365-
shares_info = shares.map{|x| "#{x[0]} - #{x[2]} (#{x[1]})" }.join(", ")
366-
print_status("#{ip}:#{rport} - #{shares_info}")
366+
shares_info = shares.map{|x| "#{ip}: #{x[0]} - (#{x[1]}) #{x[2]}" }.join(", ")
367+
shares_info.split(", ").each { |share|
368+
print_good share
369+
}
367370
report_note(
368371
:host => ip,
369372
:proto => 'tcp',

0 commit comments

Comments
 (0)