X Tutup
Skip to content

Latest commit

 

History

History
92 lines (64 loc) · 3.79 KB

File metadata and controls

92 lines (64 loc) · 3.79 KB

simplehttpserver

License Go Report Card contributions welcome GitHub Release Follow on Twitter Docker Images Chat on Discord

simplehttpserver is a go enhanced version of the well known python simplehttpserver.

Resources

Features

simplehttpserver

  • File server in arbitrary directory
  • Full request/response dump
  • Configurable ip address and listening port

Installation Instructions

From Binary

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 -h

From Source

simplehttpserver requires go1.14+ to install successfully. Run the following command to get the repo -

▶ GO111MODULE=on go get -v github.com/projectdiscovery/simplehttpserver

From Github

▶ git clone https://github.com/projectdiscovery/simplehttpserver.git; cd simplehttpserver; go build; mv simplehttpserver /usr/local/bin/; simplehttpserver -h

Usage

simplehttpserver -h

This 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

Running simplehttpserver in the current folder

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 19

Thanks

simplehttpserver is made with 🖤 by the projectdiscovery team. Community contributions have made the project what it is. See the Thanks.md file for more details.

X Tutup