How to get the main address of a programm

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

AlexR

Newbie
Mar 17, 2013
2
904
0
Hello,

at first: i'm using Cheat Engine and Visual Basics
I would be interested into creating an ESP, but there is a problem that I can't get solved by my own.
Also I didn't found a good solution online.

I found there some stuff about the enemy in multiplayer mode (my friend helped me)
So I found the enemy health, name, amo, nades and most important the cordinates.
For all this informations i need the static address of it. the problem is i get everytime an address entry like this: "ac_client.exe"+000E4E08
my oppinion is the entry "ac_client.exe" represents a address. but this string i can't enter in my vb programm to get an address.

my question is how can i get the static main address of a game i.e. AssaultCube?

thx for helping
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,188
12,638
76
Can't be certain about 0x400000, it could also be 0x1000000 for example. It's dependent on your OS :)

My Fivehax library has a function for finding a modules base address, not in it's virtual memory space though. Can't link it to you, on cellphone, just look up Fivehax on google, you'll find it on Github.
 
Last edited:

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,107
12,593
51
This gives you the main module base address in VB:

Dim P As Process = Process.GetProcessesByName("YOURPROCESSNAMEWITHOUT.EXE")(0)
Dim BaseAddress As Integer = P.MainModule.BaseAddress.ToInt32()
 

cra0

Newbie
Apr 22, 2013
2
232
0
This gives you the main module base address in VB:

Dim P As Process = Process.GetProcessesByName("YOURPROCESSNAMEWITHOUT.EXE")(0)
Dim BaseAddress As Integer = P.MainModule.BaseAddress.ToInt32()
Correct I wrote a function for this

Public Function FindBaseAddress(ByVal ProcName As String)
Dim internal_p_address_pointerstyle As IntPtr
Dim internal_p As Process() = Process.GetProcessesByName(ProcName)
Dim internal_p_address = internal_p(0).MainModule.BaseAddress


Dim BaseAddress_longstyle As Long = internal_p_address.ToInt32()




Return BaseAddress_longstyle
End Function
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,107
12,593
51
Correct I wrote a function for this

Public Function FindBaseAddress(ByVal ProcName As String)
Dim internal_p_address_pointerstyle As IntPtr
Dim internal_p As Process() = Process.GetProcessesByName(ProcName)
Dim internal_p_address = internal_p(0).MainModule.BaseAddress


Dim BaseAddress_longstyle As Long = internal_p_address.ToInt32()




Return BaseAddress_longstyle
End Function
And why you corrected it? The above code worked and it was only 2 lines..
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,107
12,593
51
Correct I wrote a function for this

Public Function FindBaseAddress(ByVal ProcName As String)
Dim internal_p_address_pointerstyle As IntPtr
Dim internal_p As Process() = Process.GetProcessesByName(ProcName)
Dim internal_p_address = internal_p(0).MainModule.BaseAddress


Dim BaseAddress_longstyle As Long = internal_p_address.ToInt32()




Return BaseAddress_longstyle
End Function
And why you corrected it? The above code worked and it was only 2 lines..


Public Function FindBaseAddress(ByVal ProcName As String)
Dim P As Process = Process.GetProcessesByName(ProcName)(0)
return P.MainModule.BaseAddress.ToInt32()
End Function
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods League of Legends Accounts