-
-
Save XavierChanth/677719c64287c4e2936ed3461239e8b7 to your computer and use it in GitHub Desktop.
Simple netcat based one shot http file server
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
#!/bin/bash | |
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Disposition: inline; filename=\"hello.txt\"\r\nContent-Length: 13\r\n\r\n"; echo \"Hello World\!\"; } | nc -l 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment