M
M
Maxim2020-08-25 12:50:37
C++ / C#
Maxim, 2020-08-25 12:50:37

How can I change RAM values ​​in c/c++?

How can I read and write data to RAM using c/c++ on *unix systems?
What are there for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2020-08-25
@Adamos

char *pointer = /* address in memory */
*pointer = 1;
According to the language standard, you have written this value to the memory location at this address.
According to the realities of modern programming - where did you get into? who gave you this memory? segfolt to you, not a bagel!...

M
mayton2019, 2020-08-25
@mayton2019

Any value cannot be changed. Only those that belong to your process. This is the cornerstone of info-security for modern wasps.
For its memory - this is work with a pointer. You allocate a piece of memory for yourself through mallox / new and change what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question