TransWikia.com

How to 'hack' the chat box in an online game

Reverse Engineering Asked by FraserOfSmeg on February 25, 2021

First and foremost, this is really just a UI hack, nothing that would give you an unfair advantage over an opponent.

I play an online game that is predominately played by Spanish speaking players. I’ve got a really simple lookup type program that swaps out Spanish words for English so I work out what they are saying, so I can communicate with my teammates. I currently do this by typing whatever I understand from the game window into another window I have open (my program), it’s cumbersome and messy and I’d like to just have this done automatically, ideally in the UI of the game.

Is there a solid plan I can use to go about finding out how to do this. I’ve tried to find memory addresses of the text, but this seems to change every execution and doesn’t even maintain messages as more messages are received.

Any help or advice would be great; also any questions please feel free to ask, I’m not sure what information is appropriate to share.

2 Answers

Yeah, there are multiple ways that this can be accomplished, depending on the type of game.

If the network packets of the game aren't encrypted you could probably sniff the traffic for the "chat message" network.

You could do a graphics library injection and replace the chat message routine with yours. I would imagine it would be similar to the process you would follow for developing a wall hack (chams)... First figure out what graphics library the game is using. Then determine which function routine is being used for writing the text. Hooking your own graphics calls is probably the approach that I would take considering graphics library API is pretty well documented.

Which game is it?

Another thing you could probably do is just use a text parser to read the chat box with python or whatever language.

Answered by codecustard on February 25, 2021

One approach is to use DLL Injection. You would have to identify the functions that prints chat, then you can install a hook and make it process a different text.

Here's an example of this: https://github.com/ur0/DotATranslator

Answered by Daniel Sloof on February 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP