Avoiding duplicate lvm name issues. Scenario : Let's say 5-10 systems are compromised and all of those systems are spawned up from a pre-configured template i.e. AMI - amazon machine image. Using that you can launch new EC2 instance. Template‑এ থাকে: OS (Linux/Windows) Pre‑installed packages Configuration settings Now when you try to bring all the images of those host machines and try to mount on your analyst vm, it will refuse to work due to same lvm group name, uuid etc. We are here to fix that problem. First note the checksum: host1/disk1.raw and host1/disk1.raw --> We have this directory structure where images are present. md5sum host*/* e3b85cad126731e76955b2240b69f39d host1/disk1.raw e3b85cad126731e76955b2240b69f39d host2/disk1.raw You can see that the checksum is same. Pre-requisite necessary tool installation: apt install xmount Step 1 — দুইটার জন্যই xmount cache + loopback সেটআপ: mkdir -p /mnt/host1/xmount/disk1 mkdir -...
Before starting this lab, we need to first mount the image. See my this blog: https://mahimfiroj.blogspot.com/2026/08/disk-acquisition-and-access.html Step 1: Creating working directories. mkdir -p /images/case cd /images/case Now you need to confirm that the image is already mounted. See the above blog post. Step 2: Creating body files. Root filesystem (LVM): fls -r -m / /dev/VulnOSv2-vg/root | gzip > bodyfile-root.gz Boot / other raw partitions (offset required): fls -r -m /boot -o 2048 /mnt/case/img/ewf1 | gzip > bodyfile-boot.gz -r for recursive and -m for mount point, -o for offset. gz is done to save the space. Step 3: Building filtered timeline. zcat bodyfile-* | mactime -d <YYYY-MM-DD> | grep -v deleted-realloc > timeline.csv wc -l timeline.csv 3327 timeline.csv Avi