Array of Bytes C++

09/02/2012 13:52 cheatcarrot#1
Pleaasssee.... can anyone show me a simple example on how to define an address(in Array of bytes) in C++ and how to use it..??? :confused::confused::confused:

#define addr_Ar 0x1234567

int tmp = {0x01};

addr_Ar = tmp[0];


????
:confused::confused::confused::confused:
wwwwwwwwwaaaaaaaaaaaaaaaaaaaaaa
09/04/2012 00:15 кev#2
Quote:
Originally Posted by cheatcarrot View Post
Pleaasssee.... can anyone show me a simple example on how to define an address(in Array of bytes) in C++ and how to use it..??? :confused::confused::confused:

#define addr_Ar 0x1234567

int tmp = {0x01};

addr_Ar = tmp[0];


????
:confused::confused::confused::confused:
wwwwwwwwwaaaaaaaaaaaaaaaaaaaaaa
For example;
PHP Code:
unsigned char *bytes = (unsigned char*)"\x03\x02\x01\x00"
Where each '\xNN' represents a single byte and 4 of them in the example represent a dword (03 02 01 00 or 50462976).

There's not much you can do with that info without basic knowledge on how datatypes, pointers, winternals and memory work though.. I'm assuming you're working on memory / signature scanning? It's not too advanced topic and I believe you'll learn a lot more the "hard" way than me spoonfeeding you.

[Only registered and activated users can see links. Click Here To Register...].
09/04/2012 16:13 cheatcarrot#3
Thanks a lot kev.. ^^, .. really help me a lot.. at least now i have an idea where should i go and what should i do..

well.. im kinda stuck in that code.. so i just ask if im still in the right track.. guess not.. ^_^
09/04/2012 18:58 кev#4
Quote:
Originally Posted by cheatcarrot View Post
Thanks a lot kev.. ^^, .. really help me a lot.. at least now i have an idea where should i go and what should i do..

well.. im kinda stuck in that code.. so i just ask if im still in the right track.. guess not.. ^_^
The link I posted has more than enough material to get started and it's in easy to digest format as well. After you get the hang of the basics, read the MSDN topics on virtual memory and memory management in general and you've pretty much got everything you need to accomplish what you're trying to.

Don't rush it, you'll learn a lot more by doing than copypasting. Ask me if you've got something on your mind though and I try to steer you in the right direction. :)
09/09/2012 15:46 keypress14#5
who knows how to change ZOOM HACK VALUE USING THIS ADDRESS : 004E919E = 90 90 90