A self-replicating script that infects python files in the working directory
This is just an exercise. I do not condone use of malware, but I think it is fun to understand how malware works by implementing small features like self-replication.
I would like to thank NeuralNine for the explanation