Port scan with curl and wget

Your server cannot communicate with another server on a port. You want to verify that port is open or not. But your favorite tools nc and nmap aren’t available and you cannot install them for one reason or another.

In this situation, you can use curl or wget.

$ wget -qS -O-  esxi.example.com:902
220 VMware Authentication Daemon Version 1.10: SSL Required, ServerDaemonProtocol:SOAP, MKSDisplayProtocol:VNC , VMXARGS supported, NFCSSL supported/t

$ curl   esxi.example.com:902
220 VMware Authentication Daemon Version 1.10: SSL Required, ServerDaemonProtocol:SOAP, MKSDisplayProtocol:VNC , VMXARGS supported, NFCSSL supported/t
Advertisements