Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
|
# PyInstaller spec for AUTARCH Public Release
|
2026-03-02 22:02:22 -08:00
|
|
|
#
|
|
|
|
|
# Build: pyinstaller autarch_public.spec
|
|
|
|
|
# Output: dist/autarch/
|
|
|
|
|
# ├── autarch.exe (CLI — full framework, console window)
|
|
|
|
|
# └── autarch_web.exe (Web — double-click to launch dashboard + tray icon, no console)
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
SRC = Path(SPECPATH)
|
|
|
|
|
|
|
|
|
|
block_cipher = None
|
|
|
|
|
|
|
|
|
|
# ── Data files (non-Python assets to bundle) ─────────────────────────────────
|
2026-03-02 22:02:22 -08:00
|
|
|
# Only include files that actually exist to prevent build failures
|
|
|
|
|
_candidate_files = [
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
# Web assets
|
2026-03-02 22:02:22 -08:00
|
|
|
(SRC / 'web' / 'templates', 'web/templates'),
|
|
|
|
|
(SRC / 'web' / 'static', 'web/static'),
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
|
|
|
|
|
# Data (SQLite DBs, site lists, config defaults)
|
2026-03-02 22:02:22 -08:00
|
|
|
(SRC / 'data', 'data'),
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
|
2026-03-02 22:02:22 -08:00
|
|
|
# Modules directory (dynamically loaded at runtime)
|
|
|
|
|
(SRC / 'modules', 'modules'),
|
|
|
|
|
|
|
|
|
|
# LLM model
|
|
|
|
|
(SRC / 'models' / 'Hal_v2.gguf', 'models'),
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
|
|
|
|
|
# Root-level config and docs
|
2026-03-02 22:02:22 -08:00
|
|
|
(SRC / 'autarch_settings.conf', '.'),
|
|
|
|
|
(SRC / 'user_manual.md', '.'),
|
|
|
|
|
(SRC / 'windows_manual.md', '.'),
|
|
|
|
|
(SRC / 'custom_sites.inf', '.'),
|
|
|
|
|
(SRC / 'custom_adultsites.json', '.'),
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
]
|
|
|
|
|
|
2026-03-02 22:02:22 -08:00
|
|
|
added_files = [(str(src), dst) for src, dst in _candidate_files if src.exists()]
|
|
|
|
|
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
# ── Hidden imports ────────────────────────────────────────────────────────────
|
|
|
|
|
hidden_imports = [
|
|
|
|
|
# Flask ecosystem
|
|
|
|
|
'flask', 'flask.templating', 'jinja2', 'jinja2.ext',
|
|
|
|
|
'werkzeug', 'werkzeug.serving', 'werkzeug.debug',
|
|
|
|
|
'markupsafe',
|
|
|
|
|
|
|
|
|
|
# Core libraries
|
|
|
|
|
'bcrypt', 'requests', 'msgpack', 'pyserial', 'qrcode', 'PIL',
|
2026-03-02 22:02:22 -08:00
|
|
|
'PIL.Image', 'PIL.ImageDraw', 'PIL.ImageFont', 'cryptography',
|
|
|
|
|
|
|
|
|
|
# System tray
|
|
|
|
|
'pystray', 'pystray._win32',
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
|
|
|
|
|
# AUTARCH core modules
|
2026-03-02 22:02:22 -08:00
|
|
|
'core.config', 'core.paths', 'core.banner', 'core.menu', 'core.tray',
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
'core.llm', 'core.agent', 'core.tools',
|
|
|
|
|
'core.msf', 'core.msf_interface',
|
|
|
|
|
'core.hardware', 'core.android_protect',
|
|
|
|
|
'core.upnp', 'core.wireshark', 'core.wireguard',
|
|
|
|
|
'core.mcp_server', 'core.discovery',
|
|
|
|
|
'core.osint_db', 'core.nvd',
|
|
|
|
|
|
|
|
|
|
# Web routes (Flask blueprints)
|
|
|
|
|
'web.app', 'web.auth',
|
|
|
|
|
'web.routes.auth_routes',
|
|
|
|
|
'web.routes.dashboard',
|
|
|
|
|
'web.routes.defense',
|
|
|
|
|
'web.routes.offense',
|
|
|
|
|
'web.routes.counter',
|
|
|
|
|
'web.routes.analyze',
|
|
|
|
|
'web.routes.osint',
|
|
|
|
|
'web.routes.simulate',
|
|
|
|
|
'web.routes.settings',
|
|
|
|
|
'web.routes.upnp',
|
|
|
|
|
'web.routes.wireshark',
|
|
|
|
|
'web.routes.hardware',
|
|
|
|
|
'web.routes.android_exploit',
|
|
|
|
|
'web.routes.iphone_exploit',
|
|
|
|
|
'web.routes.android_protect',
|
|
|
|
|
'web.routes.wireguard',
|
|
|
|
|
'web.routes.revshell',
|
|
|
|
|
'web.routes.archon',
|
|
|
|
|
'web.routes.msf',
|
|
|
|
|
'web.routes.chat',
|
|
|
|
|
'web.routes.targets',
|
|
|
|
|
'web.routes.encmodules',
|
2026-03-02 22:02:22 -08:00
|
|
|
'web.routes.llm_trainer',
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
|
|
|
|
|
# Standard library (sometimes missed on Windows)
|
|
|
|
|
'email.mime.text', 'email.mime.multipart',
|
|
|
|
|
'xml.etree.ElementTree',
|
|
|
|
|
'sqlite3', 'json', 'logging', 'logging.handlers',
|
|
|
|
|
'threading', 'queue', 'uuid', 'hashlib', 'zlib',
|
|
|
|
|
'configparser', 'platform', 'socket', 'shutil',
|
|
|
|
|
'importlib', 'importlib.util', 'importlib.metadata',
|
2026-03-02 22:02:22 -08:00
|
|
|
'webbrowser', 'ssl',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
excludes = [
|
|
|
|
|
# Exclude heavy optional deps not needed at runtime
|
|
|
|
|
'torch', 'transformers', 'llama_cpp', 'llama_cpp_python', 'anthropic',
|
|
|
|
|
'tkinter', 'matplotlib', 'numpy',
|
|
|
|
|
# CUDA / quantization libraries
|
|
|
|
|
'bitsandbytes',
|
|
|
|
|
# HuggingFace ecosystem
|
|
|
|
|
'huggingface_hub', 'safetensors', 'tokenizers',
|
|
|
|
|
# MCP/uvicorn/starlette
|
|
|
|
|
'mcp', 'uvicorn', 'starlette', 'anyio', 'httpx', 'httpx_sse',
|
|
|
|
|
'httpcore', 'h11', 'h2', 'hpack', 'hyperframe',
|
|
|
|
|
# Pydantic
|
|
|
|
|
'pydantic', 'pydantic_core', 'pydantic_settings',
|
|
|
|
|
# Other heavy packages
|
|
|
|
|
'scipy', 'pandas', 'tensorflow', 'keras',
|
|
|
|
|
'IPython', 'notebook', 'jupyterlab',
|
|
|
|
|
'fsspec', 'rich', 'typer',
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
]
|
|
|
|
|
|
2026-03-02 22:02:22 -08:00
|
|
|
# ── Analysis for CLI entry point ─────────────────────────────────────────────
|
|
|
|
|
a_cli = Analysis(
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
['autarch.py'],
|
|
|
|
|
pathex=[str(SRC)],
|
|
|
|
|
binaries=[],
|
|
|
|
|
datas=added_files,
|
|
|
|
|
hiddenimports=hidden_imports,
|
|
|
|
|
hookspath=[],
|
|
|
|
|
hooksconfig={},
|
|
|
|
|
runtime_hooks=[],
|
2026-03-02 22:02:22 -08:00
|
|
|
excludes=excludes,
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
noarchive=False,
|
|
|
|
|
optimize=0,
|
|
|
|
|
)
|
|
|
|
|
|
2026-03-02 22:02:22 -08:00
|
|
|
# ── Analysis for Web entry point ─────────────────────────────────────────────
|
|
|
|
|
a_web = Analysis(
|
|
|
|
|
['autarch_web.py'],
|
|
|
|
|
pathex=[str(SRC)],
|
|
|
|
|
binaries=[],
|
|
|
|
|
datas=added_files,
|
|
|
|
|
hiddenimports=hidden_imports,
|
|
|
|
|
hookspath=[],
|
|
|
|
|
hooksconfig={},
|
|
|
|
|
runtime_hooks=[],
|
|
|
|
|
excludes=excludes,
|
|
|
|
|
noarchive=False,
|
|
|
|
|
optimize=0,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# ── Merge analyses (shared libraries only stored once) ───────────────────────
|
|
|
|
|
MERGE(
|
|
|
|
|
(a_cli, 'autarch', 'autarch'),
|
|
|
|
|
(a_web, 'autarch_web', 'autarch_web'),
|
|
|
|
|
)
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
|
2026-03-02 22:02:22 -08:00
|
|
|
# ── CLI executable (console window) ─────────────────────────────────────────
|
|
|
|
|
pyz_cli = PYZ(a_cli.pure, a_cli.zipped_data, cipher=block_cipher)
|
|
|
|
|
exe_cli = EXE(
|
|
|
|
|
pyz_cli,
|
|
|
|
|
a_cli.scripts,
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
[],
|
2026-03-02 22:02:22 -08:00
|
|
|
exclude_binaries=True,
|
|
|
|
|
name='autarch',
|
Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.
Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00
|
|
|
debug=False,
|
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
|
strip=False,
|
|
|
|
|
upx=True,
|
|
|
|
|
console=True,
|
|
|
|
|
disable_windowed_traceback=False,
|
|
|
|
|
argv_emulation=False,
|
|
|
|
|
target_arch=None,
|
|
|
|
|
codesign_identity=None,
|
|
|
|
|
entitlements_file=None,
|
|
|
|
|
icon=None,
|
|
|
|
|
)
|
2026-03-02 22:02:22 -08:00
|
|
|
|
|
|
|
|
# ── Web executable (NO console window — tray icon only) ─────────────────────
|
|
|
|
|
pyz_web = PYZ(a_web.pure, a_web.zipped_data, cipher=block_cipher)
|
|
|
|
|
exe_web = EXE(
|
|
|
|
|
pyz_web,
|
|
|
|
|
a_web.scripts,
|
|
|
|
|
[],
|
|
|
|
|
exclude_binaries=True,
|
|
|
|
|
name='autarch_web',
|
|
|
|
|
debug=False,
|
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
|
strip=False,
|
|
|
|
|
upx=True,
|
|
|
|
|
console=False, # <-- No console window
|
|
|
|
|
disable_windowed_traceback=False,
|
|
|
|
|
argv_emulation=False,
|
|
|
|
|
target_arch=None,
|
|
|
|
|
codesign_identity=None,
|
|
|
|
|
entitlements_file=None,
|
|
|
|
|
icon=None,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# ── Collect everything into one directory ────────────────────────────────────
|
|
|
|
|
coll = COLLECT(
|
|
|
|
|
exe_cli,
|
|
|
|
|
a_cli.binaries,
|
|
|
|
|
a_cli.datas,
|
|
|
|
|
exe_web,
|
|
|
|
|
a_web.binaries,
|
|
|
|
|
a_web.datas,
|
|
|
|
|
strip=False,
|
|
|
|
|
upx=True,
|
|
|
|
|
upx_exclude=[],
|
|
|
|
|
name='autarch',
|
|
|
|
|
)
|