Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the for command to scan the ports of a network segment in dos

Shulou Source: shulou.com Published: 2022-06-03 07:18:50 11月15日 Update

This article mainly introduces how to use the for command to scan the port of the network segment in dos, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.

Without any tools, the dos command scans all ports of a network segment!

Open a dos window under win2000 and execute

For / l% an in (1jie 1254) do start / min / low telnet 192.168.0% a 3389

In this way, all hosts with port 3389 open in this section of 192.168.0.x will be exposed.

After the execution of this order

254 small windows will be opened in the taskbar

Then the window where the telnet link fails will automatically exit after about 5 seconds.

The remaining window is the host corresponding to the open port.

Look at the title of the mini-window to know the ip address of the host.

If you think the performance of the machine is very good, you can set the / low parameter.

Now scan multiple ports of a host, as follows

For / l% an in (1JI 65535) do start / low / min telnet 192.168.0.1% a

This scans ports 1 to 65535 of 192.168.0.1

Now scan all ports of a network segment

For / l% an in (1mem1254) do for / l% b in (1meme 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.

Thank you for reading this article carefully. I hope the article "how to use the for command to scan the port of the network segment in dos" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Port command network segment host article open value task interest parameter at the same time address multiple namely tool performance more friends machine title Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Huawei vpn Shulou Technology