Simple bash port and host scanners
Last updated
Last updated
Recently I wrote (for my lab purpose) two bash scripts that can scan entire network to discover alive hosts or scan target IP searching for open ports.
Both scanners have % progress information status just to know how far in process they are.
You can download both script from my Giuthub repository:
Copy portscan.sh
file from my and make it executable: chmod +x portscan.sh
Run file: ./portscan.sh
First insert your target IP
Then choose TCP or UDP scan type you want perform
Script scans all 65535 ports so it may take some time (about 10 minutes).
Feel free to use it in case you don't have access to nmap :)
Run file: ./hostscan.sh
Insert your target network IP range eg. 192.168.1.0/24
Script will scan all network and will look for alive hosts.
Feel free to use it in case you don't have access to nmap :)
copy hostscan.sh
file from my and make it executable: chmod +x hostscan.sh