Abusing Fish (For Fun, Not Profit)
I have been very bored and then yesterday Remy showed me this. And doing so was a very bad idea, let me explain why.
Tankedcam is an interactive fish tank. Backed by a servo board and a front-end webpage, you're able to press buttons to control what happens inside the tank. The live demo on the website contains a few interesting things.
- Dino - Open/close the jaw of the dino. (I see it as a fish chomper)
- Air Stone - A jet of bubbles. (Bubble blaster right?)
- Flashlight - Makes things bright. (Blinds em -.-)
However, I cant press the buttons fast enough to chomp anything and the flashlight turns off after 10 seconds. But I can abuse the programming. The webpage sends GET requests when you press one of the buttons on the controller although a session ID and timestamp is needed. There is a very simple way to overcome this, i'll just use javascript mouse events to simulate the onclick event of the buttons.
Few minutes later I have a very simple script that rapidly 'clicks' the open and close buttons for the dino jaw. I add support for the other tank functions and Fish Hack Script was finished.
One thing I have noticed if I lower the timer the whole servo starts to play up, maybe it cant draw enough power. :(
Anyway, have fun the script is here (UPDATE: Right click save, nodereality referer has been blocked). If you catch a fish in the chomper I want a picture, there is also some snails that come out at night they move slower. I had fun throwing one of the top off the chopper.
awesome.
Comment by echo — Jan 4, 2010 1:06:37 AM | # - re