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>
127 lines
3.9 KiB
Python
127 lines
3.9 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
# PyInstaller spec for AUTARCH Public Release
|
|
# Build: pyinstaller autarch_public.spec
|
|
# Output: dist/autarch_public.exe (single-file executable)
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
SRC = Path(SPECPATH)
|
|
|
|
block_cipher = None
|
|
|
|
# ── Data files (non-Python assets to bundle) ─────────────────────────────────
|
|
added_files = [
|
|
# Web assets
|
|
(str(SRC / 'web' / 'templates'), 'web/templates'),
|
|
(str(SRC / 'web' / 'static'), 'web/static'),
|
|
|
|
# Data (SQLite DBs, site lists, config defaults)
|
|
(str(SRC / 'data'), 'data'),
|
|
|
|
# Modules directory (dynamically loaded)
|
|
(str(SRC / 'modules'), 'modules'),
|
|
|
|
# Root-level config and docs
|
|
(str(SRC / 'autarch_settings.conf'), '.'),
|
|
(str(SRC / 'user_manual.md'), '.'),
|
|
(str(SRC / 'windows_manual.md'), '.'),
|
|
(str(SRC / 'custom_sites.inf'), '.'),
|
|
(str(SRC / 'custom_adultsites.json'), '.'),
|
|
]
|
|
|
|
# ── 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',
|
|
'PIL.Image', 'PIL.ImageDraw', 'cryptography',
|
|
|
|
# AUTARCH core modules
|
|
'core.config', 'core.paths', 'core.banner', 'core.menu',
|
|
'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',
|
|
|
|
# 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',
|
|
]
|
|
|
|
a = Analysis(
|
|
['autarch.py'],
|
|
pathex=[str(SRC)],
|
|
binaries=[],
|
|
datas=added_files,
|
|
hiddenimports=hidden_imports,
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[
|
|
# Exclude heavy optional deps not needed at runtime
|
|
'torch', 'transformers', 'llama_cpp', 'anthropic',
|
|
'tkinter', 'matplotlib', 'numpy',
|
|
],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
|
|
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
|
|
|
# ── Single-file executable ───────────────────────────────────────────────────
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
name='autarch_public',
|
|
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,
|
|
)
|