This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: 参考: | |
| :: 1. http://blog.csdn.net/xysoul/article/details/46043697 | |
| :: 2. http://www.freebuf.com/column/152404.html | |
| :: 测试登录mysql | |
| hydra -l root -p 1234 -e ns localhost mysql | |
| :: 根据字典破解mysql(限制尝试次数5000万,破解速度大约每秒100次,Unix \n与Windows \r\n可识别,识别不了Mac \r) | |
| hydra -L d:\it03\桌面\user.txt -P d:\it03\桌面\passwd.txt -e ns -o c:\save.log localhost mysql | |
| hydra -L d:\it03\桌面\user.txt -P d:\it03\桌面\passwd.txt -e ns -o c:\save.log localhost mssql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| which python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 安装插件 | |
| pip install pipreqs | |
| # 生成requirements.txt文件, 直接进入项目下然后使用以下命令 | |
| pipreqs --encoding utf8 --ignore ./log ./ | |
| # 安装requirements.txt依赖 | |
| pip install -r requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| # 通知栏 | |
| def notify(title, text): | |
| os.system(""" | |
| osascript -e 'display notification "{0}" with title "{1}"' | |
| """.format(text, title)) | |
| notify("开会啦", "Go Go Go !!!") | |
| # 语音通知 | |
| os.system('say 还有' + str(total-count) + '个活动未完成') |