linux commands

Test OpenVPN server on it’s standard UDP port

nc -vzu 1194
  • telnet is so 2020 so use nc which does UDP too
  • -v verbose
  • -z test daemon
  • -u UDP

Get a list of hosts with port “X” open

nmap -oG temp -Pn --open -p 80 192.168.0.* > /dev/null; grep Ports temp
  • -oG temp: output in grepable format to a file
  • –open: only show open ports
  • -Pn: scan the shit out of the network – no host discovery first to limit scan
  • -p 80: this port to scan… can do a range or selection

Leave a Reply

Your email address will not be published. Required fields are marked *