DEV Community

Manjiro
Manjiro

Posted on

We'll write a little virus with python (Learning)

Our virus creates unlimited folders. If the user tries to delete it, it will not be deleted at all.
Let's create our main.py file:
We will use from OS module
main.py

import os

while True:
  try:
   os . mkdir("Audios")
   os . mkdir("Images")
   os . mkdir("Wallpapers")
  except: 
   pass
Enter fullscreen mode Exit fullscreen mode

Thank you!
Sorry for mistakes it's my first posting

Top comments (0)