This commit is contained in:
luk.lu
2022-12-12 15:31:17 +08:00
parent a810890c4e
commit 3e513801bd
18 changed files with 30 additions and 15 deletions

12
portscan-windows.bat Normal file
View File

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