From 9143b2c0201d2d456a6f835271ec56a8cd35324b Mon Sep 17 00:00:00 2001 From: AVGirl <[email protected]> Date: Sat, 25 Dec 2021 15:00:46 +0800 Subject: [PATCH] Update virustotal_api.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改VT API查询死循环问题 --- modules/intelligence/virustotal_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/intelligence/virustotal_api.py b/modules/intelligence/virustotal_api.py index 8b3ba12c..6ab467c1 100644 --- a/modules/intelligence/virustotal_api.py +++ b/modules/intelligence/virustotal_api.py @@ -28,6 +28,8 @@ def query(self): self.subdomains.update(subdomains) data = resp.json() next_cursor = data.get('meta').get('cursor') + if not next_cursor: + break def run(self): """