Skip to content

Commit 556c674

Browse files
authored
Update threattracer.py
1 parent 207ff0a commit 556c674

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

threattracer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
| | | | | | | | __/ (_| | |_ | | | | (_| | (_| __/ |
1616
|_| |_| |_|_| \___|\__,_|\__||_|_| \__,_|\___\___|_| Version 2.1
1717
A Script to identify CVE and public exploits using CPE by name & version
18+
-+ Hunt for 0Days and unpublished exploits +-
1819
Credit: @FR13ND0x7F @0xCaretaker @meppohak5
1920
"""
2021

@@ -130,7 +131,7 @@ def search_and_extract_download_links(product_name):
130131
download_links.append(f"https://packetstormsecurity.com{href}")
131132

132133
if not download_links:
133-
print(colored("No download links found on Packet Storm Security.", "red", attrs=["underline"]))
134+
print(colored("No download links found on Packet Storm Security.", "green", attrs=["underline"]))
134135
return None
135136

136137
return download_links
@@ -147,7 +148,7 @@ def search_marc_info(search_term):
147148

148149
# Check if the response contains "No hits found for"
149150
if "No hits found for" in soup.get_text():
150-
print(colored("No possible exploits found on Marc.Info.", "yellow", attrs=["underline"]))
151+
print(colored("No matching exploits found.", "red", attrs=["underline"]))
151152
else:
152153
# Find all <a> tags within <pre> tags, excluding those with "full-disc" in the text
153154
post_links = soup.find('pre').find_all('a', string=lambda text: "full-disc" not in text)
@@ -161,9 +162,9 @@ def search_marc_info(search_term):
161162
results.append({"Name": name, "Link": link_url})
162163
return results
163164
else:
164-
print(colored("No matching results found on Marc.Info.", "yellow"))
165+
print(colored("No matching exploits found.", "green"))
165166
else:
166-
print(colored("Failed to retrieve the web page from Marc.Info.", "red"))
167+
print(colored("Failed to retrieve the web page.", "red"))
167168
print(f"Status code: {response.status_code}")
168169
return None
169170

0 commit comments

Comments
 (0)