| View previous topic :: View next topic |
| Author |
Message |
lolAnonymous Expert Cheater
Reputation: 1
Joined: 19 Jul 2015 Posts: 154
|
Posted: Wed May 25, 2016 10:29 am Post subject: Aobscan for C ( Help Pls) |
|
|
Hey friends ,
I want help with Aobscan in C-lang . Yeah I know there are thousand of people who asked the same question and answered well... But believe or not I am finding a tutorial for this from 2 years... I never found any good tutorial... I have just joined an Institute for learning C language and things I have learned are : Syntax of C , Variables , Scanf .
At first I was happy because I thought that now I can do Aobscan in C , Reason why I thought that,
I was thinking that I can do Aobscan by making a char variable and using scanf . but I was fool .. that doesn't worked for me...
-------------------------------------------------------------------------------------
I want a simple basic program to scan and change aobs + to find the right flash process...
Please be gentle with me . I know my English is very bad .
And sorry for asking you the same question that u have answered before... but believe me I never understood your answers... I think because they are in hard English or because there scripts doesn't contain comments so I can't understand which func works what...
An example of what I want to make is here http://www6.zippyshare.com/v/DU8bMT2S/file.html
Thanks In Advance I hope you will help me.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed May 25, 2016 11:34 am Post subject: |
|
|
| Code: | bool Compare(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
for (; *szMask; ++szMask, ++pData, ++bMask)
if (*szMask == 'x' && *pData != *bMask)
return false;
return (*szMask) == NULL;
}
DWORD Pattern(DWORD dwAddress, DWORD dwLen, BYTE *bMask, const char * szMask)
{
int maskLen = strlen(szMask);
for (DWORD i = 0; i < dwLen - maskLen; i++)
if (Compare((BYTE*)(dwAddress + i), bMask, szMask))
return (DWORD)(dwAddress + i);
return 0;
} |
Is the most common / old method of doing an AoB scan in C/C++. Using C++ offers a lot more versatility in what can be done in simplified code though over this method. There are also other search algorithms that can be implemented to do an AoB scan that you can find examples of via a simple Google search.
_________________
- Retired. |
|
| Back to top |
|
 |
lolAnonymous Expert Cheater
Reputation: 1
Joined: 19 Jul 2015 Posts: 154
|
Posted: Wed May 25, 2016 11:38 am Post subject: |
|
|
Can u tell me where to put scanning and replacing AOB ?
Thanks A lot for your help
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
lolAnonymous Expert Cheater
Reputation: 1
Joined: 19 Jul 2015 Posts: 154
|
Posted: Wed May 25, 2016 11:51 am Post subject: |
|
|
Hmmm... Yeah I actually don't know the above code... as I mentioned in my post that I know few things now...
I will ask my teacher to tell me what it is... and how it works... Then I will contact u .. can I pm u ?
Thanks For Your Help
|
|
| Back to top |
|
 |
WndDrgn Cheater
Reputation: 0
Joined: 24 May 2015 Posts: 49
|
Posted: Fri May 27, 2016 2:26 am Post subject: |
|
|
What is 'aob'?
is it 'address of byte'?
|
|
| Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Fri May 27, 2016 2:30 am Post subject: |
|
|
| array of byte
|
|
| Back to top |
|
 |
|