Skip to content

Commit 199ae04

Browse files
author
Brent Cook
committed
fix more duplicate port/ip things
1 parent ba40d0e commit 199ae04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/smb/smb_enumshares.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def get_files_info(ip, rport, shares, info)
361361
subdirs.shift
362362
next
363363
end
364-
header = "#{ip}:#{rport}"
364+
header = ""
365365
if simple.client.default_domain and simple.client.default_name
366366
header << " \\\\#{simple.client.default_domain}"
367367
end
@@ -408,7 +408,7 @@ def get_files_info(ip, rport, shares, info)
408408
end
409409
subdirs.shift
410410
end
411-
print_status("#{ip}:#{rport} - Spider #{x} complete.") unless datastore['ShowFiles']
411+
print_status("Spider #{x} complete.") unless datastore['ShowFiles']
412412
end
413413
unless detailed_tbl.rows.empty?
414414
if datastore['LogSpider'] == '1'
@@ -458,7 +458,7 @@ def run_host(ip)
458458
if shares.empty?
459459
print_status("No shares collected")
460460
else
461-
shares_info = shares.map{|x| "#{ip}:#{rport} - #{x[0]} - (#{x[1]}) #{x[2]}" }.join(", ")
461+
shares_info = shares.map{|x| "#{x[0]} - (#{x[1]}) #{x[2]}" }.join(", ")
462462
shares_info.split(", ").each { |share|
463463
print_good share
464464
}

0 commit comments

Comments
 (0)