Created
April 16, 2018 18:32
-
-
Save rupurt/48ce2e58da98f67d2572b7dd0952a259 to your computer and use it in GitHub Desktop.
Netcat webserver
This file contains 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
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; sh test; } | nc -l 8080; done | |
#!/bin/bash | |
echo "************PRINT SOME TEXT***************\n" | |
echo "Hello World!!!" | |
echo "\n" | |
echo "Resources:" | |
vmstat -S M | |
echo "\n" | |
echo "Addresses:" | |
echo "$(ifconfig)" | |
echo "\n" | |
echo "$(gpio readall)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment