| View previous topic :: View next topic |
| Author |
Message |
draegon1 How do I cheat?
Reputation: 0
Joined: 15 Sep 2010 Posts: 5
|
Posted: Mon Oct 11, 2010 7:05 pm Post subject: memory scanner scanning string/text |
|
|
Hello,
i implemented a copy of HadFuny memory scanner and got it working wonderfully. trying to make it so i can scan for string but seem to be having a problem. Can someone please explain the concept to me?
I assume, get a string, convert it to virtual key code, and search for this keycode?
if someone already have the code and don't mind sharing, much appreciated.
just trying to make sure i am heading in the right direction while i figure out how to convert key code to string and vice versa
many thanks
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Oct 11, 2010 7:42 pm Post subject: |
|
|
Strings are just an array of characters, you would search for the bytes of the string.
For example:
| Code: |
char szHello[] = { "Hello world!" };
/*
Letter Decimal Hex
--------------------------------------------
H = 72 = 0x48
e = 101 = 0x65
l = 108 = 0x6c
l = 108 = 0x6c
o = 111 = 0x6f
*/
|
So you could look for the array of bytes of the string.
_________________
- Retired. |
|
| Back to top |
|
 |
draegon1 How do I cheat?
Reputation: 0
Joined: 15 Sep 2010 Posts: 5
|
Posted: Tue Oct 12, 2010 8:47 pm Post subject: |
|
|
| ok thank you
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Oct 19, 2010 1:21 pm Post subject: |
|
|
| There's not really a need for conversion. Just compare it like a block of memory. There exist many algorithms for that such as memcmp or you could even use strcmp. Depending on the size of your string to be compared, some algorithms could be more efficient than others.
|
|
| Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Thu Nov 11, 2010 8:32 pm Post subject: |
|
|
| Search for an array of bytes by converting your string into bytes and using functions like memcpy to find possible strings. Remember, strings are a basically a repsentation of bytes.
|
|
| Back to top |
|
 |
|