开发者

Unsafe C# - Instantiate Pointer at lowest memory address and overwrite

开发者 https://www.devze.com 2023-01-08 19:06 出处:网络
Is it possible to instantiate a pointer using (unsafe) C# at any given memory address (which one would be the lowest?) and simply start overwriting the memory with continuous random data 开发者_开发问

Is it possible to instantiate a pointer using (unsafe) C# at any given memory address (which one would be the lowest?) and simply start overwriting the memory with continuous random data 开发者_开发问答until a PC crashes?

Could someone provide me with an example?


Until the PC crashes? No. Until your process crashes, then yes. But if you just want your process to crash, there's much easier ways of doing that then just overwriting random memory locations...

Windows uses a technique called virtual memory to make sure that any memory that you can access in process "A" cannot affect the memory that's being used by process "B" (unless you use explicit mechanisms to share memory). So one process cannot (normally) affect the memory in another.

0

精彩评论

暂无评论...
验证码 换一张
取 消