Skip to content
Wil Koch edited this page May 15, 2015 · 6 revisions

#Quick server

##Netcat

###Basic

while true; do timeout 3 nc -l 31337; done

###Respond with page

while true; do nc -l -p 80 -q 1 < somepage.html; done

###For CORS

while true; do echo -e "HTTP/1.x 200 OK\r\nAccess-Control-Allow-Origin: *\r\nContent-Type: application/json" | nc -l 8888; done

##Python Simple Server

python -m SimpleHTTPServer

#Find server ip

curl 'https://api.ipify.org?format=json'
Clone this wiki locally