您的位置:首页 > 编程语言 > PHP开发

一句话查找PHP木马

2020-03-05 13:10 901 查看

一句话查找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{} ;

转载于:https://my.oschina.net/jing521/blog/163896

  • 点赞
  • 收藏
  • 分享
  • 文章举报
choudian7070 发布了0 篇原创文章 · 获赞 0 · 访问量 52 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: