Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Usage : bash file.sh 123.456.78
- #Cari IP yang aktif 1-255
- if [ -z "$1" ]; then
- echo ""
- echo "[*] Please enter a valid base IP"
- echo ""
- exit 0
- fi
- echo ""
- echo "[*] Listing live IPs"
- echo ""
- for ip in $(seq 0 254); do
- ping -c 1 $1.$ip | grep "bytes from" | cut -d " " -f4 | cut -d ":" -f1 >> sweep.txt&
- done
- # Printing from text file for clean output
- cat sweep.txt
- rm sweep.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement