Skip to content

Instantly share code, notes, and snippets.

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 thomasxd24/a68b9f1e92507f4fc8a9db45dc84ee49 to your computer and use it in GitHub Desktop.
Save thomasxd24/a68b9f1e92507f4fc8a9db45dc84ee49 to your computer and use it in GitHub Desktop.
socat \
-v -d -d \
TCP-LISTEN:1234,crlf,reuseaddr,fork \
SYSTEM:"
echo HTTP/1.1 200 OK;
echo Content-Type\: text/plain;
echo;
cat /home/cloud/token;
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment