DOS for command to implement scan network segment port, to assist in resolving ARP hanging horse _dos/bat

Source: Internet
Author: User
Do not need any tools, DOS command scan all the ports of a network segment!
Open a DOS window under Win2000, and then execute
FOR/L%a in (1,1,254) do start/min/low telnet 192.168.0.%a 3389
So all the open 3389 ports in this 192.168.0.x segment will be exposed.
After this command is executed
will open 254 small windows in the taskbar
Then the Telnet link failed window automatically exits after approximately 5 seconds
The rest of the window is the relative open port host.
Look at the title of the small window to know the host's IP address
If you think the machine is performing well, you can take the/low parameter.

Now scan multiple ports for a single host, as follows
FOR/L%a in (1,1,65535) do start/low/min telnet 192.168.0.1%a
This scans the 192.168.0.1 for 1 to 65535 ports.

Now scan all ports of a network segment
FOR/L%a in (1,1,254) does for/l%b in (1,1,65535) do start/low/min telnet 192.168.0.%a%b
This will scan all 1 to 65535 segments of the 192.168.0.x segment.

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.