adding bash port scan
This commit is contained in:
parent
39e210e064
commit
9c58a2fd57
|
@ -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…
Reference in New Issue