C# Class AgaHackTools.Main.Default.Pattern

A class that represents basic pattrn scanning properties.
Mostrar archivo Open project: aganonki/HackTools Class Usage Examples

Public Methods

Method Description
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.

Method Details

GetBytesFromDwordPattern() public method

Gets the byte[] pattern from string format patterns.
public GetBytesFromDwordPattern ( ) : byte[]
return byte[]

GetBytesFromDwordPattern() public static method

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.
return byte[]

GetMaskFromDwordPattern() public method

Gets the mask from a string based byte pattern to scan for.
public GetMaskFromDwordPattern ( ) : string
return string

GetMaskFromDwordPattern() public static method

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.
return string

MaskFromPattern() public static method

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
return string

Pattern() public method

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.
return System