File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,15 @@ def search_and_extract_download_links(product_name):
167
167
print (colored (f"Exploit Status: { result ['Exploit Status' ]} " , "red" ))
168
168
else :
169
169
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 ("\n Possible 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 ("\n Possible 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" ))
You can’t perform that action at this time.
0 commit comments