🛠️Simple bash port and host scanners
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:
https://github.com/przemokam/bash_scanners
1. bash port scanner with % progress view instruction:
Copy
portscan.sh
file from my Github 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 :)
2. bash host discovery scanner with % progress view instruction:
copy
hostscan.sh
file from my Github and make it executable:chmod +x hostscan.sh
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 :)
Last updated