//View Tip #295
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
$HOST=;for((port=1;port<=65535;++port));do echo -en "$port ";if echo -en "open $HOST $port\nlogout\quit" | telnet 2>/dev/null | grep 'Connected to' > /dev/null;then echo -en "\n\nport $port/tcp is open\n\n";fi;done

View Comments »


Add your comment

Comments are currently disabled
El Prezz
portscan in one line:
nmap -sT
Posted 2008-09-25 17:59:17
Port scan in one line:
nmap -p-
The second "-" means "all ports".
Posted 2009-02-28 13:38:56

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit