Skip to content

zulfi0/hserv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

hserv

this tool is obsolete use https://github.com/zulfi0/fserv for replacement.

Simple python http server that logs incoming requests. Currently support GET, HEAD, POST and 302 Redirect and logs all incoming requests to log.txt file.

Features

  • [+] Support: GET, POST, HEAD
  • [+] Redirect

POST :

POST / HTTP/1.1
Host: 0.0.0.0:8080
User-Agent: curl/7.68.0
Accept: */*
Content-Length: 7
Content-Type: application/x-www-form-urlencoded                                                                               

foo=bar

REDIRECT :

Simply add /redirect in your url path ie. http://privateserver.com/redirect=https://foo.bar/.

Installation

  1. Clone this project
git clone https://github.com/zulfi0/hserv
  1. Install Module
python3 -m pip install colorama
  1. Run
cd hserv && cp hserv.py /usr/bin && hserv

Usage

Simply run the script with -p switch.

hserv -p 80

and don't forget to fire up ngrok.

About

python http server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages