1
# Starting with the most hardware close things. When the target is a MAC
3
if echo "$TARGET" | $IFGREP "^$H$C$H$C$H$C$H$C$H$C$H\$" ; then
4
# Normally is should be appended but this is the first time so it is
9
ETTLMAC=$(sudo ettercap -Nl | grep $UMACN)
10
if [ ! -z "$ETTLMAC" ] ; then
11
TMP=$(echo "$ETTLMAC" | $SED "s/^[[:space:]]*[0-9][0-9]*.[[:space:]][[:space:]]*//;")
12
IP=$(echo "$TMP" | $SED "s/[[:space:]].*//;")
13
DNS=$(echo "$TMP" | $SED "s/.*[[:space:]]//g;")
14
if [ -z "$DNS" ] ; then