One Liner Webserver
目录
1 0x01 Oneliner Webserver
1.1 Python
- python3
python3 -m http.server 8888
- python2
python2 -m SimpleHTTPServer 8888
1.2 PHP
$ php -S localhost:8888 -t evil/
for PHP >=5.4
$ php -S localhost:8888
1.3 Perl
perl -MIO::All -e 'io(":8080")->fork->accept->(sub { $_[0] < io(-x $1 +? "./$1 |" : $1) if /^GET \/(.*) / })'
1.4 Necat
while true; do nc -l 80 < test.html; done
ncat -k -l -p 1337 -c "printf 'HTTP/1.1 200 OK\r\n\r\n'; cat ~/evil.html"
1.5 IIS Express
C:\> "C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:C:\MyWeb /port:8000
2 BusyBox
Busybox httpd
busybox httpd -f -p 8000
3 0x02 更多参考

如果你觉得这篇文章对你有所帮助,欢迎赞赏~
