Obtain client hostname from DHCPD log.
This commit is contained in:
parent
5db68bbc48
commit
26dc28a5dd
2
fluxion
2
fluxion
|
@ -2839,7 +2839,7 @@ function handshakecheck {
|
||||||
CLIENTE_FABRICANTE=\"unknown\"
|
CLIENTE_FABRICANTE=\"unknown\"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CLIENTE_HOSTNAME=\$(echo \$cliente| cut -d \" \" -f 3 | cut -d \"(\" -f2 | cut -d \")\" -f1)
|
CLIENTE_HOSTNAME=\$(grep \$CLIENTE_IP $DUMP_PATH/clientes.txt | grep DHCPACK | sort | uniq | head -1 | grep '(' | awk -F '(' '{print \$2}' | awk -F ') '{print \$1}')
|
||||||
|
|
||||||
echo -e \" $green \$x) $red\$CLIENTE_IP $yellow\$CLIENTE_MAC $transparent($blue\$CLIENTE_FABRICANTE$transparent) $green \$CLIENTE_HOSTNAME$transparent\"
|
echo -e \" $green \$x) $red\$CLIENTE_IP $yellow\$CLIENTE_MAC $transparent($blue\$CLIENTE_FABRICANTE$transparent) $green \$CLIENTE_HOSTNAME$transparent\"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue