Skip to content

Instantly share code, notes, and snippets.

@user21944
Last active June 10, 2023 21:46
Show Gist options
  • Save user21944/3f0817b7ca13e822154ebf8fc15d6e32 to your computer and use it in GitHub Desktop.
Save user21944/3f0817b7ca13e822154ebf8fc15d6e32 to your computer and use it in GitHub Desktop.
highly advanced bash tcp server
#!/bin/sh
while true; do /usr/bin/neofetch | nc -lw 0 31337 > /dev/null; done
#!/bin/sh
while true; do printf "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\n$(/usr/bin/neofetch)" | nc -lw 0 31337 > /dev/null; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment