add port scan

This commit is contained in:
2023-11-15 19:57:03 +05:00
parent be0d92ebc1
commit 63a62572f2

9
scripts/port-scan Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
for port in {20..10000}
do
(echo > /dev/tcp/$1/$port) &>/dev/null && echo Port $port open
done