On Thu, Apr 30, 2020 at 6:58 PM Trig <edb1...@gmail.com> wrote:
>
> I'm attempting to read memory from another process.  I've installed 'Cheat 
> Engine' to do this, to make sure I'm pulling the correct value from the 
> address I'm attempting to; however, nothing I found works  I did find this 
> article:
>
> https://stackoverflow.com/questions/37358478/read-random-memory-locations-with-golang
>
> I don't believe that is correct though, as using the address of the location 
> I'm attempting to read doesn't result in a value anywhere near what 'Cheat 
> Engine' is reporting.  I've looked at the 'unsafe' and 'syscall' packages; 
> however, there's very little information on them.  Also, searched many ways 
> trying to find examples on how to do this.  I'm on a Mac (and use Linux).  On 
> Windows, I can do this fairly easy.  I can't seem to find anything that works 
> (not experienced at all in syscalls) for linux or darwin platforms.  Any help 
> appreciated.

In general Unix systems do not permit reading memory from other processes.

If you can figure out how to do it in a C program, perhaps using
ptrace, then it should be possible to figure out how to do in a Go
program.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWr6B%2BbuduY6tyJ4bt9D9VtoE%2BkQWgcoxJwUXivp2qUkA%40mail.gmail.com.

Reply via email to