TheCruZ / kdmapper

KDMapper is a simple tool that exploits iqvw64e.sys Intel driver to manually map non-signed drivers in memory
MIT License
1.98k stars 501 forks source link

incorrect rand() usage #112

Closed boris768 closed 1 year ago

boris768 commented 1 year ago

https://github.com/TheCruZ/kdmapper/blob/5a49a4eec2abe0a4bd1f1b761a2733fed56a36aa/kdmapper/intel_driver.cpp#L122C76-L122C76

rand() returns some number from the range [ 0 , RAND_MAX ], RAND_MAX is compiler-specific value and msvc sets it as 0x7fff. Since the number 2348767 is greater than any number that rand can return, the action of taking the remainder of the division has no effect

TheCruZ commented 1 year ago

Thanks fixed...