Skip to content

Commit 7ba2a99

Browse files
authored
Update threattracer.py
CPEs indepenndent result for packetstorm.
1 parent 8ef0864 commit 7ba2a99

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

threattracer.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,15 @@ def search_and_extract_download_links(product_name):
167167
print(colored(f"Exploit Status: {result['Exploit Status']}", "red"))
168168
else:
169169
print(colored(f"Exploit Status: {result['Exploit Status']}", "green"))
170-
171-
# Search for download links
172-
download_links = search_and_extract_download_links(component)
173-
174-
if download_links is not None:
175-
print(colored("\nPossible Exploits/ 0Days/ CVEs:", "cyan"))
176-
for link in download_links:
177-
print(link)
178-
else:
179-
print(colored("CPEs not found for the provided component and version.", "red"))
170+
else:
171+
print(colored("No CPEs found for the provided component and version.", "red"))
172+
173+
# Search for download links on Packet Storm Security even if no CPEs were found
174+
download_links = search_and_extract_download_links(component)
175+
176+
if download_links:
177+
print(colored("\nPossible Exploits on Packet Storm Security:", "cyan"))
178+
for link in download_links:
179+
print(link)
180+
else:
181+
print(colored("No download links found on Packet Storm Security.", "red"))

0 commit comments

Comments
 (0)