Join us at IRC!
Capitalism is an Island of wealth in a sea of poverty
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 41
Web Spiders: 16
Guests Online: 38
Members Online: 3

Registered Members: 70173
Newest Member: TheGreek
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Disable USB

DMWM
Member



Posts: 28
Location:
Joined: 26.12.07
Rank:
Uber Elite
Posted on 13-02-10 14:11


A small simple tool that disables USB drives in C++.

Here is the basic code that disables the USB.
Simple registry editing

DWORD res;
DWORD dwVal1 = 4;
HKEY hKey;
res=RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Services\\UsbStor", 0, KEY_ALL_ACCESS, &hKey); if(res!=ERROR_SUCCESS)
{
MessageBox(0,"Error Disabling USB","Error",MB_ICONEXCLAMATION|MB_OK );
}
res=RegSetValueEx (hKey, "Start", 0, REG_DWORD, (LPBYTE)&dwVal1 , sizeof(DWORD));
if(res==ERROR_SUCCESS)
MessageBox(0,"Disabling USB Done","Success",0);


Here is the link to the tool
http://www.sendspace.com/file/cwzt9z
rahules00
Author

RE: Disable USB

korg
Admin from hell



Posts: 1704
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06
Rank:
The Master
Posted on 14-02-10 01:38
I've had that some reg. edit in a batch file for ever. Why are you posting someone Else's work BTW.



I deal in pain, All life I drain, I dominate, I seal your fate.


Author

RE: Disable USB

Compromise
Member

Posts: 224
Location:
Joined: 11.11.09
Rank:
Moderate
Warn Level: 30
Posted on 14-02-10 04:04
I have reasons to believe DMWM's account is hacked. I urge an administrator to take a look at this matter.


CrazySpai
minecraft.net
Author

RE: Disable USB

DMWM
Member



Posts: 28
Location:
Joined: 26.12.07
Rank:
Uber Elite
Posted on 14-02-10 06:09
Oh God..

Actually I was posting it for starters who did not know about it
on how to do it in a C\C++ program.

This was one of the small apps I wrote during my vacation
a few years ago (It was written by myself..if u have doubt.., plz mail me on that address or something :) .

I have submitted a Win32 API registry editing functions article
and thought that this thread would act as an example..
It was not accepted as it turned out blank on submission I was told.


Sorry if I had done something wrong...
my account is not hacked lol :)



Edited by DMWM on 14-02-10 06:33
rahules00
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.