Hi all,
I'm writing a ping sweep script as part of some online training/labs and for some reason, each time I run it I get the error:
ping: 192.168.1.seq: Name or service not known
The script is:
As I am sure you can see; all it does is ping an inputted address range from 1 - 254 (and removes a few characters and spaces from the results)Code:#!/bin/bash for ip in 'seq 1 254'; do ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" & done
e.g:
Code:./ipsweep.sh 192.168.1
I'm pretty sure the script is fine as it works on other Kali deployments, just not mine!
I've trawled hours of search engine results and still cannot get this working, so reaching out to the experts! - Help!
Thanks in advance.
Rob.