Give bot skins

This commit is contained in:
Gray
2024-03-19 13:11:02 -04:00
parent 54b2383124
commit 5bfe3a6179
19 changed files with 388 additions and 227 deletions

13
vendor/memcury.h vendored
View File

@@ -960,6 +960,8 @@
{
const auto scanBytes = _address.GetAs<std::uint8_t*>();
bool bFound = false;
for (auto i = (forward ? 1 : -1); forward ? (i < 2048) : (i > -2048); forward ? i++ : i--)
{
bool found = true;
@@ -971,7 +973,7 @@
if (currentOpcode == -1)
continue;
// std::cout << std::format("[{} {}] 0x{:x}\n", i, k, currentOpcode);
// LOG_INFO(LogDev, "[{} 0x{:x}] 0x{:x}", i, __int64(&scanBytes[i]) - __int64(GetModuleHandleW(0)), currentOpcode);
found = currentOpcode == scanBytes[i + k];
}
@@ -984,10 +986,17 @@
return ScanFor(opcodesToFind, forward, toSkip - 1);
}
bFound = true;
break;
}
}
if (!bFound)
{
LOG_ERROR(LogDev, "ScanFor failed!");
}
return *this;
}
@@ -1439,6 +1448,8 @@
if (!NameRef)
return 0;
LOG_INFO(LogDev, "FindFunctionCall NameRef: 0x{:x}", __int64(NameRef) - __int64(GetModuleHandleW(0)));
return Memcury::Scanner(NameRef).ScanFor(Bytes, false).Get();
}