Giter VIP home page Giter VIP logo

httpscan's Introduction

httpscan

Scan a host for open HTTP ports and gain information about the services present.

Setup:

pip -r requirements.txt

Usage:

usage: httpscan [-h] [--json] [--all] [--print_headers] [--print_body] [--user_agent USER_AGENT] [--origin ORIGIN]
                [--path PATH] [--http_ports_file HTTP_PORTS_FILE] [--ssl_ports_file SSL_PORTS_FILE]
                [--headers_file HEADERS_FILE] [--add_headers_file ADD_HEADERS_FILE] [--socket_timeout SOCKET_TIMEOUT]
                [--response_timeout RESPONSE_TIMEOUT] [--threads THREADS] [--follow_redirects]
                [--max_redirects MAX_REDIRECTS] [--silence_updates] [--check_version]
                host

Scan a host for open HTTP ports and gain information about the services present.

positional arguments:
  host                  [Host To Scan] The domain to scan. EX: example.com.

optional arguments:
  -h, --help            show this help message and exit
  --json                [JSON Override] Print raw JSON output instead of shell presentation.
  --all                 [Save All] Print each port's status, not just open ones.
  --print_headers       [Shell] Print HTTP response headers along with existing output.
  --print_body          [Shell] Print HTTP response body along with existing output.
  --user_agent USER_AGENT
                        [Request Header] Arbitrarily set your user-agent request-header. EX: --user_agent="Mozilla/5.0
                        (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103
                        Safari/537.36".
  --origin ORIGIN       [Request Header] Arbitrarily set the origin request-header. EX:
                        --origin="https://example.com".
  --path PATH           [Request Header] Arbitrarily set the path request-header. EX: --path="/".
  --http_ports_file HTTP_PORTS_FILE
                        [Resource] File name of JSON array of HTTP ports to scan. Default:
                        httpscan/resources/http_ports.json.
  --ssl_ports_file SSL_PORTS_FILE
                        [Resource] File name of JSON array of HTTPS ports to scan. Default:
                        httpscan/resources/ssl_ports.json.
  --headers_file HEADERS_FILE
                        [Resource] File name of JSON array of HTTP request headers to use. Default:
                        httpscan/resources/http_headers.json
  --add_headers_file ADD_HEADERS_FILE
                        [Resource] File name of JSON array of HTTP request headers to add to existing headers.
                        Default: httpscan/resources/add_http_headers.json
  --socket_timeout SOCKET_TIMEOUT
                        [Tuning] Timeout in seconds (float) until socket connection establishment effort is aborted.
  --response_timeout RESPONSE_TIMEOUT
                        [Tuning] Timeout in seconds (float) until current socket connection is aborted while waiting
                        for response.
  --threads THREADS     [Tuning] Number of threads to use for scanning. Default: 1.
  --follow_redirects    [Tuning] Follow redirects; Default: False.
  --max_redirects MAX_REDIRECTS
                        [Tuning] Max amount of redirects. "--follow_redirects" must be enabled. Default: 5.
  --silence_updates     [Overrides] Hides/ignores new update notifications. Default: False.
  --check_version       [Utilities] Prints version + checks for updates then exits.

Example: python3 httpscan.py example.com | python3 httpscan.py -h

Service Tagging:

Example Uses:

python3 httpscan github.com --all

python3 httpscan github.com --json

Other Uses:

python3 httpscan example.com --print_headers --print_body

python3 httpscan example.com --print_headers --print_body --all

python3 httpscan example.com --print_headers --print_body --all --user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36"

python3 httpscan example.com --all --json --user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36"

python3 httpscan example.com --all --json --add_headers_file=moreHeaders.json

python3 httpscan example.com --origin="https://example.com" --path=/test"" --all --json

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.