duanqing3026 2012-06-28 09:03
浏览 66
已采纳

找到具有777权限的目录中的所有.php文件[关闭]

I have recently had a linux server compromised from bots uploading .php scripts and posing as images. I'm currently in the process of fixing this.

Because my server has a lot of websites I'm looking for a linux command to scan through all the 777 directories on the server and show ones with .php files inside them.

You can use the following command to return all 777 directories but this is not

find httpdocs/ -type d -perm 777

Any ideas?

  • 写回答

1条回答 默认 最新

  • dongsi073898 2012-06-28 09:06
    关注

    Try something like this:

    find httpdocs/ -type d -perm 777 -exec find {} -name "*.php" \; 
    

    This will show you all .php files in directories with 777 permissions. May not be ideal, but will get you started.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器