GithubHelp home page GithubHelp logo

benjamin-kraatz / go-network-scanner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from p-a-r-u-s/go-network-scanner

0.0 0.0 0.0 22 KB

Network Port Scanner created with Go language

Go 100.00%

go-network-scanner's Introduction

Golang Network Port Scanner Travis-CI License

Simple command line tool to scan network ports. Command line tool was done as part of technical interview and as example for article on HabraHabr.ru.

The main requirement for the tool to accept individual IP, range of IPs in regular format or CIDR (Classless Inter-Domain Routing). The utility are free to use or change.

There was no requirement to build like a package, but you can easily converted it. Enjoy coding.

Example

$ ./netscanner --ip 10.0.1.1-10.0.1.11,10.0.1.12/32 --p 80 --pc tcp,udp --t 3000

Parameters:
    NAME:
       NetScanner - Network IP addresses and ports scanner
    
    USAGE:
       netscanner [global options] command [command options] [arguments...]
    
    AUTHOR:
       Valentyn Ponomarenko <[email protected]>
    
    COMMANDS:
         help, h  Shows a list of commands or help for one command
    
    GLOBAL OPTIONS:
       --ip value                    IP range, e.g --ip 127.0.0.1/12, 10.0.1.1-10.0.1.12
       --protocol value, --pc value  protocol for IP(s) scan, e.g --pc tcp (default: "tcp,udp")
       --port value, -p value        port range to scan, e.g --port 1-200 (default: "1-65535")
       --timeout value, -t value     timeOut n milliseconds, e.g. --t 3000 or --t 2s or --t 3000ms (default: "2000")
       --help, -h                    show help
       --version, -v                 print the version


Output:
    ......
    2018/03/19 23:40:20 scanning addr: tcp://10.0.1.1:138
    2018/03/19 23:40:20 scanning addr: tcp://10.0.1.1:139
    2018/03/19 23:40:20 tcp://10.0.1.1:139 is alive and reachable
    ......

Contributing

We welcome pull requests, bug fixes and issue reports.

Before proposing a change, please discuss your change by raising an issue.

Authors

  • Valentyn Ponomarenko - Initial work - P-A-R-U-S

License

This project is licensed under the MIT License - see the LICENSE.md file for details

go-network-scanner's People

Contributors

p-a-r-u-s 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.