- echo 您确定要使用%way%扫描%port%端口,按任意键继续,如果有问题请按Ctrl+C终止。
- pause
- del sip.txt
- echo 运行中请勿修改!>sip.txt
- for /f "tokens=1,2 delims= " %%a in (ip.txt) do (echo s.com %way% %%a %%b %port% 400 /save >>sip.txt)
- for /f " delims=:" %%i in ('findstr /n .* "sip.txt"') do set hang=%%i
- set now=1
- :scan
- cls
- for /f "skip=%now% tokens=1,* delims= " %%a in (sip.txt) do (set /a now+=1
- if %now% lss %hang% (%%a %%b&goto sql) else (goto end))
- :qingli
- FINDSTR /c:"%port% Open" Result.txt >>Result2.txt
- FOR /F "tokens=1 delims= " %%i in (Result2.txt) do @echo %%i >>sql.txt
- copy nul Result.txt /y
- copy nul Result2.txt /y
- goto sql
- :sql
- goto scan
- :end
- set now=1
- echo %now%
- pause
- goto scan
-
复制代码
上边代码循环有些问题。。。。。第一遍结束后会一直清空记事本。。。哪里有错误呢。。 |