Cardboard Iguana Security

/

spells

/

Quick n dirty Python web server

Sunday, June 1, 20251 min read

  • Language/Python
  • Protocol/HTTP
  • AttackCycle/Exfiltration
  • AttackCycle/Exploitation

Python 3 can nativly serve files out of the current directory over HTTP.

python3 -m http.server $PORT

The default $PORT is 8080.

Some useful http.server flags:

--bind ADDRESS, -b ADDRESS
Specify alternate bind address [default: all interfaces]

--directory DIRECTORY, -d DIRECTORY
Specify alternative directory [default: current directory]


Backlinks

  • Java
  • Python

Graph View

Created with Quartz v4.5.1 © 2025

  • Home
  • Resume
  • Contact
  • RSS Feed