appsecben
  • AppSecBen
  • Awesome Links
  • tools
    • grep
    • netstat
    • nmap
    • h8mail
    • sherlock
    • BeEF
    • Wireshark
    • Scapy
    • ffuf
    • wafw00f
    • hCaptcha
    • sn1per
    • WPScan
    • searchsploit
    • Metasploit
    • wget
    • Bash Scripting
    • git
    • Docker
    • VSCode
    • Local web server
    • S3 Bucket
    • JWT
  • Links Úteis
    • Cursos
    • Ferramentas Online
    • Repositórios
    • Articles, Docs, Sites, etc
  • Infra
    • Email
    • DNS
    • Subdomain
    • Ferramentas
    • SSH
  • Tor
    • Links
    • Tor + ProxyChains Config
  • GoLang
    • Cheat Sheet
    • Install
    • Useful Links
    • Packages
    • VSCode
  • Vulns
    • Log4j
Powered by GitBook
On this page

Was this helpful?

  1. tools

Local web server

How to start a simple web server

Python

python -m http.server $PORT
# ex: python -m http.server 8040

PHP

php -S localhost:$PORT -t $DIR
# ex: php -S localhost:8000 -t /var/lib/www

RUBY

ruby -run -e httpd . -p $PORT
# ex: ruby -run -e httpd . -p 8080

NC

while true ; do nc -l 80 <$HTMLFILE ; done 
# while true ; do nc -l 80 <index.html ; done 

PreviousVSCodeNextS3 Bucket

Last updated 3 years ago

Was this helpful?