mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-01-05 17:13:40 +08:00
24 lines
761 B
C++
24 lines
761 B
C++
#ifndef PATTERNSCAN
|
|
#define PATTERNSCAN
|
|
#pragma once
|
|
|
|
#include <Windows.h>
|
|
#include <Psapi.h>
|
|
#include <string>
|
|
#include "XorStr.hpp"
|
|
#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]))
|
|
|
|
#define FindPatternV2(data1, data2) FindPatternV2_(XorStr(data1), XorStr(data2))
|
|
|
|
DWORD WaitOnModuleHandle(std::string moduleName);
|
|
DWORD FindPatternV2_(std::string moduleName, std::string pattern);
|
|
bool bCompare(const BYTE* Data, const BYTE* Mask, const char* szMask);
|
|
DWORD FindPattern(std::string moduleName, BYTE* Mask, char* szMask);
|
|
|
|
#include "Interfaces.hpp"
|
|
|
|
#endif
|
|
|