News for hackers. Stuff that matters.
Re:Python plays Grand Theft Auto V by chatmasta on Wednesday April 19, 2017 @08:32AM (#14147237)
You should look into method swizzling/hooking, to hook into a c++ method called on every frame, and add a line of code to save the frame buffer to disk. You can either do this at runtime via some kind of code injection, or at compilation time if you can manage to re-sign the game.

I don't know much about c++ reverse engineering but I've done this when reversing iOS apps (and this is what "tweaking" means in the jailbreak community). The same concepts should apply.

The first step is obtaining a class dump (what it's called with iOS) that shows you all the header files and gives you the information necessary to understand what's going on in a debugger so you can determine which method to hook.

Edit: this should point you in the right direction - https://rafalcieslak.wordpress.com/2013/04/02/dynamic-linker...

Re:Python plays Grand Theft Auto V by floatboth on Wednesday April 19, 2017 @09:22AM (#14147487)
ReShade https://reshade.me is an open source DX9/DX11/OGL hook that adds shader effects… but also includes screenshot functionality! Should be possible to change that to streaming frames to your app…

(Just in general, doing this shouldn't depend on a particular game, it's a graphics API level thing)

Re:Python plays Grand Theft Auto V by cr0sh on Wednesday April 19, 2017 @02:55PM (#14150645)
Re:Python plays Grand Theft Auto V by anqh4 on Wednesday April 19, 2017 @08:37AM (#14147263)
This being such a popular multiplayer game, I'm sure the memory offsets of the position in the map/acceleration/etc are documented and you can just hook the process and read/write these
Re:Python plays Grand Theft Auto V by liotier on Wednesday April 19, 2017 @08:50AM (#14147334)
Or, because it is a popular multiplayer game (and thus prone to cheating), maybe some addresses are randomized & obfuscated.
Re:Python plays Grand Theft Auto V by anqh4 on Wednesday April 19, 2017 @08:55AM (#14147352)
Just google "gta 5 trainer". I'm sure there are dozens, but it's possible that none of them is open source.