命令行制作随机密码#1date +%s | sha256sum | base64 | head -c 32; echo使用 SHA 来哈希日期,输出头 32 个字节。#2< /dev/urandom tr -dc _A-Z-a-z-0-9 |head -c${1:-32};echo;使用内嵌的 /dev/urandom,只输出字符,结果取头 32 个。#3openssl rand -base
1.站点根目录下查找是否被放置webshell木马根据语句判断是不是PHP木马脚本# find /storage/www/ -name "*.php" | xargs grep -in --color "eval("# grep -i --include='*.php' -r system\s*\( /storage/www/2.统计访问日志中来自同ip出现的次数分析盗链、攻击、机器人# cat
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号