Unverified Commit bf41a157 authored by David Beniamine's avatar David Beniamine
Browse files

Handle hosts without ips

parent 44542a92
......@@ -52,6 +52,10 @@ do
do
mac=$(echo $line | cut -d ' ' -f 2)
IPS=$(getip $mac | sed -e 's/ /,/g')
if [ -z "$IPS" ]
then
IPS="NA"
fi
echo "$line $IPS" >> $hostfile-$$
done < $hostfile
stdbuf -oL cat $hostfile-$$ | netcat $host $port
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment