2 lines
108 B
Bash
2 lines
108 B
Bash
nmap --script smb* -p $(nmap $1 -p- | grep open | awk -F '/' '{print $1}' | tr '\n' ',' | sed 's/.$//') $1
|