/requester

HTTP/HTTPS request simulator

Primary LanguagePythonMIT LicenseMIT

Requester

PyPI version Build Status codecov Code Health Python License

Requester is a python based HTTP / HTTPS request simulator.
Basically, you create a request statement, send the request as it is, and check the response.
In addition, it extracts the request from the pcap file, or sends the extracted request and compares the response with the response of the pcap file.

Installation

To install Requester, simply:

$ pip install requester

Usage

  • Basic Argument Description
$ requester
Usage: requester

Options:
  -h, --help            show this help message and exit
  --port=PORT           port name(default 80)
  --host=HOST           host name or ip address
  -f FILE, --file=FILE  request file name(include full path)
  --pcap=PCAP           packet dump file name(include full path)
  -e, --extraction      Extract http request from packet dump file.
  -c, --check           Send an http request in the packet dump and compare
                        the response.
  --dumy-body=DUMY_BODY_BYTE
                        Dummy data is added to request body for the set number
                        of bytes.
  --verbose             Show all related information without omissions.
  • Simple Usage without request file.
$ requester --host [website] --port [port]
  • Simple usage with request file.
$ requester --host [website] --port [port] --file [request file full path]
  • Fills the body with null bytes for the specified number of bytes.
$ requester --host [website] --port [port] --dumy-body 1024

$ requester --host [website] --port [port] --file [request file full path] --dumy-body 1024
  • Extract request file from packet dump.
$ requester -e --pcap [pcap file full path]
  • Sends the contents extracted from the request file in the packet dump and compares the response.
$ requester -c --pcap [pcap file full path]
  • Display all messages that are output between transmissions.
$ requester --host [website] --port [port] --verbose

$ requester --host [website] --port [port] --dumy-body 1024 --verbose

$ requester --host [website] --port [port] --file [request file full path] --verbose

$ requester --host [website] --port [port] --file [request file full path] --dumy-body 1024 --verbose

Documentation

I'll be writing soon.

Contribute

If you have an idea or issue, feel free to open an issue or make pull request.
I'll create and share a structured process to contribute soon.