Created
November 11, 2021 11:42
-
-
Save LiboShen/bf8276733a7c59317d1510d0a8285892 to your computer and use it in GitHub Desktop.
Web Server Bash Oneliner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Need install netcat first | |
while true; do echo -ne "HTTP/1.0 200 OK\r\nContent-Length: 3\r\n\r\nok\n" | nc -l -p 8001; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment