fix MAC parsing
This commit is contained in:
parent
6b296b21f5
commit
cab5e001da
2
fluxion
2
fluxion
|
@ -2827,7 +2827,7 @@ function handshakecheck {
|
||||||
for cliente in \"\${CLIENTESDHCP[@]}\"; do
|
for cliente in \"\${CLIENTESDHCP[@]}\"; do
|
||||||
x=\$((\$x+1))
|
x=\$((\$x+1))
|
||||||
CLIENTE_IP=\$(echo \$cliente| cut -d \" \" -f2)
|
CLIENTE_IP=\$(echo \$cliente| cut -d \" \" -f2)
|
||||||
CLIENTE_MAC=\$(nmap -PR -sn -n \$CLIENTE_IP 2>&1 | grep -i mac | cut -d \" \" -f3 | tr [:upper:] [:lower:])
|
CLIENTE_MAC=\$(nmap -PR -sn -n \$CLIENTE_IP 2>&1 | grep -i mac | awk '{print $3}' | tr [:upper:] [:lower:])
|
||||||
|
|
||||||
if [ \"\$(echo \$CLIENTE_MAC| wc -m)\" != \"18\" ]; then
|
if [ \"\$(echo \$CLIENTE_MAC| wc -m)\" != \"18\" ]; then
|
||||||
CLIENTE_MAC=\"xx:xx:xx:xx:xx:xx\"
|
CLIENTE_MAC=\"xx:xx:xx:xx:xx:xx\"
|
||||||
|
|
Loading…
Reference in New Issue