hacksysteam / HackSysExtremeVulnerableDriver

HackSys Extreme Vulnerable Driver (HEVD) - Windows & Linux
https://hacksys.io
GNU General Public License v3.0
2.42k stars 525 forks source link

Change IOCTL access from FILE_READ_DATA | FILE_WRITE_DATA to FILE_ANY_ACCESS #13

Closed sizzop closed 8 years ago

sizzop commented 8 years ago

I kept getting Access Denied when trying to send IOCTLs while testing the driver on Win7 x64 (built in Visual Studio 2015). Changing the IOCTL Access permissions seems to resolve the issue. Also tweaked the Functions because hex :)

Note that this PR does not include the compiled driver or compiled exploits with the changes. These modifications will make the IOCTLs different so compiling the driver from source and running the pre-compiled exploits (or vice versa) will fail.

Reference: https://msdn.microsoft.com/en-us/library/windows/hardware/dn613909(v=vs.85).aspx#define_and_handle_ioctls_securely

hacksysteam commented 8 years ago

@sizzop Thanks for the pull request. Also tweaked the Functions because hex :) I feel stupid ;-)