-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathexploit-eye.py
More file actions
451 lines (339 loc) · 18.1 KB
/
exploit-eye.py
File metadata and controls
451 lines (339 loc) · 18.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
#!/usr/bin/env/python3
# This Python file uses the following -*- coding: utf-8 -*-
# ===== #
#
# ▀█████████▄ ▄████████ Websites: HackingPassion.com | Bullseye0.com
# ███ ███ ███ ███ Author: Jolanda de Koff | Bulls Eye
# ███ ███ ███ █▀ GitHub: https://github.com/BullsEye0
# ▄███▄▄▄██▀ ▄███▄▄▄ linkedin: https://www.linkedin.com/in/jolandadekoff
# ▀▀███▀▀▀██▄ ▀▀███▀▀▀ Facebook Page: https://www.facebook.com/ethical.hack.group/
# ███ ██▄ ███ █▄ Facebook: https://www.facebook.com/profile.php?id=100069546190609
# ███ ███ ███ ███ Twitter: https://twitter.com/bulls__eye
# ▄█████████▀ ██████████ YouTube: https://www.youtube.com/@HackingPassion
#
# Bulls Eye..!
# ===== #
# Exploit Eye V1.0 Created years ago for private use.
# Copyright (c) 2025 Jolanda de Koff.
########################################################################
# A notice to all nerds and n00bs...
# If you will copy the developer's work it will not make you a hacker..!
# Respect all developers, we doing this because it's fun...
########################################################################
# Copyright (c) 2025 Jolanda de Koff (BullsEye0)
# Licensed under Custom Restrictive License
# See LICENSE file for details
# Unauthorized integration or redistribution is prohibited
#########################################################################
import requests
import json
import time
import sys
from datetime import datetime, timedelta
def banner():
print("""
\033[1;31m
▓█████ ▒██ ██▒ ██▓███ ██▓ ▒█████ ██▓▄▄▄█████▓ ▓█████▓██ ██▓▓█████
▓█ ▀ ▒▒ █ █ ▒░▓██░ ██▒▓██▒ ▒██▒ ██▒▓██▒▓ ██▒ ▓▒ ▓█ ▀ ▒██ ██▒▓█ ▀
▒███ ░░ █ ░▓██░ ██▓▒▒██░ ▒██░ ██▒▒██▒▒ ▓██░ ▒░ ▒███ ▒██ ██░▒███
▒▓█ ▄ ░ █ █ ▒ ▒██▄█▓▒ ▒▒██░ ▒██ ██░░██░░ ▓██▓ ░ ▒▓█ ▄ ░ ▐██▓░▒▓█ ▄
░▒████▒▒██▒ ▒██▒▒██▒ ░ ░░██████▒░ ████▓▒░░██░ ▒██▒ ░ ░▒████▒ ░ ██▒▓░░▒████▒
░░ ▒░ ░▒▒ ░ ░▓ ░▒▓▒░ ░ ░░ ▒░▓ ░░ ▒░▒░▒░ ░▓ ▒ ░░ ░░ ▒░ ░ ██▒▒▒ ░░ ▒░ ░
░ ░ ░░░ ░▒ ░░▒ ░ ░ ░ ▒ ░ ░ ▒ ▒░ ▒ ░ ░ ░ ░ ░▓██ ░▒░ ░ ░ ░
░ ░ ░ ░░ ░ ░ ░ ░ ░ ▒ ▒ ░ ░ ░ ▒ ▒ ░░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░
░ ░
\033[1;m
Exploit Eye V1.0
Author: Jolanda de Koff aka Bulls Eye
GitHub: https://github.com/BullsEye0
Website: https://HackingPassion.com
\033[1;31mLet's find some vulnerabilities! 🎯\033[0m
""")
def menu():
print("\n\033[1;34m" + "="*70 + "\033[1;m")
print("\033[1;34m[1]\033[1;m Latest Critical CVEs (Last 7 days)")
print("\033[1;34m[2]\033[1;m Search CVEs by Keyword")
print("\033[1;34m[3]\033[1;m Search CVEs by Vendor/Product")
print("\033[1;34m[4]\033[1;m Get Specific CVE Details")
print("\033[1;34m[5]\033[1;m Search Exploit-DB")
print("\033[1;34m[6]\033[1;m Search GitHub for Tools/Exploits")
print("\033[1;34m[0]\033[1;m Exit")
print("\033[1;34m" + "="*70 + "\033[1;m")
def get_latest_cves(days=7, min_score=7.0):
print(f"\n[*] Fetching CVEs from last {days} days (CVSS >= {min_score})...")
print("[*] Using NIST NVD API...")
try:
end_date = datetime.now()
start_date = end_date - timedelta(days=days)
pub_start = start_date.strftime("%Y-%m-%dT00:00:00.000")
pub_end = end_date.strftime("%Y-%m-%dT23:59:59.999")
url = "https://services.nvd.nist.gov/rest/json/cves/2.0"
params = {
"pubStartDate": pub_start,
"pubEndDate": pub_end,
"cvssV3Severity": "CRITICAL",
}
headers = {
"User-Agent": "Exploit Eye/1.0 (https://hackingpassion.com)"
}
response = requests.get(url, params=params, headers=headers, timeout=30)
if response.status_code == 200:
data = response.json()
if "vulnerabilities" not in data or len(data["vulnerabilities"]) == 0:
print("[!] No critical CVEs found in the last 7 days")
return
print(f"\n[✓] Found {len(data['vulnerabilities'])} critical CVEs!\n")
counter = 1
for vuln_wrapper in data["vulnerabilities"]:
vuln = vuln_wrapper.get("cve", {})
cve_id = vuln.get("id", "N/A")
descriptions = vuln.get("descriptions", [])
description = "N/A"
for desc in descriptions:
if desc.get("lang") == "en":
description = desc.get("value", "N/A")
break
metrics = vuln.get("metrics", {})
cvss_score = "N/A"
cvss_severity = "N/A"
if "cvssMetricV31" in metrics and len(metrics["cvssMetricV31"]) > 0:
cvss_data = metrics["cvssMetricV31"][0].get("cvssData", {})
cvss_score = cvss_data.get("baseScore", "N/A")
cvss_severity = cvss_data.get("baseSeverity", "N/A")
published = vuln.get("published", "N/A")
print("*" * 70)
print(f"\n[{counter}] {cve_id}")
print(f"[+] CVSS: {cvss_score} ({cvss_severity})")
print(f"[+] Published: {published[:10]}")
print(f"[+] Description: {description[:200]}...")
print(f"[+] Details: https://nvd.nist.gov/vuln/detail/{cve_id}")
print()
counter += 1
time.sleep(0.1)
print("*" * 70)
elif response.status_code == 403:
print("[!] NVD API blocked the request (rate limit or IP ban)")
print("[!] Try again in a few minutes")
else:
print(f"[!] API Error: {response.status_code}")
except Exception as e:
print(f"[!] Error: {e}")
def search_cve_keyword(keyword, max_results=20):
print(f"\n[*] Searching NVD for: {keyword}")
print(f"[*] Max results: {max_results}")
try:
url = "https://services.nvd.nist.gov/rest/json/cves/2.0"
params = {
"keywordSearch": keyword,
"resultsPerPage": max_results,
}
headers = {
"User-Agent": "Exploit Eye/1.0 (https://hackingpassion.com)"
}
response = requests.get(url, params=params, headers=headers, timeout=30)
if response.status_code == 200:
data = response.json()
if "vulnerabilities" not in data or len(data["vulnerabilities"]) == 0:
print(f"[!] No CVEs found for keyword: {keyword}")
return
total = data.get("totalResults", 0)
print(f"\n[✓] Found {len(data['vulnerabilities'])} results (Total: {total})\n")
counter = 1
for vuln_wrapper in data["vulnerabilities"]:
vuln = vuln_wrapper.get("cve", {})
cve_id = vuln.get("id", "N/A")
descriptions = vuln.get("descriptions", [])
description = "N/A"
for desc in descriptions:
if desc.get("lang") == "en":
description = desc.get("value", "N/A")
break
metrics = vuln.get("metrics", {})
cvss_score = "N/A"
cvss_severity = "N/A"
if "cvssMetricV31" in metrics and len(metrics["cvssMetricV31"]) > 0:
cvss_data = metrics["cvssMetricV31"][0].get("cvssData", {})
cvss_score = cvss_data.get("baseScore", "N/A")
cvss_severity = cvss_data.get("baseSeverity", "N/A")
elif "cvssMetricV2" in metrics and len(metrics["cvssMetricV2"]) > 0:
cvss_data = metrics["cvssMetricV2"][0].get("cvssData", {})
cvss_score = cvss_data.get("baseScore", "N/A")
published = vuln.get("published", "N/A")
print("*" * 70)
print(f"\n[{counter}] {cve_id}")
print(f"[+] CVSS: {cvss_score} ({cvss_severity})")
print(f"[+] Published: {published[:10]}")
print(f"[+] Description: {description[:300]}...")
print(f"[+] NVD: https://nvd.nist.gov/vuln/detail/{cve_id}")
print(f"[+] Exploit-DB: https://www.exploit-db.com/search?cve={cve_id}")
print()
counter += 1
time.sleep(0.1)
print("*" * 70)
else:
print(f"[!] API Error: {response.status_code}")
except Exception as e:
print(f"[!] Error: {e}")
def search_exploitdb(keyword, max_results=20):
print(f"\n[*] Searching Exploit-DB for: {keyword}")
try:
url = "https://www.exploit-db.com/search"
params = {
"q": keyword
}
headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36"
}
response = requests.get(url, params=params, headers=headers, timeout=30)
if response.status_code == 200:
print("[✓] Search successful!")
print(f"[+] Results URL: {response.url}")
print("\n[!] Note: For full Exploit-DB results, use searchsploit on command line:")
print(f" searchsploit {keyword}")
else:
print(f"[!] Exploit-DB returned status code: {response.status_code}")
except Exception as e:
print(f"[!] Error: {e}")
def search_github(keyword, max_results=20):
print(f"\n[*] Searching GitHub for: {keyword}")
print(f"[*] Max results: {max_results}")
try:
url = "https://api.github.com/search/repositories"
params = {
"q": f"{keyword} exploit OR poc OR vulnerability",
"sort": "stars",
"order": "desc",
"per_page": max_results
}
headers = {
"Accept": "application/vnd.github.v3+json",
"User-Agent": "Exploit Eye/1.0 (https://hackingpassion.com)"
}
response = requests.get(url, params=params, headers=headers, timeout=30)
if response.status_code == 200:
data = response.json()
if "items" not in data or len(data["items"]) == 0:
print(f"[!] No GitHub repos found for: {keyword}")
return
total = data.get("total_count", 0)
print(f"\n[✓] Found {len(data['items'])} results (Total: {total})\n")
counter = 1
for repo in data["items"]:
print("*" * 70)
print(f"\n[{counter}] {repo.get('full_name', 'N/A')}")
print(f"[+] Stars: ⭐ {repo.get('stargazers_count', 0)}")
print(f"[+] Language: {repo.get('language', 'N/A')}")
print(f"[+] Description: {repo.get('description', 'No description')[:150]}...")
print(f"[+] URL: {repo.get('html_url', 'N/A')}")
print(f"[+] Updated: {repo.get('updated_at', 'N/A')[:10]}")
print()
counter += 1
time.sleep(0.1)
print("*" * 70)
print(f"\n[!] GitHub Search: https://github.com/search?q={keyword}+exploit")
elif response.status_code == 403:
print("[!] GitHub API rate limit exceeded")
print("[!] Try again in a few minutes or use GitHub token")
else:
print(f"[!] GitHub API Error: {response.status_code}")
except Exception as e:
print(f"[!] Error: {e}")
def get_cve_details(cve_id):
print(f"\n[*] Fetching details for: {cve_id}")
try:
url = f"https://services.nvd.nist.gov/rest/json/cves/2.0"
params = {
"cveId": cve_id
}
headers = {
"User-Agent": "Exploit Eye/1.0 (https://hackingpassion.com)"
}
response = requests.get(url, params=params, headers=headers, timeout=30)
if response.status_code == 200:
data = response.json()
if "vulnerabilities" not in data or len(data["vulnerabilities"]) == 0:
print(f"[!] CVE not found: {cve_id}")
return
vuln = data["vulnerabilities"][0].get("cve", {})
descriptions = vuln.get("descriptions", [])
description = "N/A"
for desc in descriptions:
if desc.get("lang") == "en":
description = desc.get("value", "N/A")
break
metrics = vuln.get("metrics", {})
print("\n" + "="*70)
print(f"[*] CVE ID: {cve_id}")
print("="*70)
if "cvssMetricV31" in metrics and len(metrics["cvssMetricV31"]) > 0:
cvss = metrics["cvssMetricV31"][0].get("cvssData", {})
print(f"\n[+] CVSS v3.1 Score: {cvss.get('baseScore', 'N/A')}")
print(f"[+] Severity: {cvss.get('baseSeverity', 'N/A')}")
print(f"[+] Vector: {cvss.get('vectorString', 'N/A')}")
print(f"\n[+] Published: {vuln.get('published', 'N/A')}")
print(f"[+] Last Modified: {vuln.get('lastModified', 'N/A')}")
print(f"\n[+] Description:")
print(f" {description}")
refs = vuln.get("references", [])
if refs:
print(f"\n[+] References:")
for ref in refs[:5]:
print(f" - {ref.get('url', 'N/A')}")
print(f"\n[+] More Info:")
print(f" - NVD: https://nvd.nist.gov/vuln/detail/{cve_id}")
print(f" - Exploit-DB: https://www.exploit-db.com/search?cve={cve_id}")
print(f" - GitHub POCs: https://github.com/search?q={cve_id}&type=repositories")
print("="*70)
else:
print(f"[!] API Error: {response.status_code}")
except Exception as e:
print(f"[!] Error: {e}")
def main():
banner()
while True:
try:
menu()
choice = input("\n\033[1;34m[+]\033[1;m Enter choice: ").strip()
if choice == "1":
get_latest_cves(days=7, min_score=7.0)
elif choice == "2":
keyword = input("\n[+] Enter keyword: ").strip()
if keyword:
max_results = input("[+] Max results (default 20): ").strip()
max_results = int(max_results) if max_results else 20
search_cve_keyword(keyword, max_results)
elif choice == "3":
vendor = input("\n[+] Enter vendor/product name: ").strip()
if vendor:
max_results = input("[+] Max results (default 20): ").strip()
max_results = int(max_results) if max_results else 20
search_cve_keyword(vendor, max_results)
elif choice == "4":
cve_id = input("\n[+] Enter CVE ID (e.g., CVE-2025-1234): ").strip().upper()
if cve_id:
get_cve_details(cve_id)
elif choice == "5":
keyword = input("\n[+] Search Exploit-DB for: ").strip()
if keyword:
search_exploitdb(keyword)
elif choice == "6":
keyword = input("\n[+] Search GitHub for: ").strip()
if keyword:
max_results = input("[+] Max results (default 20): ").strip()
max_results = int(max_results) if max_results else 20
search_github(keyword, max_results)
elif choice == "0":
print("\n\033[1;34m[*] Like to See Ya Hacking! 🎯\033[1;m\n")
sys.exit(0)
else:
print("\n\033[1;31m[-] Invalid choice!\033[1;m")
except KeyboardInterrupt:
print("\n\n\033[1;34m[*] Like to See Ya Hacking! 🎯\033[1;m\n")
sys.exit(0)
except ValueError:
print("\n\033[1;31m[-] Invalid input!\033[1;m")
except Exception as e:
print(f"\n\033[1;31m[!] Error: {e}\033[1;m")
if __name__ == "__main__":
main()