3 ms·
Isn't this whole idea of injecting code on modern systems doomed because of write xor execute (W^X, NX), which is hopefully enabled?
by weinzierl 5y ago
Isn't this whole idea of injecting code on modern systems doomed because of write xor execute (W^X, NX), which is hopefully enabled?
- liftm 5y agoIf you can allocate memory in a foreign process, I'd guess you could also change the permissions on that memory… So write first, then change to executable. (VirtualProtectEx looks like it would do that. Never used winapi, not sure.)