adding bash port scan

aleph
christalib 2 years ago
parent 39e210e064
commit 9c58a2fd57
  1. 7
      port_scan_without_nmap.sh

@ -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!"
Loading…
Cancel
Save