A multi-threaded port scan written using the BAT script

xiaoxiao2021-03-05  29

Author: Mix

Source: Net Anti-Cruiser

It's relatively simple, so the code directly passed:

--------- Cut here ---------

@Echo off

SET IP = 1

Echo ... Strat to scan ...

: Main

NetStat -an | Find / C "% 1"> TEMP.TEMP

FOR / F "eol =; tokens = 1, 3 * delims =," %% I in (Temp.temp) do if / i %% I leq% 3 del Temp.temp && goto ScanMain

Goto main

: ScanMain

ECHO% 1% IP%:% 2

Start "% 1% iP% ->% 2" / min NC -VV% 1% IP%% 2

SET / A IP =% IP% 1

IF% IP% GEQ 255 Go to EXIT

Goto main

: EXIT

Echo ... Scan Has OK! ......

SET IP =

@echo on

--------- Cut here ---------

Instructions:

Scan.bat ip - Port concurrent lines

E.g:

Scan.bat 192.168.0. 80 5

转载请注明原文地址:https://www.9cbs.com/read-34231.html

New Post(0)