dekadentno / PranksterShot

📸 Script for catching unsuspecting colleagues when they try to poke around your unlocked laptop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PranksterShot

This Python script is a playful project created to catch unsuspecting colleagues when they try to poke around your unlocked laptop. When run, it patiently waits for any mouse or keyboard activity and, when detected, it springs into action by quickly capturing webcam shots. It's a fun and harmless way to remind everyone about the importance of computer security.

Getting Started

These instructions will guide you to run this script on your local machine. The script has been tested on Ubuntu Linux with the MATE desktop environment.

Prerequisites

You'll need Python3 installed and pip, the Python package installer. This script also requires the cv2 and pynput packages. A requirements.txt file is provided to install these packages.

Installation

  1. Clone the repository:
git clone https://github.com/dekadentno/PranksterShot.git
  1. Go into the project directory:
cd PranksterShot
  1. Install the required Python packages:
pip install -r requirements.txt
  1. Make the script executable:
chmod 755 prankstershot.py
  1. Move the script to /usr/local/bin to be able to run it with a single command:
sudo mv prankstershot.py /usr/local/bin/prankstershot

Usage

To run the script, simply open a terminal and type:

prankstershot

After initiating the script, you will have a brief window of 5 seconds to minimize the terminal and make your desktop look less suspicious before walking away from your laptop. Remember to set a password on your screensaver; without it, the prank won't make as much sense.

The script will then wait for any keyboard or mouse activity. When such activity is detected, it will start taking pictures with the webcam and save them to the designated folder. The script will stop after capturing a predetermined number of pictures and will lock the screen, requiring a password to unlock.

Caution

Remember, this is intended for fun and should be used responsibly. Always respect people's privacy.

About

📸 Script for catching unsuspecting colleagues when they try to poke around your unlocked laptop

License:Other


Languages

Language:Python 100.0%