Skip to content

Instantly share code, notes, and snippets.

@andreafioraldi
Forked from superkojiman/soocat.sh
Created November 5, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreafioraldi/701a24914076ddeb05c74379f96b1dae to your computer and use it in GitHub Desktop.
Save andreafioraldi/701a24914076ddeb05c74379f96b1dae to your computer and use it in GitHub Desktop.
Quick function to run a binary under socat
# 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