Skip to content

Instantly share code, notes, and snippets.

@munho
Forked from NapoleonWils0n/echo_nc.sh
Created May 3, 2017 23:33
Show Gist options
  • Save munho/e61cdcefcf427c483e1d047531fe625e to your computer and use it in GitHub Desktop.
Save munho/e61cdcefcf427c483e1d047531fe625e to your computer and use it in GitHub Desktop.
bash: hex over tcp with netcat and echo
#!/bin/sh
#----------------------------------------------------------------------------------------#
# Hex over TCP with Echo and Netcat #
#----------------------------------------------------------------------------------------#
echo -n -e "x01x18x03" | nc 192.168.1.4 80
# The -n supresses outputting the trailing newline.
# The -e enables the interpretation of backslash escapes -- allowing us to send hex codes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment