- C 94.8%
- Python 4.7%
- Makefile 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| docs | ||
| ext | ||
| legacy | ||
| src | ||
| test | ||
| tools | ||
| .gitignore | ||
| .gitmodules | ||
| Makefile | ||
| README.md | ||
promon
Offline tooling for Promon SHIELD-protected Android apps: authenticated LBTS
config decryption and re-encryption (byte-identical round-trip), a
one-shot APK stripper, and automatic .so recovery by running the shield
JNI_OnLoad + game native loader/constructor under the built-in Unicorn
engine. Everything is derived from the inputs; no per-version constants.
One native binary, no Java, no Android environment. Everything reverse engineered from real samples and verified against them; unsupported layouts fail closed.
Build
git submodule update --init # once: unicorn + cjson
make
Requires a C99 compiler, Make, CMake (for libunicorn) and zlib development
files. make JOBS=4 controls the unicorn build parallelism.
Commands
./promon --help
# Remove Promon from a single APK. Scan, show the plan, confirm, then write
# the stripped APK (patched dex, shield/config removed, libs unpacked).
./promon strip app.apk
# Recover a bootable game library (shield JNI_OnLoad + game constructor).
./promon unpack libg.so shield.so base.apk libg.unpacked.so
# Decrypt the LBTS config to an editable JSON, then re-encrypt it.
./promon decrypt config.dat report.txt --so shield.so --json config.json
./promon encrypt config.json config.dat output.dat --so shield.so
# Inspect the container, or run the shield's attestation routine.
./promon info config.dat
./promon attest app.apk
Run ./promon APP.apk for the menu: Strip Promon, Unpack libraries,
LBTS (decrypt / re-encrypt) and Attestation. After an action finishes
the UI prints its log and exits; it does not return to the menu.
Layout
src/
├── main.c CLI entry: usage + dispatch
├── lbts/ container, protobuf, envelope walk + the decrypted-config
│ model (JSON round-trip, protobuf emission)
├── wb/ white-box: discovery/selection + block crypto, both
│ directions (wb.h/wb.c, the inverse in wb_encrypt.h)
├── cmd/ one file per command: strip, unpack, decrypt, encrypt,
│ attest, info
├── patcher/ the smali patcher driven by the decrypted config
├── apk/ ZIP reader, Android binary XML
├── util/ small shared helpers
├── emu/ built-in Unicorn engine: shield startup, native unpack
│ (native_impl.h) and attestation
└── gen/ recovered white-box structure constants + README
ext/ git submodules: unicorn, cjson, libsodium, zlib
legacy/circuit/ archived per-version circuit unpacker (verified
reference, still builds)
legacy/unpack/ archived Unicorn-based unpacker (buildable reference)
docs/ reverse-engineering documentation
All external dependencies are git submodules (git submodule update --init);
the build is otherwise hermetic. Building libunicorn and zlib needs CMake;
libsodium needs autotools.
Documentation
Start with docs/README.md, then:
- docs/shield.md — the shield library: self-decryption, anti-analysis, context generation
- docs/promon.md — section encryption: the circuit, spans, recovery per version
- docs/lbts.md — the config container, the white-box cipher, the JSON round-trip
- docs/tools.md — command reference
Scope
Not a universal Android unpacker: the interpreter engine derives what it
needs from the inputs automatically (the shield state is generated by
emulating the shield once), but the recovered white-box structure constants
(src/gen/) are version-specific — for a new game version they must be
recovered once (see docs/promon.md); everything else fails closed rather
than guess. Use only files you are authorized to modify. No APKs, shield
binaries or decrypted assets are included.