This commit is contained in:
Luk Lu
2023-03-08 08:47:12 +08:00
parent 2d38dc0b68
commit e79356b310
12 changed files with 20 additions and 26 deletions

14
portscan.bat Normal file
View File

@@ -0,0 +1,14 @@
@ if not "" == "%1" (
set PORT=%1
) else (
echo === Enter [port] to scan:
set /p PORT=">>> "
echo;
)
netstat -aon |findstr %PORT%
@echo;
@echo "tasklist |findstr [PID]": to find the process,
@echo "taskkill /T /F /PID [PID]": to kill the process.