Skip to content

projectdiscovery/simplehttpserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Go alternative of python SimpleHTTPServer

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 13