我是靠谱客的博主 多情荔枝,这篇文章主要介绍linux php木马下载,Linux shell快速查找PHP木马,现在分享给大家,希望可以做个参考。

一句话查找 PHP 木马

find ./ -name "*.php" |xargs egrep "phpspy|c99sh|milw0rm|eval(gunerpress|eval(base64_decoolcode|spider_bc|base64_decode|Create_Function|ob_start|pack|relset_UC_key" > /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_decode|eval(base64_decode|spider_bc|gzinflate)" | awk -F: '{print $1}' | sort | uniq

查找最近一天被修改的 PHP 文件

www.xxx.com

find -mtime -1 -type f -name *.php

修改网站的权限

find -type f -name *.php -exec chmod 444 {} ;

find ./ -type d -exec chmod 555{} ;

最后

以上就是多情荔枝最近收集整理的关于linux php木马下载,Linux shell快速查找PHP木马的全部内容,更多相关linux内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(77)

评论列表共有 0 条评论

立即
投稿
返回
顶部