Skip to content

Instantly share code, notes, and snippets.

@eruffaldi
Last active March 19, 2026 17:20
Show Gist options
  • Select an option

  • Save eruffaldi/b04c3489e2400ba105b5ddfc8e739771 to your computer and use it in GitHub Desktop.

Select an option

Save eruffaldi/b04c3489e2400ba105b5ddfc8e739771 to your computer and use it in GitHub Desktop.
bash web
exec 3<>/dev/tcp/example.org/80
echo -ne "GET / HTTP/1.1\r\nHost: example.org\r\n\r\n" >&3
cat <&3
exec 3<&-
coproc OPENSSL { openssl s_client -connect www.google.com:443 -quiet 2>/dev/null; }
echo -ne "GET / HTTP/1.1\r\nHost: example.org\r\n\r\n" >&"${OPENSSL[1]}"
cat <&"${OPENSSL[0]}"
exec {OPENSSL[1]}>&-
exec {OPENSSL[0]}>&-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment