This post will guide you on how you can use your registry editor to disables or blocks the USB ports on a system. This is deemed necessary in other to protect you system from USB password hacks.
However, you may wright a very simple C program that can serve as a virus to disable or enable the use of USB drive on a system.
NOTE: This hack works 100% on XP and may work on vista especially when you implement it as a program.
If you succeeded in any of the above hacks, you can take care of USB password hack and necessary use of USB Devices on your system.
1. Through the use of notepad:
(i) To disable USB Devices, copy and paste this in notepad:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000004
Save it with the name DisableUSB.reg
Locate to where you save the file and double click it a pop up dialog appear, click yes, another pops up, click OK. You are done, try using any USB Device, your system will not recognize any USB Device now. Yo! Do not be afraid, this is how to enable it.
(ii) To enable USB Devices, copy and paste this in notepad:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000003
Save it withe the name EnableUSB.reg and follow same process as above, now you system can recognize USB Devices.
2. For those who are familiar with programing, this is for C programing. You can also use other languages.
(i) To Disable USB Devices, copy to compile and run this program in C:
#include
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}
(ii) To Enable USB Devices, copy to compile and run this program in C:
#include
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
}
Once you are done you can double click the compiled program and it execute.

No comments:
Post a Comment