From cab5e001da15f209067158d26100b68a894ec408 Mon Sep 17 00:00:00 2001 From: strasharo Date: Sun, 13 Mar 2016 17:00:29 +0200 Subject: [PATCH] fix MAC parsing --- fluxion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluxion b/fluxion index d687f70..51b99ea 100755 --- a/fluxion +++ b/fluxion @@ -2827,7 +2827,7 @@ function handshakecheck { for cliente in \"\${CLIENTESDHCP[@]}\"; do x=\$((\$x+1)) 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 CLIENTE_MAC=\"xx:xx:xx:xx:xx:xx\"