find -name 'xixi.php' |xargs perl -pi -e 's|hello|aa|g'
find -name '*.html' |xargs perl -pi -e 's|aa|hello|g'
find -name '*.html' |xargs perl -pi -e 's|<script src=“a.js([^>]*)></script>||g'
Linux 当大批文件被挂马时(挂js文件),用此方法替换。
find -name 'xixi.php' |xargs perl -pi -e 's|hello|aa|g'
find -name '*.html' |xargs perl -pi -e 's|aa|hello|g'
find -name '*.html' |xargs perl -pi -e 's|<script src=“a.js([^>]*)></script>||g'
Linux 当大批文件被挂马时(挂js文件),用此方法替换。
德才手游网 Copyright(C) 2008-2025 lengguim.com All Rights Reserved!