adding bash port scan

This commit is contained in:
christalib 2020-08-08 11:40:25 +02:00
parent 39e210e064
commit 9c58a2fd57

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!"