Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "random bytes"
Oh man, when a simple prank goes out of control.
Tl;dr incompetent IT don't know their shit and want to shut down server because of a simple batch file.
Long story time;
For the last day at my side job I thought it would be funny to run a small batch script on one of the PC's (that is not even connected to the internet...).
All it did was echo some random russian characters to the screen, ping itself for a couple of bytes, and echo "success" at random intervals. Ofcourse in the classic green/black CMD...
Pressing any key would stop this, and I didn't do anything to prevent it from being closed/stopping.
Now this was running for a couple of minutes when a colleague spotted it and completely freak out, literally. He ran to the floor chief, who took a look, freaked out, and called in IT...
Now our IT section isn't exactly what I'd call competent, as I've ranted about before... So he turned up, failed at comprehending what was going on, told everyone to not touch the computer and directly went full fucking retard and wanted to shut down the entire server.
OhFuck.jpg this is escalating quicker than I thought.
Fortunately for him he didn't have the rights to do that himself, so he ran off to call his chief to do it.
My floor chiefs knows I do also do programming so he came up to me asking if I could take a look at it to figure out it was doing, so I walked up "took a look" and told him I can probably stop this. Hit the enter key to stop it, deleted the batch file and shut off the computer.
Told my chief this should work as a temporary solution but IT should do a full check of their systems.
Fast forward a couple of hours and head of IT is still trying to figure out what happened and checking their systems.. luckily he wasn't dumb enough to actually shut everything down7
An experience that made me doubt (some) skills was when I tried for 3 days straight to find a way to share data over a win32 message. The event worked flawlessly, but the data payload always cointained random bytes.
A few weeks later I found an article about MemoryMappedFiles, which helped me solve it within half an hour.1
I'm going through a KhanAcademy course learning about cryptography. I learn better by doing, so I wrote a script. It shifts bytes up depending on a random int produced by a high entropy pseudo random number generator using a sha256 hash as the seed. I'm trying to find information on the flaws with this method, that lead us to create DES, and then AES.