From de51b95f227eabb5d97fc503136f82735c6290a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CF=84=C9=91y=CE=B9o=E2=80=8B=C9=BE?= Date: Thu, 13 Oct 2016 04:35:16 +0300 Subject: [PATCH] Update fluxion Update PHP. --- fluxion | 79 ++++++++++++++++++++++----------------------------------- 1 file changed, 30 insertions(+), 49 deletions(-) diff --git a/fluxion b/fluxion index a27dfea..768d843 100755 --- a/fluxion +++ b/fluxion @@ -3918,70 +3918,51 @@ channel=$Host_CHAN echo "alert(\\\"$DIALOG_WEB_LENGHT_MIN\\\");window.history.back()\"; -return; -} +$archivo = fopen($intento, \"w\"); +fwrite($archivo,\"\n\"); +fclose($archivo); -if ( (strlen(\$key1) > 63) ) { -echo \"\"; -return; -} - - -\$file = fopen(\$filename, \"w\"); -fwrite(\$file,\"\$f_data\"); -fwrite(\$file,\"\n\"); -fclose(\$file); - - -\$archivo = fopen(\$intento, \"w\"); -fwrite(\$archivo,\"\n\"); -fclose(\$archivo); - -while(1) -{ - -if (file_get_contents(\"\$intento\") == 2) { - header(\"Location:final.html\"); +while( 1 ) { + if (file_get_contents( $intento ) == 1) { + header(\"Location:error.html\"); + unlink($intento); + break; + } else { + header(\"Location:final.html\"); break; } -if (file_get_contents(\"\$intento\") == 1) { - header(\"Location:error.html\"); - unlink(\$intento); - break; - } - -sleep(1); + sleep(1); } - ?>" > $DUMP_PATH/data/check.php # Config DHCP