docs: translate the build files and keep the branch summary current
This commit is contained in:
parent
251b2df39c
commit
77cfede879
2 changed files with 23 additions and 21 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -1,6 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# Build reproducible de tr4mpass con todas sus dependencias dentro de un
|
# Reproducible build of tr4mpass with every dependency inside the image, so
|
||||||
# contenedor, sin tocar el sistema. Debian trixie == el host de desarrollo.
|
# nothing is installed on the host. Debian trixie matches the development host.
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
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
|
WORKDIR /build
|
||||||
|
|
||||||
# Solo lo que make necesita: Makefile, src/, include/ y tests/ (el target
|
# Only what make needs: the Makefile, src/, include/ and tests/ (the
|
||||||
# .chip-db-canary depende de tests/chip_db_canary.c).
|
# .chip-db-canary target depends on tests/chip_db_canary.c).
|
||||||
COPY Makefile ./
|
COPY Makefile ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY include ./include
|
COPY include ./include
|
||||||
|
|
@ -21,7 +21,7 @@ COPY tests ./tests
|
||||||
|
|
||||||
RUN make clean && make
|
RUN make clean && make
|
||||||
|
|
||||||
# El binario queda en /build/tr4mpass.
|
# The binary ends up at /build/tr4mpass.
|
||||||
# Correr con acceso USB directo:
|
# Running it needs direct USB access:
|
||||||
# podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb tr4mpass ./tr4mpass -v
|
# podman run --rm -it --privileged -v /dev/bus/usb:/dev/bus/usb tr4mpass ./tr4mpass -v
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|
|
||||||
|
|
@ -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 <url-del-fork>
|
git clone <repo-url>
|
||||||
cd tr4mpass
|
cd tr4mpass
|
||||||
./start.sh
|
./start.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
`start.sh` usa `sudo` para instalar deps vía apt/brew/dnf/pacman/zypper/apk y corre
|
It installs packages through apt/brew/dnf/pacman/zypper/apk (needs `sudo`) and
|
||||||
`make clean && make`. La iPad se conecta por USB a esa misma máquina.
|
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 .
|
podman build -t tr4mpass .
|
||||||
```
|
```
|
||||||
|
|
||||||
El `Dockerfile` (Debian trixie) instala `libimobiledevice-dev libirecovery-1.0-dev
|
The Dockerfile (Debian trixie) installs `libimobiledevice-dev`,
|
||||||
libusb-1.0-0-dev libplist-dev libssl-dev libcurl4-openssl-dev libssh2-1-dev
|
`libirecovery-1.0-dev`, `libusb-1.0-0-dev`, `libplist-dev`, `libssl-dev`,
|
||||||
pkg-config build-essential usbutils usbmuxd` y compila el binario.
|
`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
|
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
|
Note: the sequence drives EP0 directly through libusb, so it needs the real USB
|
||||||
contenedor eso exige `--privileged` + montar `/dev/bus/usb`; en una VM/WSL hace falta
|
bus. Inside a container that means `--privileged` plus mounting `/dev/bus/usb`;
|
||||||
además passthrough del dispositivo.
|
inside a VM or WSL it needs device passthrough as well.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue