Abmagick – abuse ImageMagick to create arbitrary files
github.com
github.com
He first fills it with 6C, which corresponds to a lowercase 'l', to reduce the amount of points that need to be filled in with something different...since 'l' is repeated a lot in "Hello world\n".
Edit: A more compact way to get the same outcome:
$ convert 'inline:data:image/x-portable-graymap;base64,UDUKMSAxMwoyNTUKSGVsbG8gd29ybGQhCg==' gray:helloIn my excuse, I developed this first for GraphicsMagick, which doesn't support "inline:".
> Cunningham's Law states "the best way to get the right answer on the internet is not to ask a question; it's to post the wrong answer."
> The concept is named after Ward Cunningham, the inventor of wiki software.
0_0 # Python >= 3.6 is required
(https://github.com/jwilk/abmagick/blob/8959fe7c390283d095e42...)Highly cursed, yet wildly creative way of asserting the language version.
Support for underscores in numeric literals landed in 3.6 (PEP-515), < 3.6 chokes on the underscore and raises a syntax error instead.
"What the fuck Python?"
https://github.com/satwikkansal/wtfpython
Along with the corresponding HN discussion:
https://news.ycombinator.com/item?id=31566031 (450 points, 153 comments)
Nothing beats this guy though: 0_0
Anything that uses the library.
Imagine someone goes to scan the QR code for an TOTP generator, and they scan the image rather than type the values into the generator, they get their phone rooted.
Not a fun way to start a new job or journalism project or whatever.
If you're not allowed to see the full URL/data inside the QR code when scanning it, before going to the URL/taking action on the data, then you need to try a different client.
Or the meta level issue people seem to think input sanitization only applies to text for some reason.
I'm damn sure not installing a 3rd party app that I have even less trust in to not do something shady. Typically, if I'm only provided a QR code, then I move along to something else. It irks me to know end that I have to use them in the manner that I do, and voice my concerns anytime the discussion is held on if they are needed. Unfortunately, they are expected to be provided as has been suggested not quite a barcode replacement but similarly present in retail packaging
It also has the side effect of leaving a little DNS trail for everything you buy on top of the credit card records.
(Also unclear why downvoted above? Was something in this thread inaccurate or incorrect? Feel free to respond in the comments, so I can understand how to better post, since I use those points as a guide as to whether my ideas have value, please don't pollute the signals I monitor.)