GithubHelp home page GithubHelp logo

santiago-mooser / host_discovery Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 28 KB

Python script to quickly discover live hosts on a network through multi-threaded TCP pinging and various ICMP types.

License: GNU General Public License v3.0

Roff 9.77% Python 90.23%
nmap python3 tcp ike-scan host-discovery

host_discovery's Introduction

What is this repository for?

  • discovery.py is used to discover live hosts on a network through TCP pinging and various ICMP types.
  • It is multithreaded, so it is extremely fast
  • This is version 0.3.9-p
  • It can be run as a script through python or installed as a standalone binary
  • It is not designed with subtelty in mind: this will get detected by firewalls and preventative systems

Dependencies

  • Python3
  • (optional) Python3 modules for binary compilation:
    • sudo python3 -m pip install PyInstaller

How to run the script

There are two ways of running this script:

  1. Run the script as a standard python script and provide it arguments
  2. Flatpack it into a standalone binary (that doesn't need python) and hav it installed under /usr/local/bin

Installation and Uninstallation

To install it:

Run sudo ./setup.py and the script will be automatically compiled into a single binary and installed in /usr/local/bin/

This will also install a man page that you can read by typing man discovery

To uninstall it:

Run sudo ./uninstall.py or simply remove the /usr/local/bin/discovery binary

Usage

usage:          discovery -t target(s) [options]
example:        discovery -t 192.168.1.0/24 -v -o myresults

This is discover-ng.pl revamped: A script to run nmap & ike-scan to discover
live hosts on a network through TCP Pinging and various ICMP types.

positional arguments:
  t           Target IPs to check status of
  stdin

optional arguments:
  -h, --help  show this help message and exit
  -f F        hosts file containing one host per line
  -v          verbose mode
  -o O        output file (default is JSON)
  --raw       output raw results to stdout without anything else (useful for
              piping JSON results to another script)
  --dry-run   dry run to see which IPs would be scanned
  --quick     quick host discovery with less hosts

Example

(time was used to show how quick the script is)

$ time ./discovery.py scanme.nmap.org
* scanme.nmap.org
    ICMP: echo,time
    tcp: 21,25,53,80,113,139,256,264,265,443,445,1494,1720,1723,8080,8888
    ike-scan: 
./discovery.py scanme.nmap.org  0.41s user 0.26s system 13% cpu 4.825 total

Who do I talk to?

  • Santiago Espinosa github.com/santiago-espinosa

host_discovery's People

Contributors

santiago-mooser avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.