我正在为一个集群破解项目编写一个 hashcat-wrapper ( Windows )。
我已经下载了 hashcat 二进制文件,我正在像这样从 python 调用 hashcat 二进制文件
subprocess.call('hashcat -m 2500 -D 2 -O -w 3 C:/Users/Tuhin/cluster-cracking/job/honeypot_wpa2.hccapx C:/Users/Tuhin/cluster-cracking/wordlist/BIG-WPA-LIST-1', shell=True, cwd='C:/hashcat-6.2.3/')
最终,我将在子线程中调用 hashcat 二进制文件。Hashcat 通常需要相当长的时间来浏览单词表。同时shell 保持交互,即如果我按's' 它会显示我当前的状态,'q' 将退出正在运行的工作。
问题是,如果我从子线程运行 hascat 作为系统调用(如上所示),我怎样才能使母线程与子线程交互,即模拟按键并将输出返回到母线程。
我希望解决方案在 Windows 中运行,我发现很少有解决方案可以在 linux 中对 hashcat 进行 API 调用。
先感谢您