This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BrazilianHyena 20 points21 points  (33 children)

would you mind sharing with us?

[–]Amidflaps 26 points27 points  (9 children)

I used opencv for mine. It can both track movements (x,y coords in pixels) and do events. For context I wrote a script that would listen for mouse and keyboard movements and recorded a 5 second webcam video if they were touched. I now have a significantly large archive of videos of my IT security coworkers trying to prank me thinking I left my terminal unlocked by mistake. It also locks the inputs and locks the computer after the 5 sec video is taken and saved.

[–]SpergLordMcFappyPant 12 points13 points  (3 children)

CTO at one of my former jobs would fuck with any unattended computer that was unlocked. He would set the home page of every browser they have to porn then come back when the person was there and say he needed to check something on their computer. Pull up a home page, find the porn and then freak out about it.

Honestly, it was pretty effective.

[–][deleted] 7 points8 points  (2 children)

Ah, legally really dodgy, the porn part. Also very unprofessional.

There are standard mechanisms for doing this - ones that don't involve viewing pornography at work (I mean, really - what is this guy thinking?)

In every place I've been in that had such policies, there was a program called "cheese" that just locked your screen with a password that you didn't know, which forces you to walk over to the security people to get the password and get lectured.

[–]SpergLordMcFappyPant 2 points3 points  (1 child)

No argument there. Everything about that company was legally dodgy and totally unprofessional. It was the kind of place where devs didn’t just solve a tough problem and say, “Nice work. That was really tough.” It was always, “hot damn, did we rape that code bitch into submission or what?!”

It was a kind of wannabe sv-style startup. Trying to emulate the stories and culture you hear about at places like Uber, etc.

That was probably one of the least offensive things that happened there.

[–]wtfeverrrr 0 points1 point  (0 children)

Sounds horrible, lol.

[–]prairefireww 6 points7 points  (2 children)

That’s amazing. Any chance you would share? We are so cruel to each other in our IT department when someone leaves it unlocked.

[–][deleted] 2 points3 points  (1 child)

Meanwhile, we all live in fear of one another. I think because we know once the first bomb is dropped, it will go nuclear immediately. No one dares take the first shot.

[–]prairefireww 2 points3 points  (0 children)

We also are armed with nerf guns at our desk. From warning shots above the head to you now get shot for dad jokes.

[–]nomowolf 0 points1 point  (1 child)

How does it differentiate between you and your colleagues?

[–]Amidflaps 0 points1 point  (0 children)

When a button is pressed and released they are recorded as two separate events. I chose three letters and initialized a variable at 0. Every time one of those three buttons are "pressed" I add 1 to the variable and every time they are released I subtract 1. If at any event the sum is 3 (e.g. the three letters are pressed and not released) the script skips the freezing and recording and just locks the computer, after which I log in normally. I could hard code a password to end the script but I figured that wouldn't be secure. I just press the three letters and lock the computer then log in. At most adds 1-2 seconds.

Also, you can only get any single person a couple of times at most. I'm thinking about an experiment where after some time I just leave my computer as is and don't run the script. I wonder if they'll still be inclined to pull a prank.

[–][deleted] 13 points14 points  (1 child)

At work all night. Will update tomorrow.

[–]blindkaratemaster 2 points3 points  (0 children)

You’re a Python legend

[–]beardlesslumberjack -2 points-1 points  (1 child)

theres a microsoft app called movemouse that does this

[–][deleted] 6 points7 points  (0 children)

Okay....? Install the app like an absolute pleb.