Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB.NET get process base address ?

Hi !
I have a process (gta_sa.exe)
and i have a address there like "gta_sa.exe + 1190"
gta_sa.exe is the pointer, i have to add those two addresses.But how can i get that base address (gta_sa.exe) in VB.NET ? This address changes sometimes, thats why i have to use this pointer, but i have no idea what functions etc do i need to use to get it, could someone help me with this ? I dont need whole code or something ,just a function and it would be the best to attach some link explainging how to use it.
Thanks in advance
Hey man! For all sorts of memory editing in .NET I use BlackMagic by Shynd.

Once you have assigned the process all you have to do is something like "BlackMagic.MainModule.BaseAddress)

Direct Link:
http://www.gamedeception.net/attachment....1237045563
How to use it ? i mean where to put those files
Code
Private Declare Unicode Function Module32First Lib "kernel32.dll" Alias "Module32FirstW" (ByVal hSnapshot As IntPtr, ByRef lpme As MODULEENTRY32) As Integer

  <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
  Private Structure MODULEENTRY32
    Public dwSize As UInteger
    Public th32ModuleID As UInteger
    Public th32ProcessID As UInteger
    Public GlblcntUsage As UInteger
    Public ProccntUsage As UInteger
    Public modBaseAddr As IntPtr
    Public modBaseSize As UInteger
    Public hModule As IntPtr
    <VBFixedString(256), MarshalAs(UnmanagedType.ByValTStr, SizeConst:=256)> Public szModule As String
    <VBFixedString(260), MarshalAs(UnmanagedType.ByValTStr, SizeConst:=260)> Public szExePath As String
  End Structure

modBaseAddr is what you lookin for.
Could you explain me using a example how this works ? I have no idea what hSnapshot and lpme is..
Refer to my thread over here. The functions should be pretty straight forward.

https://hackforums.net/showthread.php?tid=3304832


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by D3n1s90Aug 17, 2020 04:58 AM 2 165 Aug 17, 2020 04:58 AM
Last Post: SaketSaket
[C#] by gigajewNov 17, 2019 11:47 AM 17 1,552 Nov 17, 2019 11:47 AM
Last Post: gigajew
[.NET] by Formula 1Mar 3, 2019 02:36 PM 6 230 Mar 3, 2019 02:36 PM
Last Post: Formula 1