mirror of
https://silica.codes/BedrockReverse/MCEELoginSkip.git
synced 2025-04-06 21:25:49 +12:00
Add files via upload
This commit is contained in:
parent
d3fbfae763
commit
6b222307a1
2 changed files with 16 additions and 9 deletions
|
@ -8,8 +8,11 @@
|
||||||
int* pointer_path;
|
int* pointer_path;
|
||||||
int num_ptr;
|
int num_ptr;
|
||||||
|
|
||||||
|
#ifdef _WIN64
|
||||||
HMODULE* GetProcessBaseAddress(HANDLE process) // from stackoverflow
|
unsigned long long int GetProcessBaseAddress(HANDLE process) // from stackoverflow
|
||||||
|
#else
|
||||||
|
unsigned int GetProcessBaseAddress(HANDLE process) // from stackoverflow
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
DWORD_PTR baseAddress = 0;
|
DWORD_PTR baseAddress = 0;
|
||||||
HANDLE processHandle = OpenProcess(PROCESS_ALL_ACCESS,TRUE,process);
|
HANDLE processHandle = OpenProcess(PROCESS_ALL_ACCESS,TRUE,process);
|
||||||
|
@ -30,7 +33,12 @@ HMODULE* GetProcessBaseAddress(HANDLE process) // from stackoverflow
|
||||||
int moduleCount;
|
int moduleCount;
|
||||||
|
|
||||||
moduleCount = bytesRequired / sizeof(HMODULE);
|
moduleCount = bytesRequired / sizeof(HMODULE);
|
||||||
moduleArray = (HMODULE*)moduleArrayBytes;
|
#ifdef _WIN64
|
||||||
|
moduleArray = (unsigned int*)moduleArrayBytes;
|
||||||
|
#else
|
||||||
|
moduleArray = (unsigned long long int*)moduleArrayBytes;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
if (EnumProcessModules(processHandle, moduleArray, bytesRequired, &bytesRequired))
|
if (EnumProcessModules(processHandle, moduleArray, bytesRequired, &bytesRequired))
|
||||||
{
|
{
|
||||||
|
@ -160,7 +168,7 @@ int main(int argc, char* argv[])
|
||||||
long long int baseAddress = (long long int)GetProcessBaseAddress(proc_id);
|
long long int baseAddress = (long long int)GetProcessBaseAddress(proc_id);
|
||||||
printf_s("MCEE Base Addr: %llx\n", baseAddress);
|
printf_s("MCEE Base Addr: %llx\n", baseAddress);
|
||||||
#else
|
#else
|
||||||
int baseAddress = (int)GetProcessBaseAddress(hProcess);
|
int baseAddress = (int)GetProcessBaseAddress(proc_id);
|
||||||
printf_s("MCEE Base Addr: %x\n", baseAddress);
|
printf_s("MCEE Base Addr: %x\n", baseAddress);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -175,9 +183,11 @@ int main(int argc, char* argv[])
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
long long int cur_ptr = baseAddress + pointer_path[0];
|
long long int cur_ptr = baseAddress + pointer_path[0];
|
||||||
long long int ptr = 0;
|
long long int ptr = 0;
|
||||||
|
long long int new_ptr = 0;
|
||||||
#else
|
#else
|
||||||
int cur_ptr = baseAddress + pointer_path[0];
|
int cur_ptr = baseAddress + pointer_path[0];
|
||||||
int ptr = 0;
|
int ptr = 0;
|
||||||
|
int new_ptr = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (ptr == 0)
|
while (ptr == 0)
|
||||||
|
@ -193,11 +203,7 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
for (int i = 1; i < num_ptr-1; i++) // Follow path...
|
for (int i = 1; i < num_ptr-1; i++) // Follow path...
|
||||||
{
|
{
|
||||||
#ifdef _WIN64
|
|
||||||
long long int new_ptr = 0;
|
|
||||||
#else
|
|
||||||
int new_ptr = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
cur_ptr = ptr + pointer_path[i];
|
cur_ptr = ptr + pointer_path[i];
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
|
1
MinecraftEducationEdition/mee.ptr
Normal file
1
MinecraftEducationEdition/mee.ptr
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2594A58 > 60 > 138 > 58 > 480 > 10 > A8 > 0
|
Loading…
Add table
Reference in a new issue