Live data from Hacker News

Decoding the obfuscated bash script on a Uniqlo t-shirt

tris.sherliker.net

151–160 of 253 posts

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#151

Earlier quoted context omitted.

No, they're instructing their customers to run unknown base64 encoded code instead. :D

They should have just had the base64 block and forced you to decode and read it before running it, rather then having the `eval` bit at the beginning...

But that wouldn't have looked like a bash script, only a random sequence of characters. The shebang at the start definitely contributes to the geek factor.

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#152
post #147

The font is Roboto Mono, not Consolas. There's something else a lot stranger going on, though. It is a proper monospace font, but the typesetting on the shirt is not. There's some kerning going on (I noticed it especially in the 'Iy' pair), and also it appears that narrower characters such as 'i' take less horizontal space. If I had to guess, I would say that it was set with a tool such as "optical kerning" in InDesi…

Has anyone ever made a monospace font with dynamic kerning? Which is a silly thing I never thought of until I read the above comment. This sounds nonsensical at first glance(and it may be) but hear me out. We use monospace fonts for a reason, they stack in a grid nicely. But within the confines of that grid there is room to shift a character left or right a bit which may lead to a nicer to read monospace. (it is equa…

Monaspace has a feature called "texture healing" that does something similar: it allows bigger letters to "steal" space from adjascent smaller letters, to make it easier to read. The result is that the letters are still in a grid, while still allowing for bigger letters to "breathe".

https://github.com/githubnext/monaspace/blob/main/docs/Textu...

It's the main reason I use monaspace as a font.

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#154

The font is Roboto Mono, not Consolas. There's something else a lot stranger going on, though. It is a proper monospace font, but the typesetting on the shirt is not. There's some kerning going on (I noticed it especially in the 'Iy' pair), and also it appears that narrower characters such as 'i' take less horizontal space. If I had to guess, I would say that it was set with a tool such as "optical kerning" in InDesi…

Thank you, I think you're right! I've added a correction in the post and cited your comment.

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#156
post #79

For anyone that cares, this is a slightly less stupid Python version: #!/usr/bin/env python3 from os import environ; E = environ.get from math import sin from time import sleep text = "♥PEACE♥FOR♥ALL" # The text to sine-scroll animate nText = len(text) # Number of utf8 chars freq = 0.2 # Frequency scaling factor color0 = 12 # xt256 Color cube segment 12.. As mentioned in https://news.ycombinator.com/item?id=48830634…

You should base64 it and sell tshirts

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#158
post #79

For anyone that cares, this is a slightly less stupid Python version: #!/usr/bin/env python3 from os import environ; E = environ.get from math import sin from time import sleep text = "♥PEACE♥FOR♥ALL" # The text to sine-scroll animate nText = len(text) # Number of utf8 chars freq = 0.2 # Frequency scaling factor color0 = 12 # xt256 Color cube segment 12.. As mentioned in https://news.ycombinator.com/item?id=48830634…

[deleted]

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#159

how is it obfuscated? It's literally written as plain black monospace text on a white background. Pretty sure any AI can solve it in 20 seconds.

It’s encoded not obfuscated. It’s even commented, which is the opposite of obfuscated. Plus it’s not really an Easter egg that was found: it is literally printed in a shirt. Easter eggs are supposed to be hidden and either only found by insider knowledge or deep investigation. This was neither.

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#160

"Uniqlo x Akamai sells another design of shirt in the same range which is plainly incomplete" Imagine having to return a t-shirt because that malfunction! — I don't understand why are you returning this, was the size wrong or you didn't like it? — No, there is a syntax error at line 37 that makes it impossible to run, and I'm concerned people on the street may think I promote unsafe bash scripting.

- I am shell-shocked at the lack of quality assurance! Can you at least apply a patch?
Post reply on HN