oneliners/bash/open_ports_with_telnet.sh

6 lines
157 B
Bash
Raw Normal View History

2021-01-24 15:48:33 +01:00
#!/bin/bash
# check state for specific ports on target
for i in 80 443; do echo -e '\x1dclose\x0d' | telnet google.com $i >/dev/null; echo "$i : $?"; done