target-dump¶
With target-dump you can export records of a specific function used in target-query to a file.
The basic structure of a target-dump command is as follows:
$ target-dump -f <comma_seperated_functions> <path_to_target>
Furthermore, the tool can apply certain compression algorithms to the dump, to create small archives of the output.
Usage¶
target-dump - CLI interface¶
dissect.target
target-dump [-f FUNCTION] [-xf EXCLUDED_FUNCTIONS] [-l [LIST]] [--dry-run]
[-c {bzip2,gzip,lz4,zstandard}] [--restart] [-s {jsonlines,msgpack}] -o OUTPUT
[--limit LIMIT] [-K KEYCHAIN_FILE] [-Kv KEYCHAIN_VALUE] [-L LOADER]
[--child CHILD] [--children] [--list-children] [--recursive] [-v] [--version]
[-q] [--plugin-path PLUGIN_PATH [PLUGIN_PATH ...]]
[TARGET ...]
target-dump positional arguments¶
TARGET- targets to load (default:None)
target-dump options¶
-fFUNCTION,--functionFUNCTION- one or more comma separated functions to execute (default:None)-xfEXCLUDED_FUNCTIONS,--excluded-functionsEXCLUDED_FUNCTIONS- functions to exclude from execution (default:)-lLIST,--listLIST- list (matching) available plugins and loaders (default:None)--dry-run- do not execute the functions, but just print which functions would be executed-cCOMPRESSION,--compressionCOMPRESSION- compression method (default:Compression.NONE)--restart- restart the session and overwrite the state file if it exists-sSERIALIZATION,--serializationSERIALIZATION- serialization method (default:Serialization.JSONLINES)--limitLIMIT- limit number of records produced (default:None)-KKEYCHAIN_FILE,--keychain-fileKEYCHAIN_FILE- keychain file in CSV format (default:None)-KvKEYCHAIN_VALUE,--keychain-valueKEYCHAIN_VALUE- passphrase, recovery key or key file path value (default:None)-LLOADER,--loaderLOADER- select a specific loader (i.e. vmx, raw) (default:None)--childCHILD- load child of target by path of index (see –list-children) (default:None)--children- include children--list-children- list all children indices and paths, then exit (default:False)--recursive- make –list-children behave recursively--version- print version--plugin-pathPLUGIN_PATH- a file or directory containing plugins and extensions (default:None)