Code Monkey home page Code Monkey logo

virtual-host-discovery's Introduction

Virtual host scanner

This is a basic HTTP scanner that'll enumerate virtual hosts on a given IP address. During recon, this might help expand the target by detecting old or deprecated code. It may also reveal hidden hosts that are statically mapped in the developer's /etc/hosts file.

Usage

The tool comes with a few basic options. They are listed below and help narrow down virtual hosts.

ruby scan.rb --ip=192.168.1.101 --host=domain.tld

Here's a list of all available options:

  • --ignore-http-codes: a comma-separated list of HTTP status codes to be ignored in the scan results. This may become useful when the scan results are poluted with false-positives that are identified by their HTTP response code.
  • --ignore-content-length: a content length filter which should be ignored in the scan results. This may become useful when a server returns a static page on every virtual host guess.
  • --port: when the web server isn't running on port 80.
  • --wordlist: specify an alternative location for the wordlist.
  • --ssl: on or off depending on whether you want to connect with SSL.
  • --output: optionally specify an alternative file to write the output to. Defaults to output.txt in the current directory.

Wordlist

There's a default, small, wordlist in this repository. To use your own wordlist, use the --wordlist option. %s will be replaced with the given --host header in every line of the wordlist file.

virtual-host-discovery's People

Contributors

jobertabma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

virtual-host-discovery's Issues

--worldlist argument can't start from ~

Hi @jobertabma,

This is very, very, very small issue I've found and it does not stop from using your tool in any way, however I just want to notify you about this. Just in case ;)

So, when I run scan.rb with following options:

ruby scan.rb --ip=XX.XX.XX.XX --host=xxx.com  --ignore-http-codes=301,400,403 --wordlist=~/hacking/dictionaries/SecLists/Discovery/DNS/subdomains-top1mil-5000.txt

I've got following error:

scan.rb:57:in `read': No such file or directory @ rb_sysopen - ~/hacking/dictionaries/SecLists/Discovery/DNS/subdomains-top1mil-5000.txt (Errno::ENOENT)
	from scan.rb:57:in `<main>'

Changing ~ into full directory path resolves problem:

ruby scan.rb --ip=XX.XX.XX.XX --host=xxx.com  --ignore-http-codes=301,400,403 --wordlist=/Users/bl4de/hacking/dictionaries/SecLists/Discovery/DNS/subdomains-top1mil-5000.txt

Let me know if you need any further information about this issue.

Thank you!

Regards,

Rafal 'bl4de' Janicki
hackerone.com/bl4de
twitter.com/_bl4de

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.