This will read 8 bytes then 8 more bytes then 32 bytes ad then it will extract the data based of the variables $fileLocation, $fileSize, and $filename over and over until i come to the terminating reference, then will exit Sysread( $infile, $chunk, hex($fileSize) ) Sysseek( $infile, hex($fileLocation), 0 ) Here is the C script, i know its wrong and thats why i am here asking for help to get me going :pĮntr圜ount = fread(buffer, sizeof(buffer), 1, in) įor ( int x = 0 x ', "extracted/$fileName" ) or die "Cannot open $fileName $!" then from 0x508 to 0x50F would be the actual file size (or block size, or chunk size or whatever you want to call it) and then the next 32 bytes is the actual file name. Say for instance, if i open up a hex editor and look at this binary file at offset 0x500, then from 0x500 to 0x507 would be the postition of that particular file within the binary file. I have been constantly looking for an appropriate answer that would give me the "ahha" moment, but could not find one yet, but i have a binary file in which many other files are in, these files have hexadecimal references to the location to where the file is.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |