Originally posted by PPdos at 2006-12-27 03:37 AM:
但如果扫描几万个端口 同时打开几万个窗口好象要自杀?能不能进行对打开start telnet窗口的数量限制呢?虽然连接大约5秒钟后失败退出 但是打开的速度要快吧...
加上红色的那部分代码。。。用ping命令在每打开10个窗口的时候延时一下。。。应该就可以了
@echo off
if == (Goto :Start) else (Goto :Ping)
:Start
setlocal EnableDelayedexpansion
set a=0
echo.ScanTime:%time%>ip.txt&&set "ip=61.149.20"
for /L %%i in (1,1,254) do
(Start %~s0 %ip%.%%i
&set /a a=%%i%%10&if !a!==0 ping -n 2 127.0.0.1>nul)
endlocal
Goto :eof
:Ping
ping %1 -n 1 -w 1 >nul&&echo %1 - OK!>>ip.txt
exit
Last edited by 007dna1 on 2008-12-3 at 01:19 ]