wtr
Full Member level 5
How to target a specific LBA sector from dd extract using c code
Hello all,
I've written a c program that goes through and looks at the binary file I've generated from dd'ing a hard disk.
The problem is the c program is looking at all this "fluff" either side of what I'm actually interested in.
I've used fopen & fread etc...and the pointer moves through the file until it memcmp's the binary identifier & then filters the data accordingly.
What I want to know is how can do the following.
Open file.
discard the first 0x5FFFF LBA's.
scan form LBA 0X60000 to LBA 0X7FC10.
perform data filtering on this sector block.
Where an LBA is 16 bytes in width.
Thanks in Advance,
Wesley.
Hello all,
I've written a c program that goes through and looks at the binary file I've generated from dd'ing a hard disk.
The problem is the c program is looking at all this "fluff" either side of what I'm actually interested in.
I've used fopen & fread etc...and the pointer moves through the file until it memcmp's the binary identifier & then filters the data accordingly.
What I want to know is how can do the following.
Open file.
discard the first 0x5FFFF LBA's.
scan form LBA 0X60000 to LBA 0X7FC10.
perform data filtering on this sector block.
Where an LBA is 16 bytes in width.
Thanks in Advance,
Wesley.