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 


Need Example VB Reading Strings from Another Process

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

Joined: 18 Feb 2011
Posts: 7

PostPosted: Sun Feb 20, 2011 8:38 am    Post subject: Need Example VB Reading Strings from Another Process Reply with quote

I've been searching high and low for a good example of how to read strings from a memory address in visual basic 2010.. Please show me a decent example showing how to convert bytes to string. Thanks bunches!
Back to top
View user's profile Send private message
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Sun Feb 20, 2011 8:59 am    Post subject: Reply with quote

Converting bytes to string can be done with the Encoding.UTF8 class:

Code:
' Bytes to string
Dim str As String = Encoding.UTF8.GetString(input_bytes)
' String to bytes
Dim bytes() As Byte = Encoding.UTF8.GetBytes(str)


As for getting strings from memory, learn how to use ReadProcessMemory. Check out http://pinvoke.net/ for a good resource on PInvoke definitions for the Win32 API.

_________________
It's not fun unless every exploit mitigation is enabled.
Please do not reply to my posts with LLM-generated slop; I consider it to be an insult to my time.
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