C# Класс AgaHackTools.Main.Default.Pattern

A class that represents basic pattrn scanning properties.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetBytesFromDwordPattern ( ) : byte[]

Gets the byte[] pattern from string format patterns.

GetBytesFromDwordPattern ( string pattern ) : byte[]

Gets the byte[] pattern from string format patterns.

GetMaskFromDwordPattern ( ) : string

Gets the mask from a string based byte pattern to scan for.

GetMaskFromDwordPattern ( string pattern ) : string

Gets the mask from a string based byte pattern to scan for.

MaskFromPattern ( byte pattern, byte wildcardByte, char wildcardChar = '?', char matchChar = 'x' ) : string

Creates a mask from a given pattern, using the given chars

Pattern ( string description, string pattern, int offseToAdd, bool isOffsetMode, bool rebase, string comment ) : System

Creates a new instance of Pattern.

Описание методов

GetBytesFromDwordPattern() публичный Метод

Gets the byte[] pattern from string format patterns.
public GetBytesFromDwordPattern ( ) : byte[]
Результат byte[]

GetBytesFromDwordPattern() публичный статический Метод

Gets the byte[] pattern from string format patterns.
public static GetBytesFromDwordPattern ( string pattern ) : byte[]
pattern string The string pattern to search for. ?? is mask and space between each byte and mask.
Результат byte[]

GetMaskFromDwordPattern() публичный Метод

Gets the mask from a string based byte pattern to scan for.
public GetMaskFromDwordPattern ( ) : string
Результат string

GetMaskFromDwordPattern() публичный статический Метод

Gets the mask from a string based byte pattern to scan for.
public static GetMaskFromDwordPattern ( string pattern ) : string
pattern string The string pattern to search for. ?? is mask and space between each byte and mask.
Результат string

MaskFromPattern() публичный статический Метод

Creates a mask from a given pattern, using the given chars
public static MaskFromPattern ( byte pattern, byte wildcardByte, char wildcardChar = '?', char matchChar = 'x' ) : string
pattern byte The pattern this functions designs a mask for
wildcardByte byte Byte that is interpreted as a wildcard
wildcardChar char Char that is used as wildcard
matchChar char Char that is no wildcard
Результат string

Pattern() публичный Метод

Creates a new instance of Pattern.
public Pattern ( string description, string pattern, int offseToAdd, bool isOffsetMode, bool rebase, string comment ) : System
description string A description of the pattern being created.
pattern string The patterns Dword formatted text pattern.
offseToAdd int The offset to add to the result found before returning the value.
isOffsetMode bool If we should return the address or offset in the result if this is a xml patternscan.
rebase bool If the address should be rebased to a process module.
comment string Any comments about the pattern. Useful for xml files.
Результат System