A fun, harmless Python script designed to create momentary chaos on a Windows PC by flooding the screen with command prompts and pop-up images before initiating a system shutdown countdown.
- Custom Message: Displays the message
"Brace for impact twin"both in the terminal and in the official Windows shutdown alert. - Screen Flood: Opens multiple command prompt (CMD) windows simultaneously.
- Image Barrage: Opens a specific image URL repeatedly in the user's default web browser or image viewer.
- Standalone Executable: Can be compiled into a single
.exefile using PyInstaller, making it easily deployable on any Windows machine without requiring Python installation.
You can easily adjust the prank parameters within the prank_shutdown.py file:
# --- Configuration ---
message = "Brace for impact twin"
delay_seconds = 10 # Time before shutdown executes (in seconds)
number_of_pranks = 10 # Number of CMD windows and images to open
chaos_duration = 3 # Time to wait after chaos starts and before shutdown begins
image_url = "[https://imgs.search.brave.com/t-Yc0vaEDRHZqisMGcholqWBUX8xbGY-UdYKpM-qRbA/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9pLmltZ2ZsaXAuY29tLzQvZTlkNzAuanBn](https://imgs.search.brave.com/t-Yc0vaEDRHZqisMGcholqWBUX8xbGY-UdYKpM-qRbA/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9pLmltZ2ZsaXAuY29tLzQvZTlkNzAuanBn)" - Python (3.x recommended)
- PyInstaller library
Open your terminal or Command Prompt and install PyInstaller:
pip install pyinstaller- Save the Python script (the one with the flooding logic) as
prank_shutdown.py. - Navigate your terminal to the directory where you saved the file.
- Run the PyInstaller command to generate a single executable file:
pyinstaller --onefile prank_shutdown.pyThe resulting executable, named prank_shutdown.exe, will be located in a new folder called dist.
- For best results, rename the executable to something inconspicuous (e.g.,
Important_Notes.exe). - Double-click the file to execute the prank!
In the event of accidental execution or if the user needs to stop the countdown quickly, the shutdown can be immediately aborted using the Windows Run dialog.
- Press Windows Key + R to open the Run dialog.
- Type the following command and press Enter:
shutdown /a
(The /a flag stands for "abort")