Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

read memory outside a program without segment faults

Tags:

c++

memory

Is it possible to read memory addresses (real, not virtual) without throwing a segment fault? I wish to read all live, used memory addresses and log findings.

like image 240
NationWidePants Avatar asked Oct 31 '22 00:10

NationWidePants


1 Answers

It depends on the OS you are using.

It should be possible, but you will need to write a kernel driver to interface between the OS and the hardware, and this code will have to run as a driver (assuming Windows, since users cannot directly interface with physical memory).

like image 117
MKII Avatar answered Nov 09 '22 23:11

MKII