I'm using python for a school project and i want to know how create a simple virus with simple this effect
i tried this: How do I use shutil to make a python file copy itself after doing a calculation?
and this: https://stackoverflow.com/questions/1186789/what-is-the-best-way-to-call-a-script-from-another-script
then i didn't know how to run the second copy
the code example(I WANT TO RUN THE COPY FOR ONCE)
import os
import shutil
##############
print("hello world")
shutil.copy(__file__, "copy.py") # Copies the file
exec(open("copy.py").read())# Executes the copied file if it is in the same directory as the other file