-
-
Save andreafioraldi/701a24914076ddeb05c74379f96b1dae to your computer and use it in GitHub Desktop.
Quick function to run a binary under socat
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
# 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