View unanswered posts | View active topics
|
Page 1 of 1
|
[ 12 posts ] |
|
| Author |
Message |
|
Jorbs3210
|
Post subject: Christmas puzzle Posted: Mon Dec 19, 2011 3:42 pm |
|
Joined: Thu Jun 03, 2010 2:25 pm Location: Farmington, NM
|
|
| Top |
|
 |
|
bmenrigh
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 4:41 pm |
|
Joined: Thu Dec 31, 2009 8:54 pm Location: San Jose, California
|
I always drink my Ovaltine  .
|
|
| Top |
|
 |
|
Skarabajo
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 4:42 pm |
|
Joined: Wed Jan 21, 2009 12:58 pm
|
Hey Jorbs3210, Solved. That was great, thank you. I don't want to spoil it for others, so I won't say much... With this link, Jorbs3210 will know that I solved it... Others, click at your own risk: http://goo.gl/1sdEPSkarabajo. EDIT: Damn! bmenrigh beat me to it (by seconds!) 
_________________ My collection | My first mod | Making of first mod
|
|
| Top |
|
 |
|
Jorbs3210
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 4:53 pm |
|
Joined: Thu Jun 03, 2010 2:25 pm Location: Farmington, NM
|
 That was quick. How hard was it to take the answer to the first step and convert it into usable data? Did you have to do anything to it?
_________________ Autism Speaks can go away. I have Autism. I can speak for myself.
"You say tomater, I zader matermorts." - Coach Z
|
|
| Top |
|
 |
|
bmenrigh
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 4:56 pm |
|
Joined: Thu Dec 31, 2009 8:54 pm Location: San Jose, California
|
Jorbs3210 wrote: :shock: That was quick. How hard was it to take the answer to the first step and convert it into usable data? Did you have to do anything to it? Well the first step seemed obvious and I've had a need to process images in that way many times before so I can hack up a perl script to do it in no time flat. I spent a lot of time on your first version cleaning up noise to try to be able to process the result without any luck. Your second version without the noise was easy.
|
|
| Top |
|
 |
|
Jorbs3210
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 4:59 pm |
|
Joined: Thu Jun 03, 2010 2:25 pm Location: Farmington, NM
|
bmenrigh wrote: Well the first step seemed obvious and I've had a need to process images in that way many times before so I can hack up a perl script to do it in no time flat. Really? How does it work?
_________________ Autism Speaks can go away. I have Autism. I can speak for myself.
"You say tomater, I zader matermorts." - Coach Z
|
|
| Top |
|
 |
|
bmenrigh
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 5:04 pm |
|
Joined: Thu Dec 31, 2009 8:54 pm Location: San Jose, California
|
Jorbs3210 wrote: bmenrigh wrote: Well the first step seemed obvious and I've had a need to process images in that way many times before so I can hack up a perl script to do it in no time flat. Really? How does it work? Code: brenrigh@lambda ~ $ pngtopnm -plain download/christmaspuzzles1.png > xmas_1.txt brenrigh@lambda ~ $ pngtopnm -plain download/christmaspuzzles2.png > xmas_2.txt brenrigh@lambda ~ $ pngtopnm -plain download/christmaspuzzles3.png > xmas_3.txt brenrigh@lambda ~ $ ./xorpnm.pl xmas_1.txt xmas_2.txt > xmas_12.txt brenrigh@lambda ~ $ ./xorpnm.pl xmas_12.txt xmas_3.txt > xmas_123.txt brenrigh@lambda ~ $ cat xmas_123.txt | pnmtopng > xmas.png
EDIT: a friend of mine and I compete in the defcon CTF quals each year and the forensics category generally has problems similar to this (although usually much more complicated). He uses python and when we've had challenges like this in the past he uses Python with something like "import Image" or something like that and just reads out the image values directly. I tend to go the netpbm route.
Last edited by bmenrigh on Mon Dec 19, 2011 5:08 pm, edited 1 time in total.
|
|
| Top |
|
 |
|
Skarabajo
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 5:06 pm |
|
Joined: Wed Jan 21, 2009 12:58 pm
|
Wow bmernrigh, that's some coding you got there, very efficient. I actually combined all three images in Photoshop and noticed that they made a QR code, then I used Zxing decoder to convert the QR code to numbers. Since I was looking for an English message, I figured the numbers were ASCII code and manually replaced them. Total time from start to finish: 4 minutes. Skarabajo.
_________________ My collection | My first mod | Making of first mod
|
|
| Top |
|
 |
|
TomZ
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 5:13 pm |
|
Joined: Fri Feb 08, 2008 1:47 am Location: near Utrecht, Netherlands
|
|
| Top |
|
 |
|
bmenrigh
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 5:16 pm |
|
Joined: Thu Dec 31, 2009 8:54 pm Location: San Jose, California
|
|
This is actually quite a common problem that comes up in the "real world" when people don't understand the crypto that they are using. If you re-use the stream from a stream cipher (salsa20, RC4, any block cipher in CTR or OFB or CFB mode, etc) the problem is reduced to that of XOR.
The same is true for pad-based encryption where the "key" is short and gets repeated. Think XOR by 0x01234567 where the key is repeated every 32 bits. XORing the various parts together makes the stream drop out. I have plenty of code to automate various aspects of this.
There are more broken/abused cryptosystems than ones implemented correctly.
|
|
| Top |
|
 |
|
Jorbs3210
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 5:19 pm |
|
Joined: Thu Jun 03, 2010 2:25 pm Location: Farmington, NM
|
|
This will look a little better.
| Attachments: |

christmaspuzzle22.png [ 7.68 KiB | Viewed 617 times ]
|

christmaspuzzle21.png [ 7.71 KiB | Viewed 617 times ]
|
_________________ Autism Speaks can go away. I have Autism. I can speak for myself.
"You say tomater, I zader matermorts." - Coach Z
|
|
| Top |
|
 |
|
Jorbs3210
|
Post subject: Re: Christmas puzzle Posted: Mon Dec 19, 2011 5:40 pm |
|
Joined: Thu Jun 03, 2010 2:25 pm Location: Farmington, NM
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 12 posts ] |
|
Who is online |
Users browsing this forum: Google [Bot] and 2 guests |
|
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 post attachments in this forum
|
|
|