bdf2csv converts Unix-like Artifacts Collector (UAC) Linux bodyfiles into CSV format with human-readable timestamps in UTC.
bdf2csv -i <bodyfile> -o <csvfile> [options]
Options:
-i string Input bodyfile path (required)
-o string Output CSV file path (required)
-e Keep timestamps in epoch format only (default is human-readable)
-v Show version and exit
-h Show this help message
Example:
bdf2csv -i bodyfile.txt -o bodyfile.csv
bdf2csv -i bodyfile.txt -o bodyfile.csv -ego install github.com/jw4n6/bdf2csv@latestgit clone https://github.com/jw4n6/bdf2csv.git
cd bdf2csv
go build -o bdf2csvColumn Structure:
- 0 - Placeholder (always "0" in UAC bodyfiles)
- Name - File/directory path
- Inode - Inode number
- Mode - File permissions (e.g., "drwxr-xr-x")
- UID - User ID
- GID - Group ID
- Size - File size in bytes
- ATime - Access time
- MTime - Modify time
- CTime - Change time
- CrTime - Creation time
NOTE: in order to use the bdf2csv binary, make sure the GOBIN is part of your PATH env variable:
$ export GOBIN=`go env GOPATH`/bin
$ export PATH=$PATH:$GOBIN