add port scan

This commit is contained in:
Shihaam Abdul Rahman 2023-11-15 19:57:03 +05:00
parent be0d92ebc1
commit 63a62572f2
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

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