Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 17:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP] Explain me please how this function works

Discussion on [HELP] Explain me please how this function works within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
Xorg's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
[HELP] Explain me please how this function works

Hi,
Anyone here can tell me what this function do?

PHP Code:
DWORD SearchPattern(charpattern,DWORD start_offset ,DWORD ende)
{
        
DWORD offset=start_offset;
        
DWORD start=offset
        
DWORD backoffset=0;
        
DWORD size =strlen(pattern)-1;
        
DWORD foundoffset=0;
 
        
char pEnd=pattern;
        while(
1)
        {
                
char &myposition=*(char*)offset;
                if ((
pEnd[1]!='x'))
                {
                        
char temp=(char)strtoul(pEnd, &pEnd0x10);
                        if (
temp==myposition)
                        {
                                if (
foundoffset==0)
                                {
                                        
foundoffset=offset;
                                }
                        }
                        else
                        {
                                
pEnd=pattern;
                                if (
foundoffset != 0)
                                        
offset=foundoffset;
                                
foundoffset=0;
                        }
                }
                else
                {
                 
pEnd=&pEnd[2];
                }
                
offset++;
                if (((
DWORD)pEnd-(DWORD)pattern>=size)||(offset>=ende))
                        break;
        }
        return 
foundoffset;

Execution:
PHP Code:
SearchPattern("55 8B EC 83 EC 18 83 3D x x x x 00 74 07 33 C0 E9 x x x x 8A 45 08",0x00400000,0x007FFFFF); 
I dont understand that:
PHP Code:
char &myposition=*(char*)offset
Xorg is offline  
Old 08/10/2009, 21:27   #2




 
bloodx's Avatar
 
elite*gold: 55
Join Date: Mar 2006
Posts: 4,582
Received Thanks: 1,539
this function search for the HEX code -> 55 8B EC 83 EC 18 83 3D x x x x 00 74 07 33 C0 E9 x x x x 8A 45 08

x = can be anything....

,0x00400000,0x007FFFFF = range from -> to
bloodx is offline  
Old 08/10/2009, 21:47   #3
 
Xorg's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
Yeah I already know that, but dont understand how it works in details.
My problem is:
Quote:
char &myposition=*(char*)offset;
What declares?
PHP Code:
char &myposition 
Xorg is offline  
Reply


Similar Threads Similar Threads
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack
EXPLAIN THIS, NOW!
05/28/2010 - SRO Private Server - 12 Replies
http://img694.imageshack.us/img694/7242/65216029.p ng Uploaded with ImageShack.us PLEASE HELP!!!!! THIS IS THE THIRD TIME THIS IS HAPPENING!!!! PLEASE!!!!
can someone explain this?
04/04/2009 - Silkroad Online - 0 Replies
Latest SBot-Version: v1.15 Release Date: 31.03.2009 and i scan it 1.04.2009 @ virustotal and it was: File has already been analysed: MD5: 5050acab4e90acf715afdbc2ef620db2 First received: 04.03.2009 14:49:24 (CET) Date: 01.04.2009 19:54:07 (CET) Results: 0/38
Only Need Explain
11/27/2008 - CO2 Private Server - 0 Replies
I just need an explanation of the source of kinshi sourcer reviewing all is not because of truth does not save ... I just want you to tell me where is the problem or what other tips that I got it;) "My question is this error in the table of characters or in the database" I hope their answer and excuse me and forgive my annoyance ahh I'm bad English Latin xD



All times are GMT +1. The time now is 17:34.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.