If you enjoyed the first prank program, you might want to try another one. What about a hundred useless files.
So, this prank uses the file creation mechanism in a while loop.
To create a file, we can use open('filename.txt','w'). This creates a file called 'filename.txt'
Now if we throw this inside a while loop or a for loop, a load of files will be generated.
This will create a hundred (change the number according to your wish) text files in the place where the python file is stored. Name the file something that the victim would execute, like game.py or clickthis.py and watch with glee as he/she tries to clear all the unwanted files in his/her pc.
O/P:
This is just 27 of the hundred files that will be generated. Since I executed the file inside a folder, I could just delete the folder and be done with it. But put the file in the victim's desktop and you can have a fun time.
If you want to check out the first prank program: PRANK PROGRAM (thepygrammer.blogspot.com)
Comments
Post a Comment