Live data from Hacker News

Decoding the obfuscated bash script on a Uniqlo t-shirt

tris.sherliker.net

61–70 of 253 posts

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

#61
post #33
post #5

Earlier quoted context omitted.

Uniqlo frequently does collaborations. This was one with a tech company

It's at least the second one that Akamai's done, although I like this newest one the most. The old one was: https://www.uniqlo.com/us/en/products/E459561-000/00

I have both of them and wear them to work regularly xD

The guy who founded the new political party Team Mirai also wears it frequently: https://en.wikipedia.org/wiki/Takahiro_Anno

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

#62
post #9

I thought it was funny that the author used a variety of OCR tools with mixed success before spending a lot of time manually fixing up the output from the best one, rather than just typing it in

Gemini3.5 Flash didn't have a problem OCR'ing and base64 decoding it, despite the OCR step having errors, it just fixed them in the base64 decoding step.

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

#63
post #48

Earlier quoted context omitted.

Safari's copy-text-from-image feature manages the entire base64 part of the string, except for the first character (I instead of a T). Weirdly, it gets much worse performance if you try to copy the entire string, including the hashbang part. I wonder what it's doing under the hood to get such good performance?

Didn't know Safari had this. Looked it up, you put mouse over text, then just select and copy it - very cool! https://support.apple.com/en-gb/guide/safari/ibrw20183ad7/ma...

There’s a whole bunch of hidden features that no one seems to be aware of.

Preview has pretty good background removal.

Notes will transcribe audio from audio files.

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

#64
post #47

Earlier quoted context omitted.

I don't think it was written by an LLM, some things stand out: The congratulations text is both in English and Japanese. Contains a single heart emoji. There was an intention to have a cyan to orange gradient, but the range starts in an ANSI block, ends halfway through the 256 color block and 256 terminal colors are not arranged like a gradient at all. There's no sleep at the end of the loop where I feel like an LLM…

"the code is not quite detail oriented enough to be AI", times are changing

Ehh, AI makes plenty mistakes but they have a different vibe to it.

In my mind an AI would do something the most popular way even when that's not appropriate.

A human might do things in an unpopular way even when that's not appropriate.

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

#65

P ./cool.sh: line 31: bc: command not found ./cool.sh: line 34: bc: command not found ./cool.sh: line 37: bc: command not found E ./cool.sh: line 31: bc: command not found ./cool.sh: line 34: bc: command not found ./cool.sh: line 37: bc: command not found Very wow. Shame they assumed everyone has "bc"...

You are fun.

Are we really at the "redditor insult" type comments stage of HN now? There is nothing wrong with saying a piece of code is broken.

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

#66
post #23

P ./cool.sh: line 31: bc: command not found ./cool.sh: line 34: bc: command not found ./cool.sh: line 37: bc: command not found E ./cool.sh: line 31: bc: command not found ./cool.sh: line 34: bc: command not found ./cool.sh: line 37: bc: command not found Very wow. Shame they assumed everyone has "bc"...

Which distro are you running? Perchance did you run the shell script in alpine Linux (docker)?

Debian.

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

#68
post #43
post #9

I thought it was funny that the author used a variety of OCR tools with mixed success before spending a lot of time manually fixing up the output from the best one, rather than just typing it in

I ran it through paddle paddle OCR and it flawlessly did it. Google's OCR through my phone's Google lens had also worked at getting a very good extraction but not 100% correct. Definitely would spend less time fixing it than hand copying. IDK what the author was using but I feel like he could have shared how his OCR attempt went, but I am thinking he tried some naive OCR tools.

Author here - that's a good idea actually, it shouldn't be too hard to compare the various attempts. The tools I used were whatever my Android built-in is (likely Google Gemini, but I can't tell whether this is something Samsung has replaced in OneUI); tesseract; tesseract with various tweaks and charsrt restrictions; Claude; and finally, manual fixes based on disagreements between all the previous.

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

#69
post #9

I thought it was funny that the author used a variety of OCR tools with mixed success before spending a lot of time manually fixing up the output from the best one, rather than just typing it in

(Author here) Yes I agree. It was a fun side-quest though. Reminds me of https://xkcd.com/1205/

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

#70

My old colleague had one with a Go program[0] which I always thought was quite cool. [0] https://github.com/GL-Kageyama/UNIQLO_Akamai_T-shirt_Code

I wasn’t sure if you meant a Go solver or Go the language. Would be fun if someone wrote a Go program in Go
Post reply on HN