一句话启动WebServer服务。
* python3
python3 -m http.server 8888
* python2
python2 -m SimpleHTTPServer 8888
$ php -S localhost:8888 -t evil/ for PHP >=5.4 $ php -S localhost:8888
perl -MIO::All -e 'io(":8080")->fork->accept->(sub { $_[0] < io(-x $1 +? "./$1 |" : $1) if /^GET /(.*) / })'
while true; do nc -l 80 < test.html; done ncat -k -l -p 1337 -c "printf 'HTTP/1.1 200 OKrnrn'; cat ~/evil.html"
C:> "C:Program Files (x86)IIS Expressiisexpress.exe" /path:C:MyWeb /port:8000
Busybox httpdbusybox httpd -f -p 8000
https://gist.github.com/willurd/5720255
原文始发于微信公众号(埋藏酱油瓶):Oneliner Webserver
- 左青龙
- 微信扫一扫
- 右白虎
- 微信扫一扫
评论