Posts Tagged: nbtscan

nmap/nbtscan scan for å finne pc med åpen port

Posted by & filed under Linux, Scripting, Security.

Dette scriptet scanner IP-er fra ei fil og finner ut hvem som har en spesiell port åpen. Lim inn følgende script kode i fila portLookup.sh #!/bin/bash NETWORKTARGET=$1 PORT=$2 FN=”port” # Scan Network Input File for active hosts saving IPS to $FNips.txt nmap -sS -p $PORT -n -iL $NETWORKTARGET -oG – | grep open | awk [...]