# dirknow **Repository Path**: nothing-is-nothing/dirknow ## Basic Information - **Project Name**: dirknow - **Description**: 基于机器学习的目录扫描预测工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-05 - **Last Updated**: 2023-03-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 目录先知 基于机器学习实现的目录扫描预测 ## 原理 根据扫描结果生成训练数据, 使用训练数据训练模型,使用模型对未扫描的字典进行预测 ## 使用 step1. 使用 dirsearch 对目标站点进行扫描,得到扫描结果 ``` dirsearch -u http://www.example.com -o dirsearch.log ``` step2. 预测响应码可能为200的目录, 生成的字典保存在 ./new_dict.txt ``` python3 dirknow.py -s 200 ``` 等价于: ``` python3 dirknow.py -s 200 -f ./dirsearch.log ``` step3. 使用新的字典对目标站点进行扫描 ``` dirsearch -u http://www.example.com -w ./new_dict.txt ``` ## 开发 提取特征: ``` make deal ```