-
-
Save fvbock/f1bd2c35310f4d5940dd4432a0a720a4 to your computer and use it in GitHub Desktop.
bash: hex over tcp with netcat and echo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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