Linux shell快速查找PHP木马
2014-08-21 10:10
288 查看
一句话查找 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
查找最近一天被修改的 PHP 文件
find -mtime -1 -type f -name \*.php
修改网站的权限
find -type f -name \*.php -exec chmod 444 {} \;
find ./ -type d -exec chmod 555{} \;
网站源码下载
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
查找最近一天被修改的 PHP 文件
find -mtime -1 -type f -name \*.php
修改网站的权限
find -type f -name \*.php -exec chmod 444 {} \;
find ./ -type d -exec chmod 555{} \;
网站源码下载
相关文章推荐
- Linux shell快速查找PHP木马
- Linux shell快速查找PHP木马
- Linux下shell快速查找PHP木马
- linux下查找php木马
- php排序、去掉重复项、快速查找
- PHP实现文本快速查找 - 二分查找
- PHP XPath快速查找xml元素实例: 词典(xml) 查询词条
- PHP XPath谓语(xml中快速查找并筛选)
- asp,php一句话木马整理方便查找木马
- 网易编程笔试 基于快排思想的快速查找法 php
- php快速查找数据库中恶意代码的方法
- 精确查找PHP WEBSHELL木马 修正版
- PHP木马的判断和查找清除
- 快速查找素数 http://acm.nyist.net/JudgeOnline/problem.php?pid=187
- tasklist命令查看DLL快速查找木马
- 精确查找PHP WEBSHELL木马 修正版
- linux下查找php木马
- php 网站服务器查找木马的方法
- php冒泡排序、快速排序、快速查找、二维数组去重实例分享
- PHP:冒泡排序、快速查找和二分查找的思路以及算法