• Python Ethical Hacking


     CRAWING DIRECTORIES

    • Directories/folders inside the web root.
    • Can contain files or other directories.

    Ex:

    • target.com/directory
    • plus.google.com/discover

    Target: Metasploitable2-Linux

    #!/usr/bin/env python
    
    import requests
    
    
    def request(url):
        try:
            return requests.get("http://" + url)
        except requests.exceptions.ConnectionError:
            pass
    
    
    target_url = "10.0.0.45/mutillidae/"
    
    with open("common.list", "r") as wordlist_file:
        for line in wordlist_file:
            word = line.strip()
            response = request(test_url)
            if response:
                print("[+] Discovered URL --> " + test_url)

     WoW, Amazing!

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    Vue单向数据流
    npm常用命令
    vue自定义指令
    slot的用法(Vue插槽)
    js闭包
    canvas 给画的多边形着色
    canvas画线
    canvas初体验
    canvas
    json
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/11705861.html
Copyright © 2020-2023  润新知