2018年12月7日
摘要: 一、Python发送邮件 import smtplib from email.mime.text import MIMEText def send(email_to,title,content): msg = MIMEText(content,"plain","utf-8") froms = "12 阅读全文
posted @ 2018-12-07 22:48 可口_可乐 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 一、登录ssh失败次数统计 1)错误的打开方式 awk '/Failed password/ {print $(NF-3)}' secure |sort -n |uniq -c|sort -n |tail /var/log/secure 2)拷贝文件,再查看失败 cp /var/log/secure 阅读全文
posted @ 2018-12-07 17:20 可口_可乐 阅读(844) 评论(0) 推荐(0) 编辑