From 87a6142e78e9e3031ad243055d2cb8201bd8f879 Mon Sep 17 00:00:00 2001 From: PatatasFritas Date: Wed, 25 May 2016 17:47:08 +0200 Subject: [PATCH] Fix bug when SSID contains spaces (#42) Added quotes to $Host_SSID variable in handcheck file. --- fluxion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxion b/fluxion index dd068a4..69a6889 100755 --- a/fluxion +++ b/fluxion @@ -3594,7 +3594,7 @@ function handshakecheck { if [ $authmode = "handshake" ]; then echo "if [ -f $DUMP_PATH/pwattempt.txt ]; then - cat $DUMP_PATH/pwattempt.txt >> $PASSLOG_PATH/$Host_SSID-$Host_MAC.log + cat $DUMP_PATH/pwattempt.txt >> \"$PASSLOG_PATH/$Host_SSID-$Host_MAC.log\" rm -f $DUMP_PATH/pwattempt.txt fi @@ -3707,7 +3707,7 @@ function handshakecheck { Security: $Host_ENC Time: \$ih\$horas:\$im\$minutos:\$is\$segundos Password: \$(cat $DUMP_PATH/data.txt) - \" >$HOME/$Host_SSID-password.txt">>$DUMP_PATH/handcheck + \" >\"$HOME/$Host_SSID-password.txt\"">>$DUMP_PATH/handcheck if [ $authmode = "handshake" ]; then