Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我的WorpAddress网站主页中有人注入的脚本_Javascript_Wordpress_Security_Code Injection - Fatal编程技术网

Javascript 我的WorpAddress网站主页中有人注入的脚本

Javascript 我的WorpAddress网站主页中有人注入的脚本,javascript,wordpress,security,code-injection,Javascript,Wordpress,Security,Code Injection,我有WordPress网站。在我的主页中,有人在我的post div之后添加了一些脚本,我试图找出如何删除此脚本,但脚本是动态的 我猜我的网站被人入侵了 在这里,我将分享由某人function 7a3(){var h=document.head;if(!h){h=document.getElementsByTagName(“head”);h=h[0];}var s=document.createElement(“style”);s.type=“text/css”;var c=“#swboc-10

我有WordPress网站。在我的主页中,有人在我的post div之后添加了一些脚本,我试图找出如何删除此脚本,但脚本是动态的

我猜我的网站被人入侵了

在这里,我将分享由某人
function 7a3(){var h=document.head;if(!h){h=document.getElementsByTagName(“head”);h=h[0];}var s=document.createElement(“style”);s.type=“text/css”;var c=“#swboc-10o{display:flex;溢出:隐藏;边距:0px}#右下角#swboc-10o>*{宽度:497px;弹性收缩:0;边距:0}#swboc-10o>#swboc-10{边距左侧:-497px;弹性收缩:1;背景色:rgb(255,255,255);宽度:100%}@media only screen和(最大宽度:1024px)和(最小宽度:960px){swboc-10o{浮点:左侧;边距:0 25px;}”;if(s.styleSheet)s.styleSheet.cssText=c;else.created-document;h.appendChild;}

function erewhonf75(){var h=document.head;if(!h){h=document.getElementsByTagName(“head”);h=h[0]}var s=document.createElement(“style”);s.type=“text/css”var c=“#erewhon-f75o{display:flex;溢出:隐藏;边距:10px 0px}erewhon-f75o>*{width:407px;flex:0;边距:0#{左边距:-407px;弹性收缩:1;背景色:rgb(255,255,255);宽度:100%}”;if(s.styleSheet)s.styleSheet.cssText=c;else s.appendChild(document.createTextNode(c));h.appendChild(s);}
HTML标记是

  <div><a href="https://cialrx.com/">Cialis 10 mg</a> proved to be a really reliable drug that helps me in dealing with women. I accept it two or three hours before the meeting. When it starts to work, I feel a rush of blood to my face, a small stuffiness in my nose, but eventually it all descends to the genitals. The effect is only positive, lasting several days.</div><p id="erewhon-f75">Erewhon Santa Monica features a beautiful patio, terraced courtyard, and a street-level view of Erewhon’s open kitchen. Erewhon has been independent and family-owned for fifty years. We are proud to work with innovative and passionate vendors and farmers to bring you a unique mix of products, held to the highest standards. Hope to see you soon!</p></div>
<script>erewhonf75();</script></li></ul></div></div>
被证明是一种非常可靠的药物,有助于我与女性打交道。我在开会前两三个小时接受了它。当它开始起作用时,我感到脸上一阵血涌,鼻子有点闷,但最终都会流到生殖器。效果只有肯定的,持续几天。

Erewon Santa Monica拥有一个美丽的天井、梯田式庭院和一个街道水平的开放式厨房。Erewon独立和家族拥有50年。我们很自豪地与创新和热情的供应商和农民合作,为您带来独特的产品组合,达到最高标准。希望很快见到您!

erewhonf75();
我不知道这个脚本和HTML div是什么


我在整个项目中都被搜索过,但在我这边找不到任何东西任何人都知道我的网站发生了什么事

你最好的办法是使用Wordfence(这是一个插件,有一个免费版本)之类的东西运行扫描。大多数代码注入都是通过eval(base64_decode)完成的代码片段。它可能在functions.php文件中,但它们可能会破坏每个php文件

一句话:安装Wordfence或任何其他扫描工具,并按照它提供的说明进行操作。确保更新所有插件和Wordpress版本。如果主题代码在git中跟踪,您也可以比较代码并从master中删除所有垃圾。

尝试使用file style.css
a[href=”https://cialrx.com/"]{
显示:无;
}


更改密码和登录。

好的,我是新来的,所以我会更正我的问题。我想我找到了错误。“我有WordPress网站”。这是你的问题。最后我得到了答案,有两个插件创建了这个脚本。因此,从我的网站上删除它们,网站在没有脚本的情况下工作。如果你还没有更新密码并限制登录尝试,这可能也是一个好主意。最后我得到了答案,有两个插件创建了这个脚本。因此,从m我的网站和没有脚本的网站避免这样做。这只会从视图中隐藏这样一个链接,但它仍然会在页面上。最后我得到了答案,有两个插件创建了这个脚本。所以从我的网站和没有脚本的网站中删除它们
  <div><a href="https://cialrx.com/">Cialis 10 mg</a> proved to be a really reliable drug that helps me in dealing with women. I accept it two or three hours before the meeting. When it starts to work, I feel a rush of blood to my face, a small stuffiness in my nose, but eventually it all descends to the genitals. The effect is only positive, lasting several days.</div><p id="erewhon-f75">Erewhon Santa Monica features a beautiful patio, terraced courtyard, and a street-level view of Erewhon’s open kitchen. Erewhon has been independent and family-owned for fifty years. We are proud to work with innovative and passionate vendors and farmers to bring you a unique mix of products, held to the highest standards. Hope to see you soon!</p></div>
<script>erewhonf75();</script></li></ul></div></div>