Scroll to navigation

ddbg(1) Gromox admin reference ddbg(1)

Name

ddbg — MAPI data debugger

Synopsis

/usr/libexec/gromox/ddbg [options...] command [args...]

Description

ddbg can be used to analyze various binary blobs. If no arguments are given, input is read from stdin. If arguments are given, they are treated as immediate values (i.e. content, never the name of a file to read).

Options

Employ hex2bin before main action.

Commands

Convert all bytes to hexnibble representation.
Convert all bytes to a textual representation. The environment variable BIN2TXT_MODE can be used to influence the output. Possible values are cstr (output as a C string literal without surrounding quotes), hex (hex nibbles like bin2hex), txt (custom compact encoding).
Try all decoders.
Decode rule action blob.
Decode entryid.
Lookup GUID.
Decode an NT timestamp and show the equivalent Unix time and calendar-based date.
Decode restriction blob (e.g. rule condition).
Decode an Unix timestamp and show the equivalent NT time and calendar-based date.
Convert a HTML document to RTF.
Convert a HTML document to plaintext.
Uncompress an lzxpress data stream.
Compress data stream with lzxpress.
Convert RTF to the RTFCP format, particularly the uncompressed "MELA" subformat.
Convert RTF to HTML.
Convert plaintext to HTML.
Decompress RTFCP (either "MELA" or "LZFU") to RTF.

Environment variables

GROMOX_HTMLTOPLAIN can be set to "chawan", "pandoc", "w3m", "internal" to pick one particular htmltoplain implementation. If unset or set to "auto", all of these converters are tried until a working one is found.

GROMOX_HTMLTORTF can be set to "pandoc" or "internal" to pick a particular htmltortf implementation. If unset or set to "auto", all of these converters are tried until a working one is found.

GROMOX_RTFTOHTML can be set to "pandoc" or "internal" to pick a particular htmltortf implementation. If unset or set to "auto", all of these converters are tried until a working one is found.

Examples

  • ddbg -p --decode-guid 38a1bb1005e5101aa1bb08002b2a56c2
  • ddbg --unrtfcp <body.bin >body.rtf

See also

gromox(7)

Gromox