"Go preliminary" port scanner

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed. The go language is written by the TCP port scanner, my first go program.

Git@osc:http://git.oschina.net/youshusoft/goscanner

Use the command:

Scanner StartIP [EndIP] Port thread


Parameter description:

StartIP Start IP
EndIP end IP, optional, no input indicates only scan StartIP
Port scan ports, single port: 3389; multiple ports: 1433,3389; continuous port: 135-3389
Thread maximum number of concurrent threads, up to 2048

The scan results are saved in the Result.txt in the same directory, and the previous content is cleared each time it is started.

Example one:
Scanner 58.96.172.22 58.96.172.220 80 512
Scan 58.96.172.22 to port 80 in 58.96.172.220, maximum concurrent thread 512.

Example two:
Scanner 58.96.172.22 58.96.172.220 21,5631 512
Scans the 21 and 5631 ports in the 58.96.172.22 to 58.96.172.220, with a maximum concurrent thread of 512.

Example three:
Scanner 58.96.172.22 58.96.172.220 1-520 512
Scans the 1 to 520 ports in the 58.96.172.22 to 58.96.172.220, with a maximum concurrent thread of 512.

Example four:
Scanner 58.96.172.22 1-520 512
Scan for 1 to 520 ports in 58.96.172.22, maximum concurrent thread 512.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.