hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Need help about the 'Russian Dolls' challenge
Goto page Previous  1, 2
 
Reply to topic    hacker.org Forum Index » Challenges View previous topic
View next topic
Need help about the 'Russian Dolls' challenge
Author Message
DaymItzJack



Joined: 29 Oct 2009
Posts: 106

Post Reply with quote
I wouldn't of known what to do in the command prompt. I don't really want to discuss it too far in this thread, might reveal something.

However, with the program I was using, all I had to do was double click a thousand times.
Wed Dec 23, 2009 4:35 am View user's profile Send private message
yyiinn



Joined: 17 Dec 2009
Posts: 2

Post Reply with quote
Cheers CodeX,

yeah would hav been on that one well into the new year without that!

nice one Smile)
Thu Dec 24, 2009 7:40 pm View user's profile Send private message
CodeX



Joined: 17 Oct 2008
Posts: 350

Post Reply with quote
You're welcome Very Happy

On the Python size of things, Python does have a module to deal with the decompression and only needs one line to extract the contents of 1 file into another, although I haven't tried it I think it should work with this challenge, all you need is the source and target filename leaving out parameters to specify extraction or compression type as you might have in command line with something like 7zip but you do have to know the compression method to know which module to use (*nix file command or windows equivalent anyone?).
Thu Dec 24, 2009 8:16 pm View user's profile Send private message
laz0r



Joined: 04 Feb 2010
Posts: 290
Location: Within the depths of Unix

Post Reply with quote
I'm new to bash scripting (which I guess is what your trying to imply) so would you be able to help recommend a way to start out or another method?

Thanks

_________________
There is no spoon.
Mon Mar 01, 2010 10:22 am View user's profile Send private message
CodeX



Joined: 17 Oct 2008
Posts: 350

Post Reply with quote
you can use any scripting/programming language that supports system calls or that can extract compressed files, Python can do both of these easily and quickly. As for starting bash I'd say just google for a tutorial on it as there are some good ones
Mon Mar 01, 2010 10:55 am View user's profile Send private message
TechnoDemon



Joined: 13 Apr 2010
Posts: 20
Location: Makassar, ID

Post Reply with quote
@CodeX

do you mean this??
Code:
#!/bin/bash


_________________
No Pain = Gain
That's how programmer develops...
Mon Apr 19, 2010 5:54 am View user's profile Send private message
CodeX



Joined: 17 Oct 2008
Posts: 350

Post Reply with quote
not necessarily, I was just suggesting bash as a tool - not it's shebang
Mon Apr 19, 2010 6:46 am View user's profile Send private message
TechnoDemon



Joined: 13 Apr 2010
Posts: 20
Location: Makassar, ID

Post Reply with quote
Twisted Evil
Hehehe... i got it...
Now let's give it a try...

_________________
No Pain = Gain
That's how programmer develops...
Tue Apr 20, 2010 3:14 am View user's profile Send private message
Masti6



Joined: 15 May 2010
Posts: 55
Location: Finland, Nurmes

Post Reply with quote
Heya all! I'm starting to think that CodeX might be getting a little tired to see me post my questions on various forums but HERE IT GOES AGAIN! (Awesome song btw)
Anyways, I only know PHP language so far, and not even that well. I can do loops and if-else commands, but as for os commands, I know quite alot. But not even a single one to open 999 archieves. (unzip?).
Any tip for PHP or .bat files appreciated!
Sun May 16, 2010 10:41 am View user's profile Send private message MSN Messenger
Masti6



Joined: 15 May 2010
Posts: 55
Location: Finland, Nurmes

Post Reply with quote
Just asking a random oracle would do the same thing?
Plus, asking "what does "..." mean" ain't leading anywhere.
Or is there a specific "Insert question here!" -box in addition to the normal search box?
Sun May 16, 2010 11:33 am View user's profile Send private message MSN Messenger
laz0r



Joined: 04 Feb 2010
Posts: 290
Location: Within the depths of Unix

Post Reply with quote
Actually, if you have Mac OS it's trivial - otherwise I found bashing it worked.

_________________
There is no spoon.
Sun May 16, 2010 11:43 am View user's profile Send private message
CodeX



Joined: 17 Oct 2008
Posts: 350

Post Reply with quote
if you can do OS commands (via command line, not point & click) then this should be trivial, assuming your on windows you could do this with a bath file (similar to bash). Command line allows you to explicitly do something such as extract doll.bin from doll.bin, all you have to do is figure some way of doing that maybe with something like a while loop (while the extracted file has extractable content). PHP can handle compressed files, you just need to look up/search for relevant functions, it might be a bit of a struggle if your not used to this kind of thing but if you keep thinking of things you need to do to get it done then you should manage in the end, I think it's very important to be efficient at researching functions/topics to be good at solving these problems and it's especially handy when your starting off with programming, otherwise you'll think the world is limited to control structures and printing trivial text/numbers.

Also if your having problems searching the forums using PHPBB2's built in search (which I never use) you should use google like so:
Quote:
site:hacker.org some question or search content here
Google also has other things you can specify such as inurl: which can be useful if you only want certain things such as threads and not searches.
Sun May 16, 2010 12:08 pm View user's profile Send private message
Masti6



Joined: 15 May 2010
Posts: 55
Location: Finland, Nurmes

Post Reply with quote
Thanks, I didn't solve it with PHP nor using only bath, but something in addition. Thanks for the directions!
Sun May 16, 2010 3:49 pm View user's profile Send private message MSN Messenger
JayArr



Joined: 16 Oct 2010
Posts: 8

Post Reply with quote
nice one. why don't ppl who want to learn programming just go here ^^
you got it all covered.
Sun Oct 31, 2010 12:43 pm View user's profile Send private message
kordosoft



Joined: 09 May 2011
Posts: 5

Post Reply with quote
lolex... this is a fat Russian doll(Girl). Hardest part was to find out the the compressor type used

_________________
kordosoft
Thu Mar 06, 2014 2:32 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    hacker.org Forum Index » Challenges All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.