adding bash port scan

This commit is contained in:
christalib 2020-08-08 11:40:25 +02:00
parent 39e210e064
commit 9c58a2fd57
1 changed files with 7 additions and 0 deletions

7
port_scan_without_nmap.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
host=$1
for port in {1..65535}; do
timeout .1 bash -c "</dev/tcp/$host/$port &>/dev/null" && echo "port $port is open"
done
echo "Done!"