Skip to content

Instantly share code, notes, and snippets.

@andreafortuna
Created July 24, 2016 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andreafortuna/745c9d5ad68c1bc24c27e7cc8d8bb6f3 to your computer and use it in GitHub Desktop.
Save andreafortuna/745c9d5ad68c1bc24c27e7cc8d8bb6f3 to your computer and use it in GitHub Desktop.
#!/bin/sh
nmap $1 -p 445 --open -oG - | grep "Host:" | cut -d " " -f 2 | uniq | xargs -I '{}' sh -c 'echo "Scan {}";echo "---------";smbclient -L//{} -N'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment