News for hackers. Stuff that matters.
Re:When you browse Instagram and find Tony Abbott's passport... by abhiminator on Wednesday September 16, 2020 @06:00AM (#24491146)
Great post, thoroughly enjoyed reading it.

BTW, on a side note, when you try and visit the blog's homepage[0] and scroll down to the bottom, you find a link to an actual (password protected) PDF file called Mango.pdf[1]. The author 'Alex' says the password for the PDF has been embedded in the page and it didn't take me a lot of time to figure the password out from the HTML source[2].

But when I opened the PDF, I was hit with this random string of characters:

cGJhdGVuZ2h5bmd2YmFmLCBsYmggZmJ5aXJxIHpsIHlodnR2IGNobW15ci4gQCB6ci BiYSBnanZnZ3JlIGp2Z3UgbGJoZSBzbmliaGV2Z3IgcXJmZnJlZyBnYiB0cmcgbGJo ZSBlcmpuZXEuIFZnJ2YgeXZ4ciwgYWJnIG4gaXJlbCB0YmJxIGVyam5lcSBmYiBodQ o=

I tried to decode this using every available decoder, but it only throws up random result. Was wondering if any of you smart people here had any idea about this code.

[0] https://mango.pdf.zone/

[1] https://mango.pdf.zone/mango.pdf

[2] view-source:https://mango.pdf.zone/

EDIT: SOLVED IT!

As the commenters who replied to me mentioned, this puzzle is double-encoded. I think the trick is to figure out which decoder to use first.

Re:When you browse Instagram and find Tony Abbott's passport... by cimi_ on Wednesday September 16, 2020 @06:59AM (#24491400)
CyberChef[0] has a 'magic' decoder that tries out different encodings for you.

[0] https://gchq.github.io/CyberChef/#recipe=Magic(3,false,false...

Re:When you browse Instagram and find Tony Abbott's passport... by carlmr on Wednesday September 16, 2020 @06:14AM (#24491219)
There are two layers to that encoding. When you see a random string of characters and numbers ending with one or two equals signs, think of base64. Then when you see something that seems like word groups with spaces, think of rot* (* = 13 being the most common version) encoding.
Re:When you browse Instagram and find Tony Abbott's passport... by abhiminator on Wednesday September 16, 2020 @06:22AM (#24491248)
Thank you. I solved it. My decoding sequence was wrong before (I was trying to decode in reverse), but your pointers helped me.
Re:When you browse Instagram and find Tony Abbott's passport... by losvedir on Wednesday September 16, 2020 @06:07AM (#24491188)
I decoded it probably in the same way you tried, but I wouldn't call the result "random" in the space of possibilities. A random result of that kind of decoding would likely involve binary data that can't map cleanly to letters the way this did. You've just gotta go deeper!
Re:When you browse Instagram and find Tony Abbott's passport... by nbgl on Wednesday September 16, 2020 @06:05AM (#24491180)
Hint: try ROT13.
Re:When you browse Instagram and find Tony Abbott's passport... by barbs on Wednesday September 16, 2020 @06:28AM (#24491275)
Quick posix shell rot13 tip: pipe it into:

tr '[A-Za-z]' '[N-ZA-Mn-za-m]'

Re:When you browse Instagram and find Tony Abbott's passport... by ramses0 on Wednesday September 16, 2020 @12:33PM (#24494279)
Also sometimes useful is vim: `g?` ... it's useful to have "scrambled" lines in notes for protection against casual disclosure.

Vim used to have a (terrible) encryption capability, but lately I've been fairly happy with `pass` (passwordstore.org) for basic local encryption.

Re:When you browse Instagram and find Tony Abbott's passport... by efreak on Wednesday September 16, 2020 @12:34PM (#24494297)
There's a rot13 command in the bsdgames package on Ubuntu. Or you could just create an alias. Not sure if the command takes file input.
Re:When you browse Instagram and find Tony Abbott's passport... by abhiminator on Wednesday September 16, 2020 @06:11AM (#24491211)
Thank you. Tried that as well, still throws up a string of letters and numbers. But the frequency this time seemed a bit more consistent, so the trick is to apply some sort of frequency analysis, I guess. Still on it.

BTW, are there any more of such 'puzzle hunt' websites where you could play around and sharpen your decoding skills? Thanks!

Re:When you browse Instagram and find Tony Abbott's passport... by rbinv on Wednesday September 16, 2020 @06:19AM (#24491233)