Skip to content

建议:用asyncio/aiohttp替换threading模型 #185

Description

@hmkklol

你好 @0x727

ShuiZe当前使用多线程处理网络I/O,在目标数量大时(10000+子域名)内存和线程开销较高。建议迁移到异步模型。

迁移方案:

  1. requests替换为aiohttp
  2. 使用asyncio.Semaphore控制并发
  3. 保留同步接口作为兼容层

预期收益:

  • 内存占用降低60-80%(goroutine vs 线程)
  • 吞吐量提升3-5倍(I/O密集型任务)
  • 更好的并发控制(Semaphore vs 手动线程管理)

迁移优先级:

  1. 子域名解析(DNS查询)
  2. 网络空间引擎查询(Fofa/Shodan API)
  3. 存活探测(HTTP标题获取)
  4. 最后迁移漏洞检测插件

这是一个中等规模的重构,但收益显著。

[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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions