repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
FAKEXIF.mdMarkdown93 lines3.9 KiBsource raw download

fakexif#

Strip the real metadata off an image, stamp on a decoy location, camera fingerprint and message, rename the file. Wraps exiftool + imagemagick.

brew install exiftool imagemagick
~/.dotfiles/scripts/setup.sh --bin     # symlink bin/* into ~/.local/bin

Default#

No flags = North Korea labour camp:

fakexif photo.jpg
# -> camp14-20260811-064311.jpg
#    GPS 39.6109 N, 126.0508 E
#    "cant dox me im in NKs labour camp" in every comment field
#    timestamp local to Pyongyang, filesystem dates faked too

Every part of that is overridable.

Options#

flag does
-c, --camp <key> decoy preset (default camp14)
-r, --random [cat] random preset, optionally from one category
-g, --coords <la,lo> explicit signed decimal coords
-P, --place <text> override the place label
-a, --alt <m> GPS altitude, default 120
-l, --list [cat] list presets
-m, --msg <text> message written to the comment fields
-C, --camera <key> fake camera fingerprint, --cameras to list
--artist, --copyright credit fields, default nobody
-d, --date <ts> YYYY:MM:DD HH:MM:SS, default now in the decoy's zone
-t, --tag Tag=Value write any exiftool tag, repeatable, wins over presets
-n, --name <base> output basename
-k, --keep-name edit in place, keep the filename
-o, --out <dir> output directory
-b, --backup keep a .orig copy of the input
-j, --jpeg / -p, --png force JPEG / keep PNG as PNG
-q, --quality <1-100> JPEG quality when converting, default 92
-s, --strip scrub only, write no decoy
-A, --no-strip overlay the decoy on top of existing metadata
-S, --show dump metadata and exit
-N, --dry-run say what would happen
-Q, --quiet print output paths only, for piping

Preset categories#

dprk · gulag · detention · zone · spook · nowhere — 48 in total.

Examples#

fakexif -r gulag -C iphone15 *.jpg        # random gulag, iPhone fingerprint
fakexif -c area51 -m "nice try" pic.png
fakexif -g 51.5074,-0.1278 -P "London" -t Rating=5 pic.jpg
fakexif -s -k leak.jpg                    # scrub only, keep the name
fakexif -c kolyma clip.mp4                # video gets QuickTime GPS atoms
fakexif -Q -o out *.jpg | xargs -n1 open  # quiet mode prints paths

Notes#

Tab completion for presets and cameras lives in completions/_fakexif and is parsed out of the script itself, so it never drifts from the preset table.