netcat

Start a http server (to test open ports)

while true ; do nc -l -p {port} -c 'echo -e "HTTP/1.1 200 OK\n\n $(date)"'; done

Check if a port is open

nc -zv {ip} {port}

Tags linux command

Back