2021-06-16 18:43:45 +03:00
|
|
|
#ifndef PATTERNSCAN
|
|
|
|
#define PATTERNSCAN
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <Psapi.h>
|
|
|
|
#include <string>
|
2022-11-13 21:57:03 +03:00
|
|
|
#include "XorStr.hpp"
|
2021-06-16 18:43:45 +03:00
|
|
|
#define INRANGE(x,a,b) (x >= a && x <= b)
|
|
|
|
#define getBits( x ) (INRANGE((x&(~0x20)),'A','F') ? ((x&(~0x20)) - 'A' + 0xa) : (INRANGE(x,'0','9') ? x - '0' : 0))
|
|
|
|
#define getByte( x ) (getBits(x[0]) << 4 | getBits(x[1]))
|
|
|
|
|
2022-11-13 21:57:03 +03:00
|
|
|
#define FindPatternV2(data1, data2) FindPatternV2_(XorStr(data1), XorStr(data2))
|
|
|
|
|
2021-06-16 18:43:45 +03:00
|
|
|
DWORD WaitOnModuleHandle(std::string moduleName);
|
2022-11-13 21:57:03 +03:00
|
|
|
DWORD FindPatternV2_(std::string moduleName, std::string pattern);
|
2021-06-16 18:43:45 +03:00
|
|
|
bool bCompare(const BYTE* Data, const BYTE* Mask, const char* szMask);
|
|
|
|
DWORD FindPattern(std::string moduleName, BYTE* Mask, char* szMask);
|
|
|
|
|
2022-11-09 10:39:34 +03:00
|
|
|
#include "Interfaces.hpp"
|
2021-06-16 18:43:45 +03:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|