meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| soc:irt:playbooks:windows_disk [2026/06/16 10:53] – titannet | soc:irt:playbooks:windows_disk [2026/06/16 14:45] (current) – titannet | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| ==== Env variables ==== | ==== Env variables ==== | ||
| <code bash> | <code bash> | ||
| + | rm ~/.case.env | ||
| pwd | pwd | ||
| - | WD=/ | + | WD=/ |
| - | E=/ | + | E=/ |
| </ | </ | ||
| - | ==== Disk Image ==== | + | ==== Disk Image basics |
| Line 31: | Line 33: | ||
| # -p has ' | # -p has ' | ||
| # new tab or crtl-z | # new tab or crtl-z | ||
| - | DISK_C=< | + | DISK_C=< |
| </ | </ | ||
| + | ==== Start with plaso ==== | ||
| + | |||
| + | <code bash> | ||
| + | docker run -it --rm --entrypoint=/ | ||
| + | # docker run -it --rm --user :$(id -g) --entrypoint=/ | ||
| + | |||
| + | # one step | ||
| + | psteal.py --source / | ||
| + | |||
| + | # two step | ||
| + | log2timeline.py --storage-file / | ||
| + | psort.py -o json_line -w / | ||
| + | #psort.py -o json_line -w / | ||
| + | |||
| + | |||
| + | cp output/ | ||
| + | cd tools/ | ||
| + | docker compose up -d | ||
| + | # -> localhost: | ||
| + | |||
| + | </ | ||
| === Extended disk image anaylsis === | === Extended disk image anaylsis === | ||
| Line 41: | Line 64: | ||
| istat -o < | istat -o < | ||
| istat -o < | istat -o < | ||
| + | |||
| + | fls -o < | ||
| + | mactime -b data/ | ||
| + | |||
| + | mactime -b data/ | ||
| + | |||
| + | |||
| + | # dissect | ||
| + | |||
| + | target-query -f hostname, | ||
| + | # much more useful for queries on multiple disks at once | ||
| + | |||
| + | target-query -j -f services $E | jq -r ' | ||
| + | # JSON output → jq | ||
| + | target-query --list | grep -iE ' | ||
| </ | </ | ||