Posted: Tue Jul 31, 2012 7:31 pm
I had sat on the "file mystery" challenge for a few days. It was also a compressed file, but I never would have guessed it. Then when I looked at the first few bytes of this, I saw it was the same and that made me think to do an internet search for the hex of the bytes themselves and found out they both were compressed.
That was the hardest part. Up till then I had tried opening it as a graphic and all sorts of stuff like that. I had tried various guesses with the other one, too.(Even used a ROTXX program I had written on that one. No such luck.)
Anyway past figuring out that it's compressed, and that 7-Zip can open it up without trouble, I started to peal back the layers manually until that got tedious.
So I made a batch file. 7-zip's command line version was easy to use and the docs were in the help file, so I lucked out with that.
do.bat:
@copy *.zip ..
@erase *.zip
@rename *. *.zip
@7z x *.zip
Than after running that about 20 times made another bat file
dox10.bat
@call do.bat
@call do.bat
@call do.bat
@call do.bat
...etc
Then after that got tedious, made a dox100.bat
I think this thing was about 500 levels deep or more.
So, I learned 2 things. When you don't know what kind of file you have, type the first few bytes into a search engine. And scrips are so much better than typing and clicking.
(Also learned that "IF EXISTS filename" does not work in a .bat file on my installation of winXP. I wonder if they have done away with that or disabled it some versions. *shrug*)
Fun, fun.
On to the next.
--timothy48342
That was the hardest part. Up till then I had tried opening it as a graphic and all sorts of stuff like that. I had tried various guesses with the other one, too.(Even used a ROTXX program I had written on that one. No such luck.)
Anyway past figuring out that it's compressed, and that 7-Zip can open it up without trouble, I started to peal back the layers manually until that got tedious.
So I made a batch file. 7-zip's command line version was easy to use and the docs were in the help file, so I lucked out with that.
do.bat:
@copy *.zip ..
@erase *.zip
@rename *. *.zip
@7z x *.zip
Than after running that about 20 times made another bat file
dox10.bat
@call do.bat
@call do.bat
@call do.bat
@call do.bat
...etc
Then after that got tedious, made a dox100.bat
I think this thing was about 500 levels deep or more.
So, I learned 2 things. When you don't know what kind of file you have, type the first few bytes into a search engine. And scrips are so much better than typing and clicking.
(Also learned that "IF EXISTS filename" does not work in a .bat file on my installation of winXP. I wonder if they have done away with that or disabled it some versions. *shrug*)
Fun, fun.
On to the next.
--timothy48342