PH-DOC / 06
From a release file to a report.
Downloads come from the GitHub releases of kritarth1107/pockethunter. Release builds check a signed pockethunter.lic that is valid for 36 months. The officer sheets in packaging/ are the field procedure; this page collects the commands those docs give.
Release files
| File | Use |
|---|---|
| PocketHunter-Device-System-<version>.img.gz | System partition for the collector device: boot system and START-HERE. |
| PocketHunter-BootStick-<version>.img.gz | Boot system for an ordinary USB stick of 2 GB or more. Collections are not device-signed. |
| PocketHunter-Firmware-ESP32P4-<version>.zip | Device firmware. |
| PocketHunter-PenDrive-<version>.zip | Windows 64/32-bit and Linux x86-64/ARM64 collectors, plus the launcher. |
| PocketHunter-Analyzer-Windows-<version>.zip | Analyzer for a Windows investigator PC. No installer. |
| PocketHunter-Analyzer-Linux-<version>.tar.gz | Analyzer for a Linux investigator PC. |
| PocketHunter-Boot-Components-<version>.txt | Exact Ubuntu package versions in that boot system. |
| SHA256SUMS.txt | Checksums for the release. |
sha256sum -c SHA256SUMS.txt --ignore-missingBoot mode, with the device
- Plug the device straight into a USB port of the PC, not a hub.
- Switch the PC on and open its boot menu, then choose the PocketHunter / USB entry. The device sheet lists Dell F12, HP F9 (or Esc, then F9), Lenovo F12 or the Novo button, Acer F12, Asus F8 or Esc, MSI F11, Samsung F2 or Esc, Toshiba F12.
- Watch the device screen. When it shows DONE, remove the device. The PC switches itself off.
Secure Boot stays on. Some Secured-core PCs need “Allow Microsoft 3rd-party UEFI CA” in the BIOS. Macs and a password-locked boot menu cannot take this path. BitLocker disks that are locked need live mode instead, while the PC is still unlocked.
Live mode, with the device
On Windows, open the PH-SYSTEM drive and double-click START-HERE.exe. On Linux:
sudo sh /media/<user>/PH-SYSTEM/collect-linux.shBoot stick, no device
Write PocketHunter-BootStick-<version>.img.gz to a USB stick of 2 GB or more. Copy pockethunter.lic to its PH-SYSTEM partition. Collections land in Cases/ on PH-EVIDENCE. Grow that partition to fill the stick with any partition tool. They are not device-signed.
# example tools named in the README: balenaEtcher, or
gunzip -c PocketHunter-BootStick-<version>.img.gz | sudo dd of=/dev/sdX bs=4M conv=fsyncPen drive, live mode only
Format exFAT, then unzip the pen-drive package to the root so these names sit there:
Collect.exe
Collect-32bit.exe
collect-linux.sh
collect-linux
collect-linux-arm64
Cases/Windows: double-click Collect.exe and accept the administrator prompt. Linux:
sh /media/<user>/<DRIVE>/collect-linux.shRemove the drive only when the green COLLECTION COMPLETE line appears. On Ubuntu, eject it as well. The four on-screen steps are: saving system details and live data, finding crypto evidence, copying, sealing.
A disk that was removed from a PC that cannot be unlocked:
Collect.exe -root E:\
sh collect-linux.sh -root /media/user/DISKAndroid
Unzip Google's SDK Platform-Tools onto the drive so platform-tools sits next to Collect.exe. On the phone, enable developer options and USB debugging, connect it, and run:
Collect-Android.cmd
sh collect-android.shTap Allow on the phone. App-private data is not collected. The collector is tested against a simulated phone.
Analyze
Keep the analyzer on the investigator's PC. Put pockethunter.lic next to it, or in Documents/PocketHunter. Plug in the drive and start PocketHunter-Analyzer.exe or ./pockethunter-analyzer. For photos:
sudo apt install tesseract-ocrOn Windows the analyzer looks for the UB Mannheim build in C:\Program Files\Tesseract-OCR. You can also pass -tesseract PATH or place it in an ocr folder beside the program. -noocr turns it off.
pockethunter-analyzer -address TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE
pockethunter-analyzer -chatOther flags named in the analyzer sheet: -edit, -from, -store, -redo, -license, -ai MODEL, -noai. Reports for one address land in Documents/PocketHunter/Cases/address-reports.
Build the Go tools
git clone https://github.com/kritarth1107/pockethunter
cd pockethunter
VERSION=dev ./scripts/build.sh
go test ./...
scripts/e2e.sh /tmp/ph-e2eboot/fetch-ubuntu.sh /tmp/ph-fetch
BOOT_FETCH=/tmp/ph-fetch VERSION=dev ./scripts/build.sh
boot/test-qemu.sh /tmp/ph-fetch /tmp/ph-qemu
MODE=stick boot/test-qemu.sh /tmp/ph-fetch /tmp/ph-qemu2Firmware is a separate Docker build. The commands, and the warning about eFuses, are on the build page.
Refresh the bundled OFAC list with scripts/update-ofac.sh. Regenerate wallet ID tables after editing data/wallets.json:
python3 testdata/genwallets.py data/wallets.json targets/wallets_gen.go && gofmt -w targets/wallets_gen.go