Skip to content

Instantly share code, notes, and snippets.

@alisade
Last active October 27, 2021 15:22
Show Gist options
  • Save alisade/1da1ae25399e9bfffb558645330a50c9 to your computer and use it in GitHub Desktop.
Save alisade/1da1ae25399e9bfffb558645330a50c9 to your computer and use it in GitHub Desktop.
simple https server
echo -e "HTTP/1.1 200 OK\r\n$(date)\r\n\r\n<h1>hello world from $(hostname) on $(date)</h1>" | sudo ncat -vl --ssl 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment