Created
June 10, 2016 15:51
-
-
Save superkojiman/1e4fb0fc7bf321b722104b9c13523fc9 to your computer and use it in GitHub Desktop.
Quick function to run a binary under socat
This file contains 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
# Add to .bashrc | |
# You're welcome | |
function soocat { | |
socat tcp-l:${2},reuseaddr,fork EXEC:${1} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment