[Help] Get BaseAddress of a 64Bit Process

12/10/2015 12:55 Giommi#1
hi, im making a ESP & a Triggerbot for the game Rainbow Six: Siege.
my problem is to get the base adr of it.
(i edited one of my older projects ignore "csgo_process"
Code:
csgo_process = Process.GetProcessesByName("RainbowSix")
        If csgo_process.Length > 0 Then
            For Each [Module] As System.Diagnostics.ProcessModule In csgo_process(0).Modules
                If [Module].ModuleName = "RainbowSix.exe" Then
                    client_dll_base = [Module].BaseAddress
                End If
            Next
            triggerbot_loop_thread.Start()
        Else
            MsgBox("Start Rainbow Six before")
            Application.Exit()
        End If
it crashes here "system.overflowexception"
could someone help me?
12/10/2015 13:49 warfley#2
An overflow occurs if you try to cast a bigger type into a smaller one. I guess you are using integer for the base address, use int64 for 64 bit addresses
12/10/2015 20:21 Giommi#3
Quote:
Originally Posted by warfley View Post
An overflow occurs if you try to cast a bigger type into a smaller one. I guess you are using integer for the base address, use int64 for 64 bit addresses
hmm im trying it but im failing dont 100% understand what u mean
and baseaddress is as long (8bit)
could u have a look at skype?

i checked the base address again its 12 digits
12/10/2015 22:19 YatoDev#4
Compile as x64 and use Int64 or IntPtr
12/10/2015 22:28 Giommi#5
Quote:
Originally Posted by »FlutterShy™ View Post
Compile as x64 and use Int64 or IntPtr
yeah did it. get the same error... :/
01/12/2016 22:11 anonymous-29742#6
Code:
Process.GetProcessesByName("RainbowSix")(0).MainModule.BaseAddress.ToInt32()
MFG #Lucas#