{try:hard3r} cyberblog
ArticlesToolsContact
  • Cyber articles & reviews
    • Sztuka notowania w cybersecurity
  • Pentesting cheatsheet
    • Basic tools and commands
    • HTB file transfer cheatsheet
  • CTF Machines & Labs walkthrough
  • Useful tools and links
    • 🛠️Simple bash port and host scanners
  • 📩Contact
Powered by GitBook
On this page
  • 1. bash port scanner with % progress view instruction:
  • 2. bash host discovery scanner with % progress view instruction:
  1. Useful tools and links

Simple bash port and host scanners

PreviousUseful tools and linksNextContact

Last updated 1 year ago

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:

1. bash port scanner with % progress view instruction:

  1. Copy portscan.sh file from my and make it executable: chmod +x portscan.sh

  2. Run file: ./portscan.sh

  3. First insert your target IP

  4. 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:

  1. Run file: ./hostscan.sh

  2. 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

🛠️
Github
https://github.com/przemokam/bash_scanners
Github