Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 17:25

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

Advertisement



Signaturen Scanner

Discussion on Signaturen Scanner within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
mileseven's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 107
Received Thanks: 255
Signaturen Scanner

Ich stell mal hier mein Code zum meinem Signaturen Scanner rein. Damit könnt bestimmte Werte/Signaturen scannen, worauf die Adresse wiedergegeben wird.

Funktion der Mask:

"?" = egal was für ein Wert
"x" = der vorgegebene Wert wird gesucht

Beispiel:

Signatur "0F 25 34 FF"

Maske "xx?x"

Folglich sucht es sich alle Signaturen aus die mit 0F25 anfangen und dann einen beliebigen Wert. Es muss dann mit FF aufhören. Beispiele für dich gefundenen Resultate:

0F25AAFF
0F2543FF
0F2511FF
0F2534FF

PHP Code:
#include "CSigScan.h"

CSigScan::CSigScan(char *newFile)
{
    
this->file newFile;
    
this->length 0;
    
this->offset 0;
}

int CSigScan::FindSignature(unsigned char *signaturechar *sigmaskunsigned int len)
{
    
// Definiere Private Member der , der Parameter
    
this->sig signature;
    
this->mask sigmask;
    
this->length len;

    
// Lokale Variable deklarieren
    
unsigned char result;
    
int ofc 0// Offset beim Übeprüfen
    
unsigned int i// Counter beim Überprüfen

    // Datei Laden ( Binär Modus )
    
ifstream data(this->file,ios_base::binary);

    
// Falls Datei nicht exisitiert
    
if(!data.is_open())
        
cout << "Can´t find file to open";

    
// Falls Datei exisiert, auslesen und nach der Signatur übeprüfen
    
while(data)
    {
        for(
0;len;i++) 
        {
            
result data.get();
            if((
mask[i] != '?') && (sig[i] != result))
                    break;
            else
                
ofc++;
        }
     
        
// Falls Zähler gleich der Länge ist, ist die Signatur gefunden worden und kann returned werden.
        
if(== len)
            return 
this->offset;
        else if(
0)
            
offset += ofc;
 
        
// Offsets erhöhen
        
ofc 0;
        
this->offset++;
    }

Beispiel:

PHP Code:
include "CSigScan.h"

int main(int argccharargv[])
{
    
// Datei vom Parameternamen laden
    
CSigScan S(argv[1]);

    
int result S.FindSignature((unsigned char *)
        
"\x48\xBF\x41\x00\xD0"// Signatur 
        
"xx??x"// Mask
        
5); // Bytes länge

    // Offset ausgeben in HEX
    
cout << uppercase << hex << result << endl;

    
cin.get();

    
/* Exitcode */
    
return 0;

mileseven is offline  
Reply


Similar Threads Similar Threads
GM scanner
10/11/2011 - Cabal Online - 4 Replies
anyone have some kinda bot/prog that allows one to detect when a GM is on or near and makes the bot auto log or something?
Lc Hp+lvl Scanner
07/12/2010 - Last Chaos - 28 Replies
hi leute das ist mein erster post hier ich hoffe mal das das mit der Formatierung so einigermaßen hin haut xD Ich hab ein kleines Programm für Lc Ger geschrieben das einem die Hp und das lvl vom anvisierten Gegner anzeigt. wenn ihr fehler findet bescheid sagen ;-) hier das Programm: MEGAUPLOAD - The leading online storage and file delivery service
NPC Scanner?
06/19/2010 - Final Fantasy XI - 5 Replies
Hi, I'm fairly new to this kind of scene but I have been looking all over for a memory scanner to show mob IDs in the current zone, I have MrWildRabbit and the NPC.exe from MrArgus, neither of which show names correctly, I know my memlocs are correct because I have tested Argus on Spook in KRT. I have attached a screenie of how WildRabbit looks for me in Port Bastok and according to what I downloaded it is the English version. Any help much appreciated thanks!
Scanner
06/23/2006 - Conquer Online 2 - 10 Replies
i've been wondering.. what's the scanner u ppl here use to scan new stuff released here? also include where some1 can get it from.



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


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.