Git Product home page Git Product logo

http-request-translator's Introduction

HTTP Request Translator

HTTP Request Translator is a python standalone tool that will help you translate any raw HTTP requests into the language of your choice.

It supports the following languages:

  • Bash
  • PHP
  • Python
  • Ruby

HTTP Request Translator can be used via its CLI or be imported from your own python project.

Installation

HTTP Request Translator can be installed from the setup.py python script:

  1. $ git clone https://github.com/owtf/http-request-translator -b dev
  2. $ cd ./http-request-translator/
  3. $ ./setup.py install

Note: The last step might require root privileges.

Usage

Command Line Interface

HTTP Request Translator provides a complete command line interface (CLI) to make it easy for you to use it.

usage: http_request_translator [-h] [--output OUTPUT] [--proxy [PROXY]]
                               [--search_string SEARCH_STRING | --search_regex SEARCH_REGEX]
                               [--interactive] [--data DATA]
                               [--request REQUEST | --file FILE]

Request Translator is a standalone tool that can translate raw HTTP requests
into bash/python/php/ruby scripts

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT, -o OUTPUT
                        Generates a script for given HTTP request. If you want
                        to generate multiple scripts, separate the script's
                        name with a <,>
  --proxy [PROXY], -p [PROXY]
                        Generates command/script with relevant, specified
                        proxy
  --search_string SEARCH_STRING, -ss SEARCH_STRING
                        Sends the request and searches for the required string
                        in the response (i.e literal match)
  --search_regex SEARCH_REGEX, -se SEARCH_REGEX
                        Sends the request and searches for the required regex
                        in the response (i.e regex match)
  --interactive, -i     Interactive mode: read raw HTTP request from keyboard,
                        hit enter when ready.Type ':q!' to exit from the
                        interactive mode.
  --data DATA, -d DATA  Add the data that you want to send along with the
                        header
  --request REQUEST, -r REQUEST
                        Input the HTTP request
  --file FILE, -f FILE  Input file for HTTP request

http-request-translator's People

Contributors

arunk-s avatar sentient07 avatar depierre avatar cjdupreez avatar dhruvagarwal avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.