# wifi破解 **Repository Path**: rednoob/wifiPy ## Basic Information - **Project Name**: wifi破解 - **Description**: 非原创 ............................ - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-06 - **Last Updated**: 2025-09-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # WiFiPy 优化后的WiFi密码破解工具,支持字典攻击和暴力破解两种模式。 ## 功能特性 - 支持字典攻击和暴力破解 - 可配置密码长度范围和字符集 - 自动保存破解结果到文件 - 支持中断和停止功能 - 实时显示破解进度 ## 安装依赖 ```bash pip install pywifi ``` ## 使用示例 ```python # 初始化破解器 cracker = WiFiCracker(ssid="目标WiFi名称") # 加载字典文件(可选) dictionary = load_dictionary("passwords.txt") # 开始破解 password = cracker.crack( min_length=8, max_length=10, dictionary=dictionary ) # 停止破解(当需要手动中断时) cracker.stop() ``` ## API文档 ### WiFiCracker类 ```python def __init__(self, ssid: str, max_threads: int = 3): """ 初始化破解器 :param ssid: 目标WiFi名称 :param max_threads: 最大线程数 """ def crack(self, min_length: int = 8, max_length: int = 10, charset: str = '0123456789abcdefghijklmnopqrstuvwxyz', dictionary: Optional[List[str]] = None) -> Optional[str]: """ 主破解方法 :param min_length: 最小密码长度 :param max_length: 最大密码长度 :param charset: 密码字符集 :param dictionary: 可选字典列表 :return: 找到的密码或None """ ``` ## 许可证 MIT License