Giter Club home page Giter Club logo

rustmap's Introduction

Rustmap Crates.io

Rustmap is a very simple "Nmap-like" program that can scan for hosts and open TCP ports. It is mostly written for educational purposes (I wanted to learn Rust, and learn a bit more about how Nmap works) so it's quite slow and doesn't have many features.

Installation

  1. Install Rust
  2. cargo install rustmap

Examples

Check if a single host is up:

sudo rustmap 127.0.0.1

Scan all TCP ports for a single host:

sudo rustmap 127.0.0.1 -p

Scan all TCP ports for multiple hosts:

sudo rustmap 127.0.0.1 ::1 -p

Scan for specific ports in an address range:

sudo rustmap 127.0.0.0/8 -p 22,80,443

Usage

rustmap [OPTIONS] <addr-ranges>...

Flags

-h, --help

Prints help information

-V, --version

Prints version information

Options

-p, --ports <ports>...

Probe ports for each host and optionally specify which ports.

Ports can be specified as a comma-separated list, or left unspecified to scan all ports.

-t, --timeout <timeout>

Timeout for pinging each host and probing each port.

Parsing is provided by the parse_duration crate and supports almost any notation. E.g. 1s, 10 seconds, 1 hour, 15 minutes, 12 seconds, 10m32s112ms. [default: 1s]

Args

<addr-ranges>...

IP addresses to scan.

Supports IPv4 notation (e.g. 127.0.0.1), IPv6 notation (e.g. ::1), IPv4-mapped IPv6 notation (e.g. ::ffff::1.1.1.1) and CIDR notation (e.g. 192.168.0.0/16, fe80::/10).

License

Apache 2.0

rustmap's People

Contributors

freemasen avatar sommd avatar

Stargazers

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

Watchers

 avatar

rustmap's Issues

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.