Coder Social home page Coder Social logo

opscan's Introduction

opscan

CI Crates Docker Pulls

A open port scanner.

screenshot

Install

With cargo

cargo install --force opscan

With docker

docker run --rm -it sigoden/opscan opscan.nmap.org

Binaries on macOS, Linux, Windows

Download from Github Releases, unzip and add opscan to your $PATH.

Usage

A open port scanner

Usage: opscan [OPTIONS] [ADDRESSES]...

Arguments:
  [ADDRESSES]...  CIDRs, IPs, or hosts to scan ports

Options:
  -p, --ports <PORTS>              Ports to be scanned e.g. 22,80-443,top100
  -t, --timeout <TIMEOUT>          Maximum time in milliseconds to scan
  -c, --concurrency <CONCURRENCY>  Number of concurrent port scanning
  -h, --help                       Print help
  -V, --version                    Print version

Check if a port is open:

opscan scanme.nmap.org -p 80

Scan top-N ports on a domain:

opscan scanme.nmap.org -p top100 
opscan scanme.nmap.org -p top666
opscan scanme.nmap.org -p top1000

List open ports on localhost:

opscan                             # equal to `opscan 127.0.0.1 -p 1-65535`

Scan specific ports:

opscan 192.168.8.5 -p 80,443,3000-6000
opscan 192.168.8.5 -p 1-65535

Scan specific CIDRs:

opscan -p 22 192.168.8
opscan -p 22 192.168.8.0/24
opscan -p 22 192.168.8.0/192.168.255.255

Default scan ports and timeouts on private/non-dedicated networks:

opscan 127.0.0.1                   # ports: 1-65535, timeout: 1000
opscan scanme.nmap.org             # ports: top1000, timeout: 3000

Increase concurrency and decrease timeout for faster scans:

opscan scanme.nmap.org -t 1500 -c 8000

License

Copyright (c) 2023 opscan-developers.

opscan is made available under the terms of either the MIT License or the Apache License 2.0, at your option.

See the LICENSE-APACHE and LICENSE-MIT files for license details.

opscan's People

Contributors

sigoden 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

Watchers

 avatar  avatar  avatar  avatar

Forkers

0x0021 blackstorm

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.