这段pf代码将只打开一个文件,在每行上运行Nucleus时遍历该文件。对于那些不熟悉Nucleus的人来说,它基本上只是进入您指定的域并检查CVE。它可以做到这一点,因为CVE文件夹中有几十个模板可以检查不同的CVE。非常感兴趣的工具。我期待着进步,以便我能为这个项目做出贡献(ProjectDiscovery,如果您好奇的话)。我刚开始写代码,所以我不太懂,但我正在学习。请帮我前进
def cveCheck():
with open('results.txt', 'rb') as http_list:
for file_to_scan in http_list:
with open('cve_results.txt', 'a') as f:
p1 = subprocess.Popen(['echo', file_to_scan], stdout=subprocess.PIPE)
p2 = subprocess.Popen([f'nuclei', '-silent', '-t', '~/tools/nuclei-templates/cves/'], stdin=p1.stdout, stdout=f)
output = p2.communicate()
这就是错误所在。它吐出了其中的122条线。我假设它是这样的,因为有122行,在results.txt文件中每行有一个域。我还收到了另一个错误,说明它找不到位于CVE目录中的模板
[FTL] Error, no templates were found.
[FTL] Error, no templates were found.
[FTL] Error, no templates were found.
[FTL] Error, no templates were found.
....
我还想问我是否也应该使用线程模块来实现这一点
目前没有回答
相关问题 更多 >
编程相关推荐