Image that contains the code that generated it
allrgb.com
allrgb.com
It's not even that hard to write a real quine.
The really cool thing I noticed about this website was the different sizes of the image. The aim is to make a 2^24 pixel image that uses each color on the rgb color space once. That's 48 MB notionally, and some of the images are 20 or 30 MB, but then others are < 1 MB that have a repeating pattern.
Obviously it's possible to encode the image that contains its code in a few kb corresponding to the 100ish lines of code in the image, but the actual size is 42 MB, unsurprisingly the png encoding or whatever it is didn't find the shortcut
AIUI that's correct. The code is in the picture, not in the binary representation of the image. The code generates a particular encoding of the picture, but the code is visible in the image regardless of that (and even if you have a printed version of the image).
And/or what about an interpret or compile step in there?
https://twitter.com/OverTheWireCTF/status/146574242275182182...
Someone who solved the challenge did a writeup:
- Guessing by hand.
- Bruteforce by programatically feeding input into QEMU (as in that writeup).
- Bruteforce by only emulating the "important" code, via something like Unicorn.
- Bruteforce by reimplementing the algorithm in another language (There are some tricks you can use to make it go fast - maybe I should write those up...)
- Reducing the search space by grepping for likely keywords.
- Bruteforce of remaining bytes of the RC4 key (also as in that writeup).
Yes, this exists:
1. Construct encoded string
2. Decode string
3. Print decoded string
Once you get that up and running, you can stuff anything you want into the payload.I can answer any questions you've got
In all seriousness, I really like this: https://allrgb.com/greedy-spaghetti-pandemonium