rapid7/metasploit-framework — pull request #2991 by R3dy (2014-02-14 19:39:10+00:00)
Title: Modified output for smb_enumshares

I modified the output of this module to be more useful.

What it does now is displays each share for a particular host on a separate line with a green [+] this makes it much easier to grep from a spool file and create a list of all observed shares.

The previous version displayed all shares on a single line separated by commas. Not good for sorting results.

Let me know if you have any questions or objections.

Sample Output:

msf auxiliary(smb_enumshares) > run

[*] 169.10.124.122:139 - Unix Samba 3.5.10-125.el6 (Unknown)
[+] 169.10.124.122: weblogs - (DISK)
[+] 169.10.124.122: scriptlogs - (DISK)
[+] 169.10.124.122: webdocs - (DISK)
[+] 169.10.124.122: plugin - (DISK)
[+] 169.10.124.122: webserver - (DISK)
[+] 169.10.124.122: IPC$ - (IPC) IPC Service (sapgwebnp02xx - CIFS (Samba) Server 3.5.10-125.el6)
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(smb_enumshares) > exit