eva-exploit 3.3.7__tar.gz → 3.3.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/PKG-INFO +1 -1
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/config.py +1 -1
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/eva_exploit.egg-info/PKG-INFO +1 -1
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/pyproject.toml +1 -1
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/utils/system.py +43 -22
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/README.md +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/eva.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/eva_exploit.egg-info/SOURCES.txt +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/eva_exploit.egg-info/dependency_links.txt +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/eva_exploit.egg-info/entry_points.txt +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/eva_exploit.egg-info/requires.txt +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/eva_exploit.egg-info/top_level.txt +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/__init__.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/attack_map.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/exploit_search.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/llm.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/prompt_builder.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/reporting.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/tooling.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/vuln_intel.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/modules/workflow.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/sessions/__init__.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/sessions/eva_session.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/setup.cfg +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/utils/__init__.py +0 -0
- {eva_exploit-3.3.7 → eva_exploit-3.3.8}/utils/ui.py +0 -0
|
@@ -370,35 +370,56 @@ def checkupdts():
|
|
|
370
370
|
|
|
371
371
|
def run_self_update():
|
|
372
372
|
print(Fore.CYAN + f"\nChecking updates for {APP_NAME}...\n")
|
|
373
|
-
|
|
373
|
+
status = get_update_status(force=True)
|
|
374
|
+
if not status.get("available"):
|
|
375
|
+
cyber("EVA is already up to date.", color=Fore.CYAN)
|
|
376
|
+
return 0
|
|
374
377
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
)
|
|
379
|
-
if pip_result.returncode == 0:
|
|
380
|
-
updated = True
|
|
378
|
+
latest = status.get("latest") or "latest"
|
|
379
|
+
source = status.get("source")
|
|
380
|
+
print(Style.BRIGHT + Fore.MAGENTA + f"Update {latest} found! Installing . . . . " + Style.RESET_ALL)
|
|
381
381
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
382
|
+
updated = False
|
|
383
|
+
with open(os.devnull, "w") as devnull:
|
|
384
|
+
if source == "github" and Path(".git").exists() and command_exists("git"):
|
|
385
|
+
branch = _git_branch()
|
|
386
|
+
pull_result = subprocess.run(
|
|
387
|
+
["git", "pull", "--tags", "origin", branch],
|
|
388
|
+
stdout=devnull,
|
|
389
|
+
stderr=devnull,
|
|
390
|
+
text=True
|
|
391
|
+
)
|
|
392
|
+
updated = pull_result.returncode == 0
|
|
393
|
+
else:
|
|
394
|
+
pip_result = subprocess.run(
|
|
395
|
+
[
|
|
396
|
+
sys.executable,
|
|
397
|
+
"-m",
|
|
398
|
+
"pip",
|
|
399
|
+
"install",
|
|
400
|
+
"--upgrade",
|
|
401
|
+
PYPI_PACKAGE,
|
|
402
|
+
"--break-system-packages",
|
|
403
|
+
"-q",
|
|
404
|
+
],
|
|
405
|
+
stdout=devnull,
|
|
406
|
+
stderr=devnull,
|
|
407
|
+
text=True
|
|
408
|
+
)
|
|
409
|
+
updated = pip_result.returncode == 0
|
|
395
410
|
|
|
411
|
+
print(Fore.CYAN + "Almost done . . . . ")
|
|
396
412
|
if updated:
|
|
397
|
-
|
|
413
|
+
global _UPDATE_STATUS_CACHE
|
|
414
|
+
_UPDATE_STATUS_CACHE = None
|
|
415
|
+
cyber("✔ Update process finished. Restart EVA to use the latest version.", color=Fore.GREEN)
|
|
398
416
|
return 0
|
|
399
417
|
|
|
400
418
|
print(Fore.RED + "\n[!] Could not auto-update EVA in this environment.")
|
|
401
|
-
|
|
419
|
+
if source == "github":
|
|
420
|
+
print(Fore.YELLOW + f"Try manually: git pull --tags origin {_git_branch()}")
|
|
421
|
+
else:
|
|
422
|
+
print(Fore.YELLOW + f"Try manually: {sys.executable} -m pip install --upgrade {PYPI_PACKAGE}")
|
|
402
423
|
return 1
|
|
403
424
|
|
|
404
425
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|