Nice one! Here's the solution that doesn't involve patching: https://pastebin.com/rHK7Ht4T |
==> |
Nice one! Finding the string is relatively easy. I'm pretty new to SRE and trying to understand the code taught me a lot. I had never heard of mangling before this one and I learned a bit about how variables are allocated too :) |
==> |
I think dracula is right that their code didn't reflect what they expected the challenge to be, but their link doesn't completely solve the intended challenge and will only work in certain cases. There is an additional component in the compare() function that wasn't taken into account in their script. Technically, only the first letter of the generated key is needed, but the intended key is generated with this c program: https://pastebin.com/vB5EWU16 |
==> |
An easy alternative to the other solution would be to just interpret the bytes as a c-string. This would give wzJCPjBHBsHAkHbazmhYdflzLdhapPUE, which works as a solution. Nice challenge for beginners, I appreciate it! |
==> |