simplehttpserver is a go enhanced version of the well known python simplehttpserver.
- File server in arbitrary directory
- Full request/response dump
- Configurable ip address and listening port
The installation is easy. You can download the pre-built binaries for your platform from the Releases page. Extract them using tar, move it to your $PATHand you're ready to go.
Download latest binary from https://github.com/projectdiscovery/simplehttpserver/releases
â–¶ tar -xvf simplehttpserver-linux-amd64.tar
â–¶ mv simplehttpserver-linux-amd64 /usr/local/bin/simplehttpserver
â–¶ simplehttpserver -hsimplehttpserver requires go1.14+ to install successfully. Run the following command to get the repo -
â–¶ GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserverâ–¶ git clone https://github.com/projectdiscovery/simplehttpserver.git; cd simplehttpserver; go build; mv simplehttpserver /usr/local/bin/; simplehttpserver -hsimplehttpserver -hThis will display help for the tool. Here are all the switches it supports.
| Flag | Description | Example |
|---|---|---|
| listen | Configure listening ip:port (default 127.0.0.1:8000) | simplehttpserver -listen 127.0.0.1:8000 |
| path | Fileserver folder (default current directory) | simplehttpserver -path /var/docs |
| v | Verbose (dump request/response, default false) | simplehttpserver -v |
This will run the tool exposing the current directory on port 8000
â–¶ simplehttpserver
2021/01/11 21:40:48 Serving . on http://0.0.0.0:8000/...
2021/01/11 21:41:15 [::1]:50181 "GET / HTTP/1.1" 200 383
2021/01/11 21:41:15 [::1]:50181 "GET /favicon.ico HTTP/1.1" 404 19simplehttpserver is made with 🖤 by the projectdiscovery team. Community contributions have made the project what it is. See the Thanks.md file for more details.

