$ : </dev/tcp/127.0.0.1/80
For times when netcat isn't available.
Will throw a Connection refused message if a port is closed.
Scriptable:
(: </dev/tcp/127.0.0.1/80) &>/dev/null && echo "OPEN" || echo "CLOSED"
Diff your entire server config at ScriptRock.com
0sem comentários ainda