//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=127.0.0.1;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 »




Comments 

Add your comment

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

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit