title: How could I access the memory of a running program?
body: <p>Presuming I have a program in C:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;time.h&gt;
  
  int main()
  {
      int a = rand() % 1000;
      return 0;
  }
  </code></pre>
  
  <p>How can I find the value of "a" without printing it on the console, but by accessing, with a linux terminal command, its address to read the value from it?</p>
  
  <p>Or generally, how can I map all the written values of a binary without seeing its implementation (like a "blackbox")? </p>