p4p1 / httrap

simple web trap to monitor requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

httrap

simple web trap to monitor requests.

trap boiz

Usage:

Usage: ./httrap [-hs] [-p port no] [-f file name] [-d dir name]
Usage: ./json_httrap [-hl] [-m METHOD] [-f LOG_FILE_NAME] [-d LOG_FILE_DIR]

Installation:

Copy paste those commands to a terminal

git clone https://github.com/p4p1/httrap.git /tmp/httrap
sudo make clean install -C /tmp/httrap
echo "Installation complete, enjoy the software :)"

Example log file output

time:{time of request}
GET / HTTP/1.1
Host: {data}
Connection: {data}
Upgrade-Insecure-Requests: {data}
User-Agent: {data}
Accept: {data}
Accept-Encoding: {data}
Accept-Language: {data}
Cookie: {data}

Example json output:

{
  "time": "CURRENT DATE",
  "latest_log": "GET REQUEST HEADER"
}

About

simple web trap to monitor requests


Languages

Language:C 59.5%Language:Shell 16.2%Language:Roff 14.2%Language:Makefile 10.0%