Looking for a tutorial or just an answer

12/03/2013 21:26 RenFox#1
So I have been coding for a while and I want to get into coding my own bots stuff like that I want to know like what languages people are using or like what the difference is between using auto it and other also how bots that inject vary from pixel searching. anyone know of and English tutorial that would explain basic stuff like this? I see a ton of tutorials butthey are all in like german
12/03/2013 22:49 マルコ#2
Sow, yeah. Why do people use AutoIt? Because it is very easy to make simple bots with it. It's not a nice language. And surely not good for anything else than auto-mating something.
Alternatively you could use a language like C++, Delphi,... whatever. They are can-do-everything languages. You could also make a clientless server application on BSD as a bot.

Using pixels is a easy way to read what's on the client. It should be a fast and simple way to see results. Problem is that people tend to have different resolutions, and that way pixel search will be a complicate matter.
But you should preferably work with memory and sockets. That way, you can make things like a clientless bot and you are independent of the resolution or the window state.

Now as for tutorials. I'm quite surprised, because I am totally sure that most tutorials are in English!
But to be blunt, I don't think that just using a tutorial is a good idea. Why? Because you just don't need a tut in order to make a bot. Of course, you need to know how to use the language.
Let's say you want to make a client-dependent bot which reuses the game's sockets. You read/write the game's memory to control the game.
For this, you will probably need WinAPI (in most cases, games are for Windows..).
So what you do is read the memory, use some algorithms and write to the memory or send key states to the game so that your character does exactly what it is supposed to do.
You can proceed in the same way with any other type of bot.
This is a basic principle: input (fetch data from game/server), process, output (write to game/server)
12/06/2013 01:38 マルコ#3
Quote:
Originally Posted by RenFox
Hello,

You were very helpful and answered my question the other day about programming and I have one more question. Is there a program i can use to open bots that I have like nhc bot or diablo bots stuff like that so I can just learn?

Thanks,

Hey there,

why not ask that question in your thread?
Well, but to simply answer it: bots are computer programs - just like games. They do not hide anything from you. You can read what the computer will execute.
Depending on how the compiler worked, you will have byte code or machine code. There is a slight difference between those two.
Let's say you have a bot written in C++ (without .NET) which will result in machine code. There are decompilers and debuggers like OllyDbg or IDA to make the machine code readable. These programs will always give you ASM (IDA tries to translate it to C as good as possible).
As for byte code, any .NET language will do. So e.g. C#. They are in general way easier to "decompile" and give you high-level source code. Well, if it weren't for obfuscators, which will fuck up everything pretty badly. You will have to de-obfuscate them and then you could for example use the .NET Reflector. Same goes for Java.

Unfortunately, I do not know much about reverse engineering machine code myself. And I know even less about playing around with byte code. So you will either have to google it or ask the community.

What I can suggest either way is to take a look at Lena's reverse engineering guide (I also used that to learn a lot) and after that download crack-me applications to get some exercise.
But you see, when you learned how to reverse... why would you want to take a look at crappy ASM code? It will not help you at all. And you will be able to make your own bots and hacks just like that.
Taking a look at Cheat Engine will help you to learn about retrieving base pointers for certain values (like health, mana, stamina,...). And all you then have to do is make an algorithm which is able to make decisions based on those values (For example: when do I send the key event for healing?)
I once asked Ende! what game I should use to practice hacking. He told me to meddle with WoW. I think, making a working bot for that game (maybe use a private server) could be a good start. Unfortunately, I haven't tried that until now (to many other projects), but that is where I would start.