A tool for storing and organizing loot collected during offensive security operations.
go install github.com/bwpge/loot@latestCreate a new loot file in the current directory:
loot initThe resulting loot.json is discovered automatically from the current working directory and any parent. Use -L <path> to point at a specific file.
Check the status:
loot statusAdd an entry:
loot add hunter2 -t password -c 'web admin'
loot add alice@corp.local -t username -H dc01Common formats (e.g. user@domain, DOMAIN\user, user:pass, etc.) are split into additional entries automatically (use -n to disable).
Add each line in a file as an entry:
loot add -l creds.txtAdd file contents as an entry:
loot add -i id_rsa -t ssh-keyUpdate or remove entries:
loot update <id> -c 'new comment' -t password,reused
loot rm <id>
loot rm --all
loot rm -f <flag>List and filter:
loot ls
loot ls -t password
loot ls -H dc01Show raw values (useful for piping into other tools):
loot show <id>
loot show -t password -s ','Capture a flag (e.g., HTB machine):
loot capture 6367c48dd193d56ea7b0baad25b19455e529f5ee --user alice -H 10.10.10.5
loot capture 3da541559918a808c2402bba5012f6c60b27661c --rootUse --admin/-a as a shorthand for --root Administrator.
View flags (same as list --flags):
loot flagsShell completion is available with loot completion. Example with zsh:
source <(loot completion zsh)Use loot completion <shell> -h for instructions for your shell.