当前位置:网站首页>Clean up photo SCR virus / iframekill injection removal /iframekill removal photo scr

Clean up photo SCR virus / iframekill injection removal /iframekill removal photo scr

2022-06-26 04:17:00 Never bow

Global cleanup Photo.scr file

find /www/wwwroot/ -type f -name "Photo.scr" -print -exec rm -rf {} \;

// Or under the specified project 
find /www/wwwroot/ Your file name  -type f -name "Photo.scr" -print -exec rm -rf {} \;


2
Clean up the code written in batches in the file

find /www/wwwroot/ -name '*.php' | xargs perl -pi -e 's|<iframe src=Photo.scr width=1 height=1 frameborder=0></iframe>||g'

// If execution fails , Can be executed separately , occasionally    
//【<iframe src=Photo.scr width=1 height=1 frameborder=0></iframe>】 There is a newline in the middle of the code 

// First execution , Delete... In the first line 
find /www/wwwroot/ -name '*.php' | xargs perl -pi -e 's|<iframe src=Photo.scr width=1 height=1 frameborder=0>||g'
// Second execution    Delete the 
find /www/wwwroot/ -name '*.php' | xargs perl -pi -e 's|</iframe>||g'


————————————————
Copyright notice : This paper is about CSDN Blogger 「php Small shadow 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/weixin_43993175/article/details/103891041

原网站

版权声明
本文为[Never bow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180536198641.html