返回首页 网站目录结构探测脚本

网站目录结构探测脚本

**脚本 | 2025-06-18 04:29:16

import requests
from concurrent.futures import ThreadPoolExecutor

def check_dir(base_url, path):
    try:
        r = requests.get(f"{base_url}/{path}", timeout=3)
        if r.status_code < 400:
            print(f"[+] Found: {base_url}/{path}")
    except:
        pass

with open("wordlist.txt") as f:
    directories = [line.strip() for line in f]

with ThreadPoolExecutor(max_workers=20) as executor:
    for directory in directories:
        executor.submit(check_dir, "http://target.com", directory)