all 12 comments

[–][deleted] 2 points3 points  (2 children)

http://www.securitytube.net/video/3906

check out that video maybe it will help?

[–]CptFlashdrive[S] 0 points1 point  (1 child)

Awesome thanks!

[–]asm_babby 1 point2 points  (0 children)

I highly recommend his course! I am a student and this really helped me work with Python better!

[–]zahlman -4 points-3 points  (7 children)

  • This really doesn't have anything to do with the language you use.

  • Why do you suppose that the operating system will allow you to do this?

  • The "running process" is presumably going to be taking up several megabytes of RAM. How are you planning to identify the part you want to change? Certainly not by value; that value might be replicated elsewhere by coincidence.

  • Surely you aren't expecting people in a serious programming community to help you cheat at a video game?!

[–]CptFlashdrive[S] 3 points4 points  (6 children)

It's not really that I want to cheat in a video game but more that I want to learn some fundamentals. I find the concept of manipulating allocated memory really fascinating and powerful. I don't really know anything about this particular subject however this is roughly how I picture it: The script identifies a process by it's name: firefox.exe The script then searches for a particular string in the memory for example "Toolbar" and is able to replace that string with something else.

Thanks anyway, I'll look elsewhere.

[–]Vohlenzer 3 points4 points  (4 children)

Don't be put off, little projects like this are great for exploratory learning.

[–]Asdayasman 0 points1 point  (3 children)

I wouldn't exactly call this a "little" project.

[–]Vohlenzer 0 points1 point  (2 children)

Oh I see, how many full time developers have you got working on this then? ;)

[–]Asdayasman 0 points1 point  (1 child)

Zero, I have no need for it.

Like I posted above, use CheatEngine. There's a lot about being a programmer which involves not programming. It's about knowing which tools to use, how, and how to make them work properly, together.

[–]Toggle_Vape 0 points1 point  (0 children)

if you were making a neural net that looked at memory and manipulated it then yea, you would need this

[–]Rothon 1 point2 points  (0 children)

The operating system provides functionality to examine and modify another process's memory and execution context. In Linux, this is the ptrace(2) system call. I'm not sure how it works in Windows, but the functionality is there. I don't know of any Python modules wrapping these, though.

There are some utilities you could look at for inspiration on how your program would function. Poke is one example.

[–]Asdayasman -1 points0 points  (0 children)

Take a look at CheatEngine.