How To Create A Software To Block USB Ports


Virus is a program which infects computer and malfunctions it. Here I'm going to tell you about the program of c/c++ which will block all the USB ports of a computer. When we run .exe file of this program,then all the USB ports will stop responding/blocked. Whenever we connect pen drive with our computer USB, it will not be connected. Your OS will not be able to detect the Pen Drive.
Code is written to directly change the USB registry option and change its key. Not going to explain about registry in detail now, later will explain. You can do this by registery also by following the path, press start button + R->type "regedit"->HKEY_LOCAL_MACHINE->SYSTEM ->CurrentControlSet->Services->USBSTOR ->from right panel double click on "Start"->change value to "4".
Creating usb pendrive Virus :-
#include<stdlib.h>
void main()
{
system(“reg add HKEY_LOCAL_MACHINE\\SYSTEM \\CurrentControlSet
\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f”);

}


So subscribe our Blog to kick off your day with our free stuff.

Labels: