diff --git a/Dockerfile b/Dockerfile index 4fa5114..3e8ef63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -# Build reproducible de tr4mpass con todas sus dependencias dentro de un -# contenedor, sin tocar el sistema. Debian trixie == el host de desarrollo. +# Reproducible build of tr4mpass with every dependency inside the image, so +# nothing is installed on the host. Debian trixie matches the development host. FROM debian:trixie-slim RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -12,8 +12,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /build -# Solo lo que make necesita: Makefile, src/, include/ y tests/ (el target -# .chip-db-canary depende de tests/chip_db_canary.c). +# Only what make needs: the Makefile, src/, include/ and tests/ (the +# .chip-db-canary target depends on tests/chip_db_canary.c). COPY Makefile ./ COPY src ./src COPY include ./include @@ -21,7 +21,7 @@ COPY tests ./tests RUN make clean && make -# El binario queda en /build/tr4mpass. -# Correr con acceso USB directo: +# The binary ends up at /build/tr4mpass. +# Running it needs direct USB access: # podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb tr4mpass ./tr4mpass -v CMD ["/bin/bash"] diff --git a/README-REPRO.md b/README-REPRO.md index e7be942..e098e04 100644 --- a/README-REPRO.md +++ b/README-REPRO.md @@ -1,36 +1,38 @@ -# Reproducir el build de tr4mpass (fix checkm8 A8/xHCI) en cualquier PC +# Reproducing the build of tr4mpass (checkm8 A8/xHCI branch) -Rama: `fix/checkm8-a8-xhci` (3 commits: F1, F0, F3). +Branch: `fix/checkm8-a8-xhci`. -## Vía 1 — Nativo (la que usa USB directo, recomendada para correr) +## Option 1 — Native (recommended for actually running it) -El script `start.sh` detecta el SO e instala todas las dependencias y compila: +`start.sh` detects the OS, installs every dependency and builds: ``` -git clone +git clone cd tr4mpass ./start.sh ``` -`start.sh` usa `sudo` para instalar deps vía apt/brew/dnf/pacman/zypper/apk y corre -`make clean && make`. La iPad se conecta por USB a esa misma máquina. +It installs packages through apt/brew/dnf/pacman/zypper/apk (needs `sudo`) and +runs `make clean && make`. The device must be connected by USB to that same +machine. -## Vía 2 — Contenedor (build reproducible, sin tocar el sistema) +## Option 2 — Container (reproducible build, nothing installed on the host) ``` podman build -t tr4mpass . ``` -El `Dockerfile` (Debian trixie) instala `libimobiledevice-dev libirecovery-1.0-dev -libusb-1.0-0-dev libplist-dev libssl-dev libcurl4-openssl-dev libssh2-1-dev -pkg-config build-essential usbutils usbmuxd` y compila el binario. +The Dockerfile (Debian trixie) installs `libimobiledevice-dev`, +`libirecovery-1.0-dev`, `libusb-1.0-0-dev`, `libplist-dev`, `libssl-dev`, +`libcurl4-openssl-dev`, `libssh2-1-dev`, `pkg-config`, `build-essential`, +`usbutils` and `usbmuxd`, then builds the binary. -Para correr dentro del contenedor hace falta pasar el USB directo: +Running inside the container needs the USB bus passed through: ``` podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb tr4mpass ./tr4mpass -v ``` -Nota: el exploit necesita USB a nivel de controlador (libusb sobre el bus real). En un -contenedor eso exige `--privileged` + montar `/dev/bus/usb`; en una VM/WSL hace falta -además passthrough del dispositivo. +Note: the sequence drives EP0 directly through libusb, so it needs the real USB +bus. Inside a container that means `--privileged` plus mounting `/dev/bus/usb`; +inside a VM or WSL it needs device passthrough as well.