FAQ  •  Login

Level 12

Moderators: UncleTimmy, mjpieters

Enjoying the challenge? Need a hint?
Make a donation and help keep the site running! -thesamet
<<

BronYAurStomp

Posts: 1

Joined: Mon Nov 27, 2006 3:55 pm

Post Mon Nov 27, 2006 4:06 pm

I found the hidden gfx file fine, but I have no idea how to separate the data inside into five files. I've looked up image headers, and compared notepad-opened image files (jpeg, bmp, gif). I found easily identifiable patterns, none of which occur in the gfx file. I've used a hex-editor (had no idea what i was doing) and looked at the data. Found some identifying header things but couldn't go farther with it. I've also tried building a string from the gfx file, adding one character at a time, and imghdr testing it. For some reason my string wants to be 31 chars long, idk why. But I need some help :*(
<<

martinw89

Posts: 1

Joined: Fri May 09, 2008 9:43 pm

Post Fri May 09, 2008 9:47 pm

For anyone new to the challenge and still having difficulty: I personally think it's a lot easier to compare the decoding process to "dealing" cards rather than "unshuffling" them.
<<

Ben Blank

Posts: 3

Joined: Sat Feb 07, 2009 9:33 pm

Post Sun Feb 08, 2009 10:17 am

I think I've managed the heaving lifting for this challenge and am worried that I won't be able to solve it for lack of adequate tools.

I've found the "deck" and unshuffled it into five data streams, each of which purport to be of a particular type. If I file.write() those out with their proper extensions, I can't read them with Firefox, Windows XP's built-in viewer, or with the GNU Manipulation Program for files of that variety. The first two complain of corruption, and the latter actually crashes! If I instead feed the streams into the popular 3rd-party Python module for data of this variety, I can create objects from all five streams, but only four of those objects (1, 2, 3, and 5) can be written out (at which point they can be read by anything).

The fourth stream/object, however, throws an IndexError when I try to write it out. Seeing a hint earlier in this thread, I tried padding the data stream with zeroes, but that only gets me a SyntaxError (oddly), instead.

How can I view this data?
<<

mjpieters

Site Admin

Posts: 172

Joined: Wed May 04, 2005 8:56 am

Location: Norway

Post Sun Feb 08, 2009 5:02 pm

Ben Blank wrote:I think I've managed the heaving lifting for this challenge and am worried that I won't be able to solve it for lack of adequate tools.


If you unshuffle the deck correctly, no special tools are necessary. If you see errors, then you didn't quite get the unshuffle right, perhaps?
<<

Ben Blank

Posts: 3

Joined: Sat Feb 07, 2009 9:33 pm

Post Sun Feb 08, 2009 10:55 pm

mjpieters wrote:
Ben Blank wrote:I think I've managed the heaving lifting for this challenge and am worried that I won't be able to solve it for lack of adequate tools.


If you unshuffle the deck correctly, no special tools are necessary. If you see errors, then you didn't quite get the unshuffle right, perhaps?


The other four files are working, at least when I turn them into objects before writing them back out. How about this; what viewer are you using that lets you read all five resulting files? If you can vouch for a tool, then I can stop doubting mine. :-)

Just PM me if the data type (and therefore the name of the viewer) would be a spoiler.
<<

mjpieters

Site Admin

Posts: 172

Joined: Wed May 04, 2005 8:56 am

Location: Norway

Post Mon Feb 09, 2009 6:14 am

Ben Blank wrote:The other four files are working, at least when I turn them into objects before writing them back out. How about this; what viewer are you using that lets you read all five resulting files? If you can vouch for a tool, then I can stop doubting mine. :-)


I just reran the challenge solution from the wiki, and indeed one of the image comes out as slightly corrupted (it has been truncated). The other 4 I have no problems with, at least not with Preview (Mac OS X app), Firefox and ImageMagick. Firefox displays as much as it can from the corrupted image, which is plenty to solve this level.
<<

taralluccio

Posts: 11

Joined: Wed Feb 18, 2009 7:00 am

Location: Bergamo, Italy

Post Thu Feb 19, 2009 7:51 am

I solved this level, but I still have a question:

Dan wrote:I typed in a URL and it said "wow! you are a genius!". Is that a hint, or sarcasm?

Which URL gives this sarcastic message?
<<

thesamet

Python Challenge Leader

Posts: 69

Joined: Thu Apr 28, 2005 11:02 pm

Post Thu Feb 19, 2009 3:10 pm

taralluccio wrote:I solved this level, but I still have a question:

Dan wrote:I typed in a URL and it said "wow! you are a genius!". Is that a hint, or sarcasm?

Which URL gives this sarcastic message?


definitely sarcasm. It's in cards.html on the same directory.
<<

taralluccio

Posts: 11

Joined: Wed Feb 18, 2009 7:00 am

Location: Bergamo, Italy

Post Mon Feb 23, 2009 12:56 pm

Oooh, thanks. Never occurred to me to try that one.

I like finding all these side trails.
<<

thelizardreborn

Posts: 1

Joined: Tue Dec 01, 2009 7:31 am

Post Tue Dec 01, 2009 7:34 am

For those having trouble reading a binary file with Python (like I did for hours), read here.
<<

oakins77

Posts: 1

Joined: Tue Jul 06, 2010 3:00 pm

Post Tue Jul 06, 2010 3:08 pm

Re: Level 12

Sorry,
i really treid hard to solve - used hex-editors and stuff. but i think its impossible to solve it under WinXP. the images out of the gfx are not readable by any program(firefox,gimp,irfanview). i finally tried a spoiler and this also doesn't work. so i decide to skip this riddle. This doesn't work.
<<

Euphorbium

Posts: 1

Joined: Tue Jul 27, 2010 1:52 am

Post Tue Jul 27, 2010 1:55 am

Re: Level 12

Do I have to install gfx module? I have trouble doing that.
<<

Rebecca

Posts: 14

Joined: Fri Jul 20, 2007 3:06 am

Post Wed Aug 11, 2010 2:03 am

Re: Level 12

Euphorbium: No, the standard library is sufficient to solve this.

Oakins77: Are you sure your algorithm is correct? Did you mind "rb"?
<<

croquet

Posts: 4

Joined: Tue Nov 02, 2010 12:18 pm

Post Wed Dec 15, 2010 2:54 pm

Re: Level 12

This website is completely awesome and I will never thank the samet enough for all the time, effort and intelligence he put into these riddles. :D
I have been programming with python for two years now and found out how little I knew :lol: . Thanks a trillion!

However, I found this riddle completely frustrating and (maybe) too twisted.
Even afer reading the explanation on the wiki it felt a bit forced, like if you had to presume exactly what was supposed to be presumed... otherwise you had no chance of solving it, specially with the binary data file (this is just my humble opinion)
I must confess is the only riddle from the 13 done by now (I'm on the 14th) that I couldn't solve by myself, ending up browsing for the solution :oops:

What most surprised me is the fact that if you skipped one of the evils, you would not be able to solve riddle 13 and it is not easy at all to get it!
Still do not know how are you supposed to extract that info from that particular evil.

Anyway, as I said, terrific website... 5 years after its creation is still alive with people like me hunting and thinking.
Bravo the samet :D
<<

simjup35

Posts: 1

Joined: Thu Jan 12, 2012 2:48 pm

Post Thu Jan 12, 2012 2:53 pm

Re:

drigz wrote: EDIT: Solved it! Knowing JPEG magic bytes was handy...


This is the hint that un-stumped me. Look for a pattern of "magic bytes"....
PreviousNext

Return to Python Challenge Hints

Who is online

Users browsing this forum: Google [Bot] and 8 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.