#!/usr/bin/env python3 # Filename: edge_neutering_suite_2025.py # Version: 2.0 # Author: Jeoi Reqi """ Title: Edge Neutering Suite 2025 Description: This aggressive script uninstalls Microsoft Edge, disables its update services, prevents its reinstallation, replaces its executable with Notepad, removes associated files/folders, and optionally scrubs it from the Apps list. Disclaimer: Use at your own risk. Requires Administrator privileges. Designed for Windows 10/11 systems. Usage: 1. Open Command Prompt or PowerShell as Administrator. 2. Run: python edge_neutering_suite_2025.py """ import os import subprocess import winreg # --- Get the installed Edge version --- def get_edge_version(): edge_path = os.path.join(os.getenv("ProgramFiles(x86)"), "Microsoft", "Edge", "Application") try: versions = [d for d in os.listdir(edge_path) if os.path.isdir(os.path.join(edge_path, d))] return versions[0] if versions else None except Exception: return None # --- Uninstall Edge via its setup.exe --- def uninstall_edge(version): if not version: print("[!] Microsoft Edge not found.") return installer_path = os.path.join(os.getenv("ProgramFiles(x86)"), "Microsoft", "Edge", "Application", version, "Installer") if not os.path.exists(os.path.join(installer_path, "setup.exe")): print("[!] Edge setup.exe not found.") return print("[*] Uninstalling Microsoft Edge...") os.chdir(installer_path) subprocess.run(["setup.exe", "--uninstall", "--system-level", "--verbose-logging", "--force-uninstall"], shell=True) # --- Prevent future Edge reinstalls via registry --- def prevent_edge_reinstall(): key_path = r"SOFTWARE\Microsoft\EdgeUpdate" try: key = winreg.CreateKeyEx(winreg.HKEY_LOCAL_MACHINE, key_path, 0, winreg.KEY_ALL_ACCESS) winreg.SetValueEx(key, "DoNotUpdateToEdgeWithChromium", 0, winreg.REG_DWORD, 1) winreg.CloseKey(key) print("[*] Edge auto-reinstall blocked via registry.") except Exception as e: print(f"[!] Registry modification failed: {e}") # --- Disable EdgeUpdate services --- def disable_edge_update_services(): print("[*] Disabling Edge update services...") for service in ["edgeupdate", "edgeupdatem"]: subprocess.run(["sc", "stop", service], shell=True) subprocess.run(["sc", "config", service, "start=", "disabled"], shell=True) # --- Replace msedge.exe with Notepad.exe to neutralize --- def neutralize_msedge_exe(version): edge_exe_path = os.path.join(os.getenv("ProgramFiles(x86)"), "Microsoft", "Edge", "Application", version, "msedge.exe") notepad_path = r"C:\Windows\System32\notepad.exe" try: if os.path.exists(edge_exe_path): os.remove(edge_exe_path) subprocess.run(f'copy "{notepad_path}" "{edge_exe_path}"', shell=True) print("[*] msedge.exe has been replaced with Notepad.") except Exception as e: print(f"[!] Failed to neutralize msedge.exe: {e}") # --- Delete Edge directories --- def cleanup_edge_files(): print("[*] Cleaning up Edge folders...") paths = [ os.path.join(os.getenv("ProgramFiles(x86)"), "Microsoft", "Edge"), os.path.join(os.getenv("ProgramFiles"), "Microsoft", "Edge"), os.path.expandvars(r"%LOCALAPPDATA%\Microsoft\Edge") ] for path in paths: if os.path.exists(path): subprocess.run(["rmdir", "/s", "/q", path], shell=True) # --- Main Execution --- if __name__ == "__main__": print("=== Edge Neutering Suite 2025 ===\n") edge_version = get_edge_version() uninstall_edge(edge_version) prevent_edge_reinstall() disable_edge_update_services() if edge_version: neutralize_msedge_exe(edge_version) cleanup_edge_files() print("\n[*] Microsoft Edge has been neutered. System sovereignty restored.")