Coder Social home page Coder Social logo

network_scanner's Introduction

Network Scanner

A network scanner application written in Ruby. It allows you to scan a list of ips. This can be passed as a range, a file to read ip's from (newline separated or a json array), or you can specify an interface and it will scan all ip's on your subnet.

With the IP's, you can scan for machines that are up (With a simple ping test). You can also scan all of them for a given port, or check the hostnames of all the machines that are up.

All of the scans can be output as JSON or text (newline separated), and you can pass an argument to have it write directly to a file.

Installation

$ gem install network_scanner

Usage

Currently, the interface option only works on Linux

# Output help text
network_scanner -h

# Scans your subnet for machines that respond to pings with a pool size of 300
network_scanner --interface wlan0 --poolsize 300 --ping
network_scanner -i wlan0 -s 300 -P

# Checks the hostname on a range of ip's, outputting json to a file
network_scanner --range 129.22.0.0-129.22.255.255 --nslookup --format json --output out.json
network_scanner -r 129.22.0.0-129.22.255.255 -n -f json -o out.json

# Scans a given list of ips for port 80
network_scanner --cache ips.txt --portscan 80
network_scanner -c ips.txt -p 80

# Scans a list of ips in json format for their hostname and outputs to file in json
network_scanner --cache ips.json --format json --nslookup --output out.json
network_scanner -c ips.json -f json -n -o out.json

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

network_scanner's People

Contributors

unforced avatar

Stargazers

David Jannotta avatar Christopher Hickey avatar  avatar Geoff Tidey avatar Patrick Tulskie avatar  avatar Stuart Hannig avatar Patrick avatar

Watchers

Lyuben Petrov 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.