Giter Club home page Giter Club logo

httphose's Introduction

HTTP Hose

This tool is somewhat like a directory buster, but aimed at larger scale operations to scan thousands and possibly millions of domains for specific files or directories and record information about successful requests. Optionally it will also store the files it downloads.

You point the hose at the internet, and HTTP requests come out :)

Why?

Because dirb and other tools don't easily support thousands of domain names, nor do they offer any opportunities to easily integrate into part of a larger workflow or pipeline, and often don't provide computer readable output.

The key features of HTTP Hose are:

  • A progress bar, yay!
  • Multi-threaded and asynchronous, via gevent
  • Supports HTTP and SOCKS proxies, via requests
  • Save successful HTTP responses as JSON
  • Download content of files to content addressable storage
  • Retrieve jobs from Beanstalk queue
  • Interesting default list of filenames to check

Using a Proxy

Proxies can be configured via the environment:

$ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080"
$ python -mhttphose ...

If you're using Requests 2.10.0 or above, in addition to basic HTTP proxies, Requests also supports proxies using the SOCKS protocol, the Docker container and requirements.txt file include this for your convenience.

$ export HTTP_PROXY="socks5://localhost:9050"
$ export HTTPS_PROXY="socks5://localhost:9050"
$ python -mhttphose ...

Beanstalk Integration

HTTP Hose will retrieve jobs from a Beanstalk queue / tube, and put answers onto another queue. To run httphose in beanstalk mode, use:

python -mhttphose -b localhost:11300

The makework script allows you to push jobs onto the queue, it supports a similar set of options to httphose, for example:

python -mhttphose.makework -b localhost:11300 example.com domain2.com

The format of job is a JSON encoded dictionary:

{
	"domains": ["http://domain1", "https://domain2"],
	"extra": {"k1": "v1", "k2": "v2"}
}

The optional extra parameter will merge these keys & values into the output JSON dictionary so some kind of context can be passed from input to output.

Beanstalk in Docker

These can then be run in the background, however more effort is required to ensure messages persist across reboots and container restarts.

$ docker run -d -p 11300:11300 --name beanstalkd schickling/beanstalkd
$ docker run -d -p 2080:2080 --link beanstalkd:beanstalkd schickling/beanstalkd-console

httphose's People

Contributors

harryr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sh4t

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.