C programming language is very useful in gaining access to system softwares and information. Keeping this view in mind or rather to say using this ability of C language I have created a virus program which is able to gain access to registry and disable USB ports. Here I have used the system function to disable USB ports.
The C code to block USB ports -->
#include<stdio.h>
void main(){
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}
The C code to unblock USB ports -->
#include<stdio.h>
void main(){
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
}
The C code to block USB ports -->
#include<stdio.h>
void main(){
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}
The C code to unblock USB ports -->
#include<stdio.h>
void main(){
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
}
No comments:
Post a Comment