Login Register






Simple Virus for USB ports filter_list
Author
Message
Simple Virus for USB ports #1
Code to block all USB ports

Code:
#include<stdio.h> void main() { system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f"); }

Code to unblock all USB ports

Code:
#include<stdio.h> void main() { system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f"); }
[Image: OilyCostlyEwe.gif]

Reply

RE: Simple Virus for USB ports #2
This has actually nothing to do with the C/C++ language. I suggest either posting it in the batch and shell scripting section or using WinAPI methods in actual C language to alter the registry and other system settings.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.

Reply