Posted 2024-02-10Updated 2024-02-10Linuxa minute read (About 188 words)修复zsh: corrupt history file使用zsh时突然在命令行不停刷新这个报错“zsh: corrupt history file”,原因是记录历史命令的文件损坏了,shell无法读取该文件。Read more
Posted 2024-01-22Updated 2024-01-25Linux / Python3 minutes read (About 523 words)Python获取攻击nginx IP并自动加入ufw拒绝策略自己搭建的博客网站经常会有异常IP尝试访问网站漏洞,由于网站是hexo生成的静态的网站正常访问的情况不会出现太多400或404请求,所以将异常IP加入防火墙组织请求不会出现误封IP情况。Read more
Posted 2024-01-22Updated 2024-01-25Terraforma few seconds read (About 0 words)移动云Terraform创建VPC、子网和虚拟网卡
Posted 2024-01-21Updated 2024-01-25Linux3 minutes read (About 451 words)自动将SSH爆破IP加入黑名单脚本lastblastb指令可以显示登录失败的IP,通过统计IP登录失败数量来判断该IP是否在爆破主机。Read more