您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

统计php更改文件,可疑文件

2025/10/25 7:00:38发布11次查看
#!/bin/bash
#wirte by zhenglong 20150818
#centos
# php trojan checking
email=1525356778@qq.com
rm -rf /tmp/file.txt
echo contain suspicious files: >> /tmp/file.txt
find / -name *.php -type f -print0 | xargs -0 egrep (phpspy|c99sh|milw0rm|eval\(gzuncompress\(base64_decoolcode|eval\(base64_decoolcode|spider_bc|gzinflate) | awk -f: '{print $1}' | sort | uniq >> /tmp/file.txt
echo -e \ncontain file_put_contents: >>/tmp/file.txt
grep -r --include=*.php  'file_put_contents(.*$_post\[.*\]);' / >>/tmp/file.txt
echo -e \ncontain eval: >> /tmp/file.txt
grep -r --include=*.php  '[^a-z]eval($_post' / >>/tmp/file.txt
echo -e \n php file change in one day: >> /tmp/file.txt
find / -mtime -1 -type f -name *.php >>/tmp/file.txt
cat /tmp/file.txt |mail -s php trojan ${email}
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product