Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB.NET] Help! how do i deal with modulename + offset?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
FirmanSN3
How do I cheat?
Reputation: 0

Joined: 01 Jan 2015
Posts: 7
Location: SysWow64

PostPosted: Thu Jan 01, 2015 5:05 am    Post subject: [VB.NET] Help! how do i deal with modulename + offset? Reply with quote

I Have read this forum /viewtopic.php?t=422516 and this /viewtopic.php?p=5280115#5280115 but i still not understand how i deal it on VB.NET! i have tried many tutorials and noone of them works properly, i'm frustased with this shitty module like .dll, .bin, etc + offset.. these little crap makes things difficult for me to make trainer on VB.NET, i would be very thankful to you who can solve my problem. Crying or Very sad

(This is an image url below showing my problem)
i(youcantposturlyet)gyazo(youcantposturlyet)com/7644c505bc7373d739e55249f38d9a10.png
(Change "(youcantposturlyet)" with dots)
*In this case, i have problem with dealing "Disrupt_b64.dll"*

_________________
I'm new at Cheating a Game.
Back to top
View user's profile Send private message Yahoo Messenger
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Thu Jan 01, 2015 6:55 am    Post subject: Reply with quote

You didn't wrote any code nor any error message nor what exactly you are trying to get. It is always helpful to read your post before posting it and think of if somebody else would read it, would he have all details necessary to help you?

Watch Dogs is 64 bit. So first of all you must compile your applicatoin in 64bit only else it will not work. Second you can use the Process class of vb.net to get the module base address.

(pseudo code)
For each m in Process.GetProcessesByName("enter game process").Modules
if m.modulname = "Disrupt_b64.dll" then
m.baseadress 'do what you want
end if
next

Once you have the base address you going through a loop to read all addresses in your pointer. However the last offset you just ADD to your new address (if you are going to read it as well you get the value).

(pseudo code)
dim address as int64
For i = 0 to 3
address = ReadProcessMemory(address + offset(i))
next

address += offset(4)

//edit: Or you are lazy and just take any memory class available instead of writing your own.
Back to top
View user's profile Send private message
FirmanSN3
How do I cheat?
Reputation: 0

Joined: 01 Jan 2015
Posts: 7
Location: SysWow64

PostPosted: Thu Jan 01, 2015 7:21 am    Post subject: Reply with quote

Hatschi wrote:
//edit: Or you are lazy and just take any memory class available instead of writing your own.


man, i'm working almost 24 hours to find out guessing how these thing work (Seriously, I Swear to god), i'm not an expert programmer.. whatever, thanks for your help, i really appreciate it Smile

_________________
I'm new at Cheating a Game.
Back to top
View user's profile Send private message Yahoo Messenger
Krampus
Cheater
Reputation: 0

Joined: 22 Nov 2014
Posts: 41

PostPosted: Thu Jan 01, 2015 2:23 pm    Post subject: Reply with quote

FirmanSN3 wrote:
Hatschi wrote:
//edit: Or you are lazy and just take any memory class available instead of writing your own.


man, i'm working almost 24 hours to find out guessing how these thing work (Seriously, I Swear to god), i'm not an expert programmer.. whatever, thanks for your help, i really appreciate it Smile


It's not that hard, you just have to learn a bit more with coding. You can find the module address that you add ("module.exe/dll/whatever" + 0x23123) using Cheat Engine. Attach to your game, then go to the Browse Memory window. Go to the tools tab, and open Dissect PE Headers. In there you'll see a window that has a box containing all of the module window names. Click on the one that you're trying to get the address for, and under MZ-Start is a little box that should contain an address. That is the modules address.

Add this to your 0x23123, then you have it! Now in code, add the pointers through ReadProcessMemory (If VB has a different function for reading from memory, use that).

_________________
There is no spoon.
Back to top
View user's profile Send private message
FirmanSN3
How do I cheat?
Reputation: 0

Joined: 01 Jan 2015
Posts: 7
Location: SysWow64

PostPosted: Fri Jan 02, 2015 5:08 am    Post subject: Reply with quote

GingerBreadMan wrote:
FirmanSN3 wrote:
Hatschi wrote:
//edit: Or you are lazy and just take any memory class available instead of writing your own.


man, i'm working almost 24 hours to find out guessing how these thing work (Seriously, I Swear to god), i'm not an expert programmer.. whatever, thanks for your help, i really appreciate it Smile


It's not that hard, you just have to learn a bit more with coding. You can find the module address that you add ("module.exe/dll/whatever" + 0x23123) using Cheat Engine. Attach to your game, then go to the Browse Memory window. Go to the tools tab, and open Dissect PE Headers. In there you'll see a window that has a box containing all of the module window names. Click on the one that you're trying to get the address for, and under MZ-Start is a little box that should contain an address. That is the modules address.

Add this to your 0x23123, then you have it! Now in code, add the pointers through ReadProcessMemory (If VB has a different function for reading from memory, use that).


The module address on MZ-Start is changed everytime the game restart, how'd i can get Static Address of The Module Address on MZ-Start?? Confused

_________________
I'm new at Cheating a Game.
Back to top
View user's profile Send private message Yahoo Messenger
zm0d
Master Cheater
Reputation: 7

Joined: 06 Nov 2013
Posts: 423

PostPosted: Fri Jan 02, 2015 6:11 am    Post subject: Reply with quote

Check out Process, Process.GetProcessesByName("") and the Process.Modules... there should be something like Process.Modules[0].BaseAddress... this returns your base address of the main module (make sure that you access the right index in the modules array).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites