Worm is type of malware that replicates itself and other files to consume spaces in our hard drives. You may find your drives or partitions get full without any visible reason and that might happen because of a worm. A Worm virus is different from a computer Virus. Typical viruses only infects files. Worms replicates files and keep the duplicates out of sight (as hidden files). We will need two modules to write a worm virus in python. Here, os is the most important module. We will utilize it to list all files and directories alongside retrieving the absolute paths. Shutil is used to copy file contents. There are obviously other ways to do it, however, I chose to do it using shutil.copyfile() method. I have commented each line of code for better understanding.
-
Notifications
You must be signed in to change notification settings - Fork 0
officialjwise/Worm-virus
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published