β οΈ This script is intended for educational and prank purposes only. Do not use it on someone else's computer without explicit permission.
This is an old Python script I wrote about 4 years ago β back when I was just having fun experimenting with how file systems work.
The idea?
Whenever a USB flash drive is plugged into a machine, the script walks through the directories and copies various document types (like .pdf, .docx, .txt) into a shared folder on the system. It also attempts to delete images and video files afterward, just for prank purposes.
I repeat: this was a joke. Don't take it seriously.
- Detects all available drives (e.g., C:, D:, E:)
- Picks a specific drive (
drives[2]) to scan - Copies files with the following extensions:
.txt,.pdf,.doc,.docx,.odt,.ott,.rtf,.uot,.dic
- Places them into:
C:/Users/Public/ortak/... - Then tries to delete:
.jpg,.jpeg,.png,.bmp,.mp4
- If any error occurs, it waits 15 seconds and retries again in a loop.
- β Do NOT use this script on any system you do not own or have permission to test.
- βοΈ Unauthorized access to or manipulation of files can be illegal.
- π This script is kept here as an archive to reflect my learning journey as a developer.
Because every developer starts somewhere β and sometimes, we start with chaotic code, bad indentation, and ambitious pranks.
This is one of those moments.
Seriously. I mean it.