你好 @0x727,
ShuiZe当前使用多线程处理网络I/O,在目标数量大时(10000+子域名)内存和线程开销较高。建议迁移到异步模型。
迁移方案:
- 将
requests替换为aiohttp
- 使用
asyncio.Semaphore控制并发
- 保留同步接口作为兼容层
预期收益:
- 内存占用降低60-80%(goroutine vs 线程)
- 吞吐量提升3-5倍(I/O密集型任务)
- 更好的并发控制(Semaphore vs 手动线程管理)
迁移优先级:
- 子域名解析(DNS查询)
- 网络空间引擎查询(Fofa/Shodan API)
- 存活探测(HTTP标题获取)
- 最后迁移漏洞检测插件
这是一个中等规模的重构,但收益显著。
[English Translation / 英文摘要]
Hi maintainers, this issue is a feature / architecture / security suggestion for 10_ShuiZe.
The Chinese text above contains the detailed proposal with technical context and implementation ideas.
In summary: we are requesting the enhancement described above and would be happy to provide PRs or further discussion in either Chinese or English.
Thank you for the excellent work on this project!
你好 @0x727,
ShuiZe当前使用多线程处理网络I/O,在目标数量大时(10000+子域名)内存和线程开销较高。建议迁移到异步模型。
迁移方案:
requests替换为aiohttpasyncio.Semaphore控制并发预期收益:
迁移优先级:
这是一个中等规模的重构,但收益显著。
[English Translation / 英文摘要]
Hi maintainers, this issue is a feature / architecture / security suggestion for 10_ShuiZe.
The Chinese text above contains the detailed proposal with technical context and implementation ideas.
In summary: we are requesting the enhancement described above and would be happy to provide PRs or further discussion in either Chinese or English.
Thank you for the excellent work on this project!