mirror of
https://github.com/xAL6/zero-loader
synced 2026-06-06 17:03:01 +00:00
dfb8c5d63c
The URL passed via --url (e.g. https://server/payload.dat) and the file Encrypt.py wrote (data.enc) didn't match — operators had to rename the file before uploading, which was both error-prone and pointlessly noisy ("data.enc" itself screams "encrypted blob" to any FS scanner). Encrypt.py now defaults the output filename to the URL's last path component, so encrypt-then-upload is a no-rename flow. --out <file> overrides if a different name is needed. --url https://c2/payload.dat -> writes payload.dat --url https://c2/foo.bin -> writes foo.bin --url https://c2/x --out something.dat -> writes something.dat Downstream: - tests/c2-integration/build-demos.py: reads ROOT/<label>.dat directly instead of ROOT/data.enc → ENC_DIR/<label>.dat. - tests/c2-integration/run-loader-test.py: looks for payload.dat after the build step (URL basename is hardcoded to payload.dat for the runner). - host-payload.py docstring + route handler: keeps /payload.dat as the primary URL; /data.enc still aliased for backward compat. - SideloadGen.py deploy hint: updated. - CLAUDE.md / README.md / web/static/index.html: docs updated to refer to the URL-basename convention instead of hardcoded "data.enc". - .gitignore: payload.dat + *.enc added. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>