Author Topic: Coding Help needed for ESP and Aimbot  (Read 406 times)

0 Members and 1 Guest are viewing this topic.

Risal

  • Poptart
  • *
  • Posts: 6
    • View Profile
Coding Help needed for ESP and Aimbot
« on: August 18, 2018, 08:36:58 pm »
Could need some help from MrMedic or someone other experienced. I am currently looking into updating the C# ESP by Frank. I know how to program (5 Years of Java Experience, 2 Years of C#) but I am new to C++ and especially assembler and RAM stuff. Right now I am reading tutorials and I guess I understand everything related to pointers etc.
However in his code he injects something into the assembler code of warband:
Code: [Select]


            decimal number = Convert.ToDecimal(0x02C85AE4);
            decimal sum = Convert.ToDecimal(0x14124);
            IntPtr address = (IntPtr)(0x49E45A);
            IntPtr address2 = (IntPtr)(0x6082F2);

            try
            {
                mem.WriteInt((int)sum, 0);
                MemorySharp sharp = new MemorySharp(Process.GetProcessesByName("mb_warband")[0]);

                #region ----ASM----
                sharp.Assembly.Inject(new[] { "JMP " + Convert.ToString(address2), }, address);

                sharp.Assembly.Inject(
                    new[]{
                    "mov ["+number+"],esi",
                    "PUSHFD",
                    "PUSHAD",
                    "PUSH EAX",
                    "mov EAX,["+sum+"]",
                    "CMP EAX,3200",
                    "JE "+Convert.ToDecimal(0x608323),
                    "add EAX,16",
                    "mov EDX,["+number+"]",
                    "mov ["+pointer+"+EAX],EDX",
                    "mov ["+sum+"],EAX",
                    "POP EAX",
                    "POPAD",
                    "POPFD",
                    "JMP "+Convert.ToString(address+0x06),
                    "mov ebp,0",
                    "mov ["+sum+"],ebp",
                    "mov eax,["+sum+"]",
                    "JMP "+Convert.ToDecimal(0x608307),
                },
                        address2);
                #endregion
            }
            catch (Exception e)
            {
                mem.CloseHandle();
                MessageBox.Show("Memory injection failed exiting programming please consult the programer, yes me Frank. Also I am going to print out the error message not like I am going to understand it");
                MessageBox.Show(e.Message);
                Environment.Exit(0);
            }

I don't quite understand why he does it and where it is injected (I guess assembler offsets changed)?
And I will be watching some more tutorials and reading stuff however I would be pleased if you could tell me how to easily find the start of the list of all players

Oh and I also have the static address for the main player team: mb_warband.exe+9E800C however when I subtract the old offset of 0x7b4 I do not end up at the main player base, at least structure dissect does not show it. What am I doing wrong?
« Last Edit: August 18, 2018, 10:11:14 pm by Risal »

EternalAgonu

  • Intentional Cheater
  • **
  • Posts: 34
    • View Profile
Re: Coding Help needed for ESP and Aimbot
« Reply #1 on: August 19, 2018, 01:52:31 am »
I'll get help for you but when you finish updating it send me the version. :icon_thumbsup

Seb

  • Relentless Teamkiller
  • **
  • Posts: 72
    • View Profile
    • Aimjunkies.com
Re: Coding Help needed for ESP and Aimbot
« Reply #2 on: August 19, 2018, 01:52:46 am »
What am I even looking at.

First of all, I really wouldn't use C# for any sort of memory modification. Look into using C++ load your own library into the game so that way you can interface with the game/engines functions and use them to your advantage. There are functions which only pass the localplayer and there is a static variable which holds it, but either way you will need to iterate through the entity loop. (Hint: The game uses a deque to store and sort entities)

Risal

  • Poptart
  • *
  • Posts: 6
    • View Profile
Re: Coding Help needed for ESP and Aimbot
« Reply #3 on: August 19, 2018, 02:24:16 am »
What am I even looking at.

First of all, I really wouldn't use C# for any sort of memory modification. Look into using C++ load your own library into the game so that way you can interface with the game/engines functions and use them to your advantage. There are functions which only pass the localplayer and there is a static variable which holds it, but either way you will need to iterate through the entity loop. (Hint: The game uses a deque to store and sort entities)

You are looking at:
http://tkc-community.net/forum/index.php/topic,15224.0.html

C++ is really annoying though. To load my own library into the game I have to read the assembler code though, right? So you are saying that I shouldn't use the memory at all?

Seb

  • Relentless Teamkiller
  • **
  • Posts: 72
    • View Profile
    • Aimjunkies.com
Re: Coding Help needed for ESP and Aimbot
« Reply #4 on: August 19, 2018, 03:21:56 am »
What am I even looking at.

First of all, I really wouldn't use C# for any sort of memory modification. Look into using C++ load your own library into the game so that way you can interface with the game/engines functions and use them to your advantage. There are functions which only pass the localplayer and there is a static variable which holds it, but either way you will need to iterate through the entity loop. (Hint: The game uses a deque to store and sort entities)

You are looking at:
http://tkc-community.net/forum/index.php/topic,15224.0.html

C++ is really annoying though. To load my own library into the game I have to read the assembler code though, right? So you are saying that I shouldn't use the memory at all?

What are you talking about?
No, you dont need to read the assembler code, I only use inline assembly for one thing in my cheat and you are nowhere near that point. I'm saying make a library which you can inject/load into the game at runtime.

Risal

  • Poptart
  • *
  • Posts: 6
    • View Profile
Re: Coding Help needed for ESP and Aimbot
« Reply #5 on: August 19, 2018, 05:02:17 pm »
What am I even looking at.

First of all, I really wouldn't use C# for any sort of memory modification. Look into using C++ load your own library into the game so that way you can interface with the game/engines functions and use them to your advantage. There are functions which only pass the localplayer and there is a static variable which holds it, but either way you will need to iterate through the entity loop. (Hint: The game uses a deque to store and sort entities)

You are looking at:
http://tkc-community.net/forum/index.php/topic,15224.0.html

C++ is really annoying though. To load my own library into the game I have to read the assembler code though, right? So you are saying that I shouldn't use the memory at all?

What are you talking about?
No, you dont need to read the assembler code, I only use inline assembly for one thing in my cheat and you are nowhere near that point. I'm saying make a library which you can inject/load into the game at runtime.

Oh so there is a good way to read the program code in anyhting but Assembler to find out about functions and their behaviour? I always thought there is no  real Decompiler for c++ yet.

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: Coding Help needed for ESP and Aimbot
« Reply #6 on: August 19, 2018, 11:32:24 pm »

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*

Seb

  • Relentless Teamkiller
  • **
  • Posts: 72
    • View Profile
    • Aimjunkies.com
Re: Coding Help needed for ESP and Aimbot
« Reply #7 on: August 20, 2018, 08:27:17 am »
I use IDA for all of my static disassembly, and then you can use CE or ollydbg for runtime debugging

Risal

  • Poptart
  • *
  • Posts: 6
    • View Profile
Re: Coding Help needed for ESP and Aimbot
« Reply #8 on: August 20, 2018, 05:55:43 pm »
I use IDA for all of my static disassembly, and then you can use CE or ollydbg for runtime debugging

Thanks. As I already said I am new to all the assembler stuff and I saw the functions that MrMedic posted however I am not able to find them inside any decompiler or debugger. I tried adding them with the base offset of mb_warband resulting it 08xxxxx but they only go up to 07xxxx in the debuggers. And strangely stuff like x64dbg or ollydebug don't show any functions but some uninteresting imports. Inside IDA pro all functions are called subxxx which is understandable because usually function names are not sustained when compiled (afaik) however I am unable to find the offsets provided by MrMedic there either.
 I can understand if you guys don't want to spend all your time explaining everything but it would be helpful if I could maybe get a video reference explaining all of this stuff.

Thanks in advance.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Coding Help needed for ESP and Aimbot
« Reply #9 on: September 06, 2018, 11:57:19 pm »
attach your debugger to the process while it is executing in memory.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157