How to make a Self Replicating Virus?

 

Molly_Virus

Note: This “molly” virus works in the following environment only because these type of viruses can be dangerous to system so we test those viruses in the given suitable environment only. 

1. We have to create an environment to develop and test it. This type of viruses could be very dangerous because it consumes the memory resource of the system.

                                                      (test environment)

/home/friday/ECS_Assignmnet/test/ is the main directory where all the files resides. The folder test has multiple recursive folders test1, test2, test3 and those folders has “.sh files” like “B.sh”, “C.sh”, “D.sh” respectively.

Here I also create a write.txt file to show that molly virus only attack on “.sh file”

This molly virus attack “.sh files” and create multiple recursive folders infinitely.

2. The “molly” virus written in bash script. All the code contains by the “molly.sh” filename. The molly virus contains two section.

A) First section search recursively the .sh files in the given test environment and target other shell scripts(“.sh” files).

B) Second section if for to create multiple recursively directories infinitely.

 

(Molly_Source_Code)

3. The next screenshot shows that other .sh files contains some bash code.


These files are in all different directories. Molly search those files and append it’s code into them. In this way we create multiple replicas of the same virus file.

4. Now It’s time to run the molly virus first time and it will create multiple replicas by altering the .sh files.

Note: when this virus file runs it will not show anything on the screen. To stop the execution must press Ctrl+c.


5. Now we check the other .sh files. Those file would be altered because of the molly virus.


(B.sh file)

                        

(C.sh file)

(D.sh file)

6. It will also create the multiple folders in the directory.

 

 

 

Comments

Popular posts from this blog

HOW TO WATCH ONLINE FREE MOVIES & TV-SERIES ?

HOW TO GET INFORMATION ABOUT ANY WEBSITE

HOW TO CREATE A BLOG?