02-01-2024, 08:29 PM
(02-01-2024, 06:23 PM)Coolkatisa Wrote:(02-01-2024, 02:21 AM)applecuckoo Wrote: I ripped them for you - I'm short on time so I'll write an explanation tomorrow.
Thank you so much!!! I can't wait to hear how you did it
Ah rats, I got sidetracked by other stuff so I didn't realise you hopped online. I usually use ImHex on my Linux laptop, so I actually got HxD on a separate Windows 7 computer to make this super easy!
The starting header for a PNG file is 49 45 4E 44 AE 42 60 82 and the ending header is 49 45 4E 44 AE 42 60 82.
Here's what you need to do:
- We'll start by counting how many times we can find the starting header. Use Ctrl-F, then go into the 'Hex-values' tab and paste the hex. Set the search direction to 'All', and click 'Search All'. Note down the fact that you get five hits.
- Note down each of the hex codes in the Offset column in exact order. This will come in handy later.
- Repeat step 1 and 2, but with the ending header. You should get five hits again. That means we can reasonably say that our game.droid contains 5 hidden PNGs.
- Double click each row, select the comma next to 'IEND(copyright sign)B`' and note down the hex code next to 'Offset(h)'. Make sure to select just the comma.
- Okay, here's where we copy the images. Hit Ctrl-E and you will see a 'Select block' menu. Type in the start offset in 'Start-offset' and the end offset in 'End-offset'. Make sure the 'hex' and 'End-offset' boxes are selected (i.e. 'Length' and 'dec' or 'oct). Click OK.
- You should see a lot of stuff selected. Ctrl-C to copy it all. You'll probably get an intimidating warning that the data might not stay intact if we paste it outside of HxD. Don't worry, because we'll reconstruct the file in HxD.
- Ctrl-N to create a new file, then Ctrl-V to paste our PNG data. Click OK to the notice about changing the file size - this is what we want.
- Use Ctrl-S to save. Give your new file a name that ends with .PNG and open it up. Congratulations - you've reconstructed your first file!
- Now you just need to repeat all the steps from 5 onwards for the other four images.
I hope you enjoy the process - shoot me a reply if you have any questions.