Sunday, January 3, 2016


The original post calls it hacking, which it isn't, it's scripting. Shell scripting in Linux can be an art form, though, and these are funny.

Here's the set-up and two of them. The coffee machine was likely a large vending machine that had an interface to accept credit cards and lots of options.
xxx: OK, so, our build engineer has left for another company. The dude was literally living inside the terminal. You know, that type of a guy who loves Vim, creates diagrams in Dot and writes wiki-posts in Markdown... If something - anything - required more than 90 seconds of his time, he wrote a script to automate that.

xxx: - scans the inbox for emails from "Kumar" (a DBA at our clients). Looks for keywords like "help", "trouble", "sorry" etc. If keywords are found - the script SSHes into the clients server and rolls back the staging database to the latest backup. Then sends a reply "no worries mate, be careful next time".

xxx: (and the oscar goes to) - this one waits exactly 17 seconds (!), then opens an SSH session to our coffee-machine (we had no frikin idea the coffee machine is on the network, runs linux and has SSHD up and running) and sends some weird gibberish to it. Looks binary. Turns out this thing starts brewing a mid-sized half-caf latte and waits another 24 (!) seconds before pouring it into a cup. The timing is exactly how long it takes to walk to the machine from the dudes desk.


Anonymous said...

Ok. That last one. Nearly spewed my own coffee over that. I've heard of that being done before but nothing like this. Too funny.

Ratus said...

Reminds me of this shirt.

Borepatch said...

What's wrong with Vim?