mysql挂死,无法启动,解决mysql无法启动:
/etc/my.cnf配置文件中innodb_force_recovery=1
然后service mysqld start
/etc/my.cnf配置文件中innodb_force_recovery=1注释掉
再service mysqld restart
一句话查找PHP木马
# find ./ -name "*.php" |xargs egrep "phpspy|c99sh|milw0rm|eval\(gunerpress|eval\(base64_decoolcode|spider_bc"> /tmp/php.txt
# grep -r --include=*.php '[^a-z]eval($_POST' . > /tmp/eval.txt
# grep -r --include=*.php 'file_put_contents(.*$_POST\[.*\]);' . > /tmp/file_put_contents.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
1、oneinstack/src/php-5.6.36/ext/phar/shortarc.php
#grep -r --include=*.php '[^a-z]eval($_POST' . > grep.txt
#grep -r --include=*.php 'file_put_contents(.*$_POST
.?
);' . > grep.txt
1、./grep.txt文件中