【问题标题】:Fastest method for Brute Force?蛮力的最快方法?
【发布时间】:2017-03-03 07:01:43
【问题描述】:

我正在为一个学校项目尝试暴力破解 ZIP 文件,但发现这非常大约 1600 次尝试/秒)。
是否有任何方法允许同时运行多次尝试拆分整个过程而不减慢速度?我听说过thread 模块,但不确定这是否真的是我需要的;) 谢谢!

【问题讨论】:

    标签: python python-3.x python-multithreading boost-thread brute-force


    【解决方案1】:

    使用多处理模块

    看看这个: https://pymotw.com/3/multiprocessing/basics.html

    Dead simple example of using Multiprocessing Queue, Pool and Locking

    通过使用多处理,您可以在 CPU 内核之间拆分作业

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-29
      • 1970-01-01
      • 1970-01-01
      • 2012-07-24
      • 1970-01-01
      • 2013-03-25
      • 2013-04-11
      • 1970-01-01
      相关资源
      最近更新 更多