Skip to content

Instantly share code, notes, and snippets.

@Humecry
Humecry / Hydra.bat
Created October 8, 2018 08:41
Hydra暴力破解.bat
:: 参考:
:: 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
@Humecry
Humecry / which.sh
Created October 8, 2018 08:39
在Mac客户端查看Python运行程序的位置
which python
@Humecry
Humecry / req.bat
Created October 8, 2018 08:37
Python生成requirement.txt文件
# 安装插件
pip install pipreqs
# 生成requirements.txt文件, 直接进入项目下然后使用以下命令
pipreqs --encoding utf8 --ignore ./log ./
# 安装requirements.txt依赖
pip install -r requirements.txt
@Humecry
Humecry / notify.py
Last active October 8, 2018 08:45
Python在Mac客户端发送通知及语音信息
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) + '个活动未完成')