Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Programming for Beginners

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Programming for Beginners
This section is for those just beginning in the programming world.
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

[C#] Trainer + addresses.
Old 03-08-2010, 06:43 PM   #1
Hacker Supreme

monster1777's Avatar

Join Date: Feb 2010
Location: Poland
Posts: 224
Reputation: 942
Rep Power: 38
monster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Game
Points: 2,910, Level: 5
Points: 2,910, Level: 5 Points: 2,910, Level: 5 Points: 2,910, Level: 5
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
[C#] Trainer + addresses.

Hey, I was making a trainer I understand the code but I can't get the fcking STATIC addresses. I get the ones from cheatengine but they change after game restart -.-

here's the code of my trainer:

PHP Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ProcessMemoryReaderLib;

namespace 
Trainer
{
    public 
partial class Form1 Form
    
{
        public 
Form1()
        {
            
InitializeComponent();
        }

        private 
void btnHP_Click(object senderEventArgs e)
        {
            
System.Diagnostics.Process[] myprocess System.Diagnostics.Process.GetProcessesByName("BFBC2Game"); // the process
            
ProcessMemoryReaderLib.ProcessMemoryReader preader = new ProcessMemoryReaderLib.ProcessMemoryReader();
            
preader.ReadProcess myprocess[0];
            
preader.OpenProcess();
            
int byteswritten;
            
int bytesread;
            
int value;
            
int pointerbase;
            
byte[] memory;
            
memory preader.ReadProcessMemory((IntPtr)0xStatic Address here4out bytesread); // can't get the static address -.-
            
pointerbase BitConverter.ToInt32(memory0);
            
pointerbase += 0xPointer// no idea where to get it from.
            
value 100;
            
memory BitConverter.GetBytes(value);
            
preader.WriteProcessMemory((IntPtr)pointerbasememoryout byteswritten);
        }
    }

So the problem is that I can't get the static addresses or offsets + pointers for my trainer. So if anyone can explain how to get the static offsets and pointers please post. I will be very grateful.

Last edited by monster1777; 03-08-2010 at 06:49 PM.
monster1777 is offline

Reply With Quote


Old 03-08-2010, 06:49 PM   #2
Broken Moderator

kolbybrooks's Avatar

Join Date: Aug 2006
Location: United States
Posts: 760
Reputation: 33567
Rep Power: 418
kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!
Points: 23,105, Level: 21
Points: 23,105, Level: 21 Points: 23,105, Level: 21 Points: 23,105, Level: 21
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
Just get a pointer to what you want to change?
kolbybrooks is online now

Reply With Quote

Old 03-08-2010, 06:51 PM   #3
Hacker Supreme

monster1777's Avatar

Threadstarter
Join Date: Feb 2010
Location: Poland
Posts: 224
Reputation: 942
Rep Power: 38
monster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Game
Points: 2,910, Level: 5
Points: 2,910, Level: 5 Points: 2,910, Level: 5 Points: 2,910, Level: 5
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
Quote:
Originally Posted by kolbybrooks View Post
Just get a pointer to what you want to change?
Well I need to get the pointer of that static offset... But I don't know how to get the static offset and then the pointer from there.
monster1777 is offline

Reply With Quote

Old 03-08-2010, 08:07 PM   #4
Posting Well

Absinth's Avatar

Join Date: Feb 2010
Location: Germany
Posts: 29
Reputation: 1188
Rep Power: 36
Absinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the world
You need to find some code which changes the value ingame, or you do a pointer scan in cheat engine, then you usually have a point to start from.
Absinth is offline

Reply With Quote

Old 03-08-2010, 08:08 PM   #5
Hacker Supreme

monster1777's Avatar

Threadstarter
Join Date: Feb 2010
Location: Poland
Posts: 224
Reputation: 942
Rep Power: 38
monster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Game
Points: 2,910, Level: 5
Points: 2,910, Level: 5 Points: 2,910, Level: 5 Points: 2,910, Level: 5
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
Quote:
Originally Posted by Absinth View Post
You need to find some code which changes the value ingame, or you do a pointer scan in cheat engine, then you usually have a point to start from.
pointer scan? First time I hear about it.
monster1777 is offline

Reply With Quote

Old 03-08-2010, 08:30 PM   #6
Posting Well

Absinth's Avatar

Join Date: Feb 2010
Location: Germany
Posts: 29
Reputation: 1188
Rep Power: 36
Absinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the world
Quote:
Originally Posted by monster1777 View Post
pointer scan? First time I hear about it.
forget about it :P

If you've found the value in cheat engine again, right klick on it and choose
"Find out what access this address", then you should see some assambler code, maybe that will help you
Absinth is offline

Reply With Quote

Old 03-08-2010, 08:37 PM   #7
Hacker Supreme

monster1777's Avatar

Threadstarter
Join Date: Feb 2010
Location: Poland
Posts: 224
Reputation: 942
Rep Power: 38
monster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Game
Points: 2,910, Level: 5
Points: 2,910, Level: 5 Points: 2,910, Level: 5 Points: 2,910, Level: 5
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
Ahhh this... Yea I made it, but sometimes I get just eax+1c or something like that ebx+1c or eax+00000000080 and I don't know what is the right pointer. The whole shit or just 1 number. And I don't know what to do later :S
monster1777 is offline

Reply With Quote

Old 03-09-2010, 05:51 AM   #8
Super H4x0r

iExclusive's Avatar

Join Date: Jan 2009
Posts: 318
Reputation: 1550
Rep Power: 59
iExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overload
Alloy Arena Champion Booty Champion The Collector Champion Frantic Killer Champion
Then, trace it all obviously ... 1c would be your offset, and EAX holds the value. Add that, and it should be the pointer to your DMA. Kindly do the Cheat Engine tutorial, it'll help you loads.
iExclusive is offline

Reply With Quote

Old 03-09-2010, 04:13 PM   #9
Hacker Supreme

monster1777's Avatar

Threadstarter
Join Date: Feb 2010
Location: Poland
Posts: 224
Reputation: 942
Rep Power: 38
monster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Game
Points: 2,910, Level: 5
Points: 2,910, Level: 5 Points: 2,910, Level: 5 Points: 2,910, Level: 5
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
I have the address 0386272C and the pointer is 1c. It says that it is ebx+1c so it's value is 03862610. In the tut it says I have to do new scan with 03862610. But when I do this nothing shows, no addresses. Now I'm stuck and really don't know what to do next.
monster1777 is offline

Reply With Quote

Old 03-10-2010, 09:55 AM   #10
Super H4x0r

iExclusive's Avatar

Join Date: Jan 2009
Posts: 318
Reputation: 1550
Rep Power: 59
iExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overloadiExclusive -- Warning: My rep could overload
Alloy Arena Champion Booty Champion The Collector Champion Frantic Killer Champion
The pointer is 1c? You mean the offset?
Well, the value of EBX + the offset (1C) is hopefully your pointer, have you tried that?
iExclusive is offline

Reply With Quote

Old 03-10-2010, 05:26 PM   #11
Hacker Supreme

monster1777's Avatar

Threadstarter
Join Date: Feb 2010
Location: Poland
Posts: 224
Reputation: 942
Rep Power: 38
monster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Game
Points: 2,910, Level: 5
Points: 2,910, Level: 5 Points: 2,910, Level: 5 Points: 2,910, Level: 5
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
Hmm look,
Click here
I made a video, it shows what am I doing all the time. In HD.
monster1777 is offline

Reply With Quote

Old 03-10-2010, 09:26 PM   #12
Posting Well

Absinth's Avatar

Join Date: Feb 2010
Location: Germany
Posts: 29
Reputation: 1188
Rep Power: 36
Absinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the worldAbsinth -- This man endangers the world
It looks like ebx is calculated from edi (just a guess).
Try searching for edi's value (in hex!).

My assumption:
edi = 03862500 : contains a pointer to an array (or vector) of player structs (or classes)
ecx = 5 : which element of the array (or vector)

ebx = edi + ecx * 0x50 (80dec)
ammo = ebx + 0x1C

Code:
public struct PLAYER
{
    public byte[28] unknown1;
    public decimal ammo;
    public byte[48] unknown2;
}
Don't know how to define structs in C#

In C it would be:
Code:
typedef struct
{
    char unknown1[28]; // 00
    int    ammo; // 1C
    char unknown2[48]; // 20
} PLAYER;

PLAYER* player_list;

player_list[5].ammo = 135343645345634563;
But it's just a guess.
It could be completely wrong :P

Last edited by Absinth; 03-10-2010 at 09:37 PM.
Absinth is offline

Reply With Quote

Old 03-10-2010, 09:38 PM   #13
Broken Moderator

kolbybrooks's Avatar

Join Date: Aug 2006
Location: United States
Posts: 760
Reputation: 33567
Rep Power: 418
kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!
Points: 23,105, Level: 21
Points: 23,105, Level: 21 Points: 23,105, Level: 21 Points: 23,105, Level: 21
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
Breakpoint the add [ebx + 1c], eax line and then get ebx.

Tick the scan read-only memory in the middle of the main window (in the scan options) then search for the value of ebx.

If you're lucky one of the game's functions will store a pointer to ebx (The struct you're looking for)
kolbybrooks is online now

Reply With Quote

Old 03-10-2010, 10:17 PM   #14
Hacker Supreme

monster1777's Avatar

Threadstarter
Join Date: Feb 2010
Location: Poland
Posts: 224
Reputation: 942
Rep Power: 38
monster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Gamemonster1777 Used The Code To Make His Own Uber Game
Points: 2,910, Level: 5
Points: 2,910, Level: 5 Points: 2,910, Level: 5 Points: 2,910, Level: 5
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%
Last Achievements
Quote:
Originally Posted by kolbybrooks View Post
Breakpoint the add [ebx + 1c], eax line and then get ebx.

Tick the scan read-only memory in the middle of the main window (in the scan options) then search for the value of ebx.

If you're lucky one of the game's functions will store a pointer to ebx (The struct you're looking for)
No, it doesn't work cause when I toggle breakpoint I can't search again, because it says I am manually disassembling.
monster1777 is offline

Reply With Quote

Old 03-11-2010, 12:02 AM   #15
Broken Moderator

kolbybrooks's Avatar

Join Date: Aug 2006
Location: United States
Posts: 760
Reputation: 33567
Rep Power: 418
kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!kolbybrooks has a huge epeen!
Points: 23,105, Level: 21
Points: 23,105, Level: 21 Points: 23,105, Level: 21 Points: 23,105, Level: 21
Activity: 20.0%
Activity: 20.0% Activity: 20.0% Activity: 20.0%
Last Achievements
You have to close out the "What writes to this address" box.

Quit being so ignorant when people try to help you.
kolbybrooks is online now

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
addresses, trainer
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 10:51 AM.