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

FileUse
PocketHunter-Device-System-<version>.img.gzSystem partition for the collector device: boot system and START-HERE.
PocketHunter-BootStick-<version>.img.gzBoot system for an ordinary USB stick of 2 GB or more. Collections are not device-signed.
PocketHunter-Firmware-ESP32P4-<version>.zipDevice firmware.
PocketHunter-PenDrive-<version>.zipWindows 64/32-bit and Linux x86-64/ARM64 collectors, plus the launcher.
PocketHunter-Analyzer-Windows-<version>.zipAnalyzer for a Windows investigator PC. No installer.
PocketHunter-Analyzer-Linux-<version>.tar.gzAnalyzer for a Linux investigator PC.
PocketHunter-Boot-Components-<version>.txtExact Ubuntu package versions in that boot system.
SHA256SUMS.txtChecksums for the release.
Check a download
sha256sum -c SHA256SUMS.txt --ignore-missing

Boot mode, with the device

  1. Plug the device straight into a USB port of the PC, not a hub.
  2. 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.
  3. 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:

Linux live collection
sudo sh /media/<user>/PH-SYSTEM/collect-linux.sh

Boot 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.

Write a boot stick
# example tools named in the README: balenaEtcher, or
gunzip -c PocketHunter-BootStick-<version>.img.gz | sudo dd of=/dev/sdX bs=4M conv=fsync

Pen 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.sh

Remove 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 a removed disk
Collect.exe -root E:\
sh collect-linux.sh -root /media/user/DISK

Android

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:

Windows, then Linux
Collect-Android.cmd
sh collect-android.sh

Tap 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:

Tesseract on Ubuntu
sudo apt install tesseract-ocr

On 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.

Address assistant
pockethunter-analyzer -address TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE
pockethunter-analyzer -chat

Other 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

Host build and tests
git clone https://github.com/kritarth1107/pockethunter
cd pockethunter
VERSION=dev ./scripts/build.sh
go test ./...
scripts/e2e.sh /tmp/ph-e2e
Boot system, needs qemu-system-x86, ovmf, ntfs-3g, gpgv, ubuntu-keyring
boot/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-qemu2

Firmware 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