Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report