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 


Aobscan for C ( Help Pls)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Wed May 25, 2016 10:29 am    Post subject: Aobscan for C ( Help Pls) Reply with quote

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 . Sad

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 Smile I hope you will help me. Surprised
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed May 25, 2016 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Wed May 25, 2016 11:38 am    Post subject: Reply with quote

Can u tell me where to put scanning and replacing AOB ?

Thanks A lot for your help Smile
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed May 25, 2016 11:44 am    Post subject: Reply with quote

MasterHacking321 wrote:
Can u tell me where to put scanning and replacing AOB ?

Thanks A lot for your help Smile


If you don't understand the absolute basic AoB scanning code I posted already, then you need to not be doing this and instead you should be actually learning the language. What I posted above is pretty basic, if you can't understand it, I'm not going to just spoon feed you other things.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Wed May 25, 2016 11:51 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
WndDrgn
Cheater
Reputation: 0

Joined: 24 May 2015
Posts: 49

PostPosted: Fri May 27, 2016 2:26 am    Post subject: Reply with quote

What is 'aob'?

is it 'address of byte'?
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri May 27, 2016 2:30 am    Post subject: Reply with quote

array of byte
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