Russian Dolls

Discussion of challenges you have already solved
lukas
Posts: 34
Joined: Wed Nov 26, 2008 1:53 pm
Location: Germany

Russian Dolls

Post by lukas »

WTF ^^

how did the others done this level? I wanted to create a script but my favourite programm said
that the file is not default-conform; So I did it complete manually and it takes very long :roll:

So I think that I haven't say too much :P
soeschmid
Posts: 6
Joined: Sat Nov 08, 2008 6:36 pm

Post by soeschmid »

Hi Lukas,

wow, i'd never have done this by hand...
I would have given up very early.

I used a batch-File in windows to run winrar in a loop.
The most difficult of this work was reading the manual of winrar for possible parameters :-)
brazzy
Posts: 14
Joined: Fri Nov 07, 2008 2:30 am
Location: Munich, Germany
Contact:

Post by brazzy »

I used a bash shell script, and it took several minutes - I didn't count iterations, but it must have been hundreds! I can't imagine doing that manually.
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

I used a PHP script and it took less than a second. There are 999 iterations, not that much.
lukas
Posts: 34
Joined: Wed Nov 26, 2008 1:53 pm
Location: Germany

Post by lukas »

I also tried per winrar, but winrar say to: "The file is not an archive or maybe corrupt"

and I dont take the first one, because he always say its corrupt, I take the fourth or so.
macdachs
Posts: 6
Joined: Tue Oct 28, 2008 6:54 pm

Batch File

Post by macdachs »

Just used GZIP and a Batch-File

:start
gzip.exe -d doll.gz
ren doll doll.gz
goto start

Works fine for me under 5 minutes
ImreNagy
Posts: 1
Joined: Sat Jan 03, 2009 2:22 pm

Post by ImreNagy »

easy:
open with 7z mark the [content] and fix the enter key with a pen. 2 minutes later you have the answer.
Belriel
Posts: 16
Joined: Sat Dec 20, 2008 2:55 pm

Post by Belriel »

I also used PHP and then had the answer in an instant, most time I spent finding out the right PHP functions and how they work as the gzip library is not very well documented and some of the functions mentioned are not even present in the current release.
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

i used gzinflate() and always split off the first 10 bytes (header). how did you do it?
Belriel
Posts: 16
Joined: Sat Dec 20, 2008 2:55 pm

Post by Belriel »

I used gzdecode(), but since this function seems to be not yet part of PHP, I used the function I found in the user contributed notes.
User avatar
yes-man
Posts: 32
Joined: Fri Jan 30, 2009 5:14 pm

Post by yes-man »

Used one bash line.
for ((i=1; i<20000; i++)) do gzip -d doll.gzip && move doll doll.gzip done
aurora
Posts: 54
Joined: Thu Feb 05, 2009 12:31 pm
Location: Bavaria, Germany

Post by aurora »

i've written a file identifier for work a while back. so this was the first tool ich used with doll.bin -- than it was pretty easy: gunzip as long as the file identifier reported 'application/gzip' as filetype.
masgo
Posts: 2
Joined: Sat Nov 29, 2008 3:29 pm

Post by masgo »

i used 7-zip for windows and kept the enter button pressed for ~one minute ... :D
misterjack
Posts: 4
Joined: Sat Mar 07, 2009 3:36 pm
Location: Germany

Post by misterjack »

mv doll.bin doll.gz && watch -n 0 "gunzip doll.gz && mv doll doll.gz" :)

At least: cat doll
Chocoholic
Posts: 44
Joined: Mon Feb 16, 2009 4:11 pm
Location: UK

Post by Chocoholic »

aurora wrote:i've written a file identifier for work a while back. so this was the first tool ich used with doll.bin -- than it was pretty easy: gunzip as long as the file identifier reported 'application/gzip' as filetype.
That already exists, it's called "file" in unix. ;-)

I also used just one line of bash code. Long live coLinux! :-)

Code: Select all

while file doll.gz | grep gzip; do gunzip doll.gz; mv doll doll.gz; done
Post Reply