关于删除恶意软件脚本 [英] About Removing Malware Scripts

查看:77
本文介绍了关于删除恶意软件脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在php网站上工作,它经常受到恶意软件的感染.我已经完成了所有安全步骤,但失败了.但是我知道每次感染代码的方式.它来自我的PHP索引文件的开头,如下所示.

I am working on a php website and it gets regularly infected by Malware. I've gone through all the security steps but failed. But I know how it every time infect my code. It comes at the starting of my php index file as following.

<script>.....</script><?

有人可以帮助我如何删除服务器文件夹中每个索引文件的起始块代码?我将为此使用cron.

Can anybody please help me how can I remove the starting block code of every index file at my server folders? I will use a cron for this.

我已经遇到了正则表达式问题来删除javascript恶意软件但没有找到我想要的.

I already gone through regex question for removal of javascript malware but did not found what I want.

推荐答案

您应该将FTP密码更改为您的网站,并确保没有在后台运行的程序打开服务器上的TCP连接,以使某些远程家伙能够更改您的站点文件.如果您使用的是Linux,请检查正在运行的进程并杀死/删除所有可疑文件.

You should change FTP password to your website, and also make sure that there are no programs running in background that open TCP connections on your server enabling some remote dude to change your site files. If you are on Linux, check the running processes and kill/delete all that is suspicious.

您还可以使用ROOT将所有服务器文件设置为ReadOnly ...

You can also make all server files ReadOnly with ROOT...

无论如何,应该归咎于木马/恶意软件/未经授权的ftp访问,而不是JavaScript.

Anyhow, trojan/malware/unautorized ftp access is to blame, not JavaScript.

另外,这是一个超级用户问题...

这篇关于关于删除恶意软件脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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