Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified output for smb_enumshares #2991

Merged
merged 2 commits into from
Feb 14, 2014
Merged

Modified output for smb_enumshares #2991

merged 2 commits into from
Feb 14, 2014

Conversation

R3dy
Copy link
Contributor

@R3dy R3dy commented Feb 14, 2014

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

@wchen-r7
Copy link
Contributor

Works for me. I'll merge it. Thanks.

wchen-r7 added a commit that referenced this pull request Feb 14, 2014
@wchen-r7 wchen-r7 merged commit 0e7074c into rapid7:master Feb 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants