Schlanker Agent, der DIREKT auf einem Linux-Rechner laeuft und sich ausgehend zum RVS verbindet -> ARIA steuert den Rechner auch hinter NAT/Firewall, wo er sonst nicht erreichbar ist. Anders als der Satellit (LAN-Gateway) steuert der Agent den Rechner, auf dem er laeuft. Faehigkeiten (host_command -> host_result): exec (opt. sudo), read, write, info (CPU/RAM/Disk/Uptime via psutil), screenshot (grim/scrot/maim/import). sudo-Logik: root -> direkt; SUDO_PASSWORD -> sudo -S; SUDO_NOPASSWD (Live-ISO) -> sudo -n; sonst klare Fehlermeldung. Gate: CONTROL_ENABLED + RVS-Token. stdout wird wie beim Satelliten gefenstert (contains/offset/max_chars). Als portable Onefile-Binary verteilbar (PyInstaller im bullseye-Container fuer breite glibc-Kompatibilitaet): build.sh + Dockerfile.build. Plus .env.example, systemd-Unit und README. Naechste Phasen: RVS ALLOWED_TYPES (host_*), Bridge-Registry + /internal/host*, Brain-Tools host_list/exec/read/write/info/screenshot. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
19 lines
740 B
INI
19 lines
740 B
INI
# Baut die Host-Agent-Binary mit PyInstaller in einem Container mit ALTEM glibc
|
|
# (bullseye, glibc 2.31), damit die Onefile-Binary auf moeglichst vielen Linux-
|
|
# Distributionen laeuft (glibc ist abwaerts-, nicht aufwaertskompatibel).
|
|
FROM python:3.11-slim-bullseye
|
|
|
|
WORKDIR /build
|
|
RUN pip install --no-cache-dir pyinstaller
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY host_agent.py .
|
|
|
|
# Onefile-Binary; psutil-Hidden-Imports werden von PyInstaller erkannt.
|
|
RUN pyinstaller --onefile --name aria-host-agent \
|
|
--collect-all psutil \
|
|
host_agent.py
|
|
|
|
# Ergebnis liegt in /build/dist/aria-host-agent
|
|
CMD ["sh", "-c", "cp /build/dist/aria-host-agent /out/ && echo 'Binary -> /out/aria-host-agent'"]
|