I will show how to create a simple virus that
disables/blocks the USB ports on the computer (PC). As usual I use C programming language to create this virus. Anyone who has the knowledge of C, can easily understand the working of this program.
1. Download the USB_Block.rar file on to your computer.
2. It contains the following 2 files.
- block_usb.c (source code)
- unblock_usb.c (source code)
3.Compile this Program in C. Upon compilation of block_usb.c you get block_usb.exe which is a simple virus that will block (disable) all the USB ports on the computer upon execution (double click).
4. To test this virus, just run the block_usb.exe file
and insert a USB pen drive (thumb drive). Now you can see that your pen
drive will never get detected. To re-enable the USB ports just run the unblock_usb.exe (you need to compile unblock_usb.c) file. Now insert the pen drive and it should get detected.