Skip to content

Commit

Permalink
Some changers
Browse files Browse the repository at this point in the history
-Removed the cosmetics unlocker due to stability issues
-Updated to the latest version v2022.2.8
-Added a fallback to the old array of bytes scan if the newer one for v2022.2.8 isn't detected
  • Loading branch information
Vili1 authored Feb 28, 2022
1 parent 989bee8 commit 2fa7666
Showing 1 changed file with 15 additions and 33 deletions.
48 changes: 15 additions & 33 deletions src/Among Us Free Chat Unlocker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ int main()
{
std::cout << "Please make sure that Among Us is running!\n";
std::cout << "---------------------------------------------------------------------------\n";
system("pause");
return 0;
}
//Get handle by OpenProcess
Expand All @@ -29,46 +30,27 @@ int main()
return 0;
}

void* petAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x2C\x00\x74\x04\xB0\x01\x5D", "xxxxxxx");
if (petAddr != nullptr)
{
NopEx(hProcess, petAddr, 2);
}

void* hatAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x50\x00\x74\x04\xB0\x01\x5D", "xxxxxxx");
if (hatAddr != nullptr)
{
NopEx(hProcess, hatAddr, 2);
}

void* skinAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x00\x00\x00\x00\x74\x04\xB0\x01\x5D", "xxxxxxxxx");
if (skinAddr != nullptr)
{
NopEx(hProcess, skinAddr, 2);
}

void* visiorAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x40\x00\x74\x04\xB0\x01\x5D\xC3\x56", "xxxxxxxxx");
if (visiorAddr != nullptr)
{
NopEx(hProcess, visiorAddr, 2);
}

void* namepAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x30\x00\x74\x04\xB0\x01\x5D", "xxxxxxx");
if (namepAddr != nullptr)
{
NopEx(hProcess, namepAddr, 2);
}

//PatternScan for the chat compare opcode
void* chatAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x83\x78\x2C\x00\x75\x2E", "xxx?xx");
void* chatAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x83\x78\x30\x00\x75\x2E", "xxx?xx");

//patch the instruction
if (chatAddr != nullptr)
{
// patches the instruction that compares the chat mode to compare to 2 which is the restricted chat
byte patchChat[4] = { 0x83, 0x78, 0x2C, 0x02 };
byte patchChat[4] = { 0x83, 0x78, 0x30, 0x02 };
PatchEx(hProcess, chatAddr, patchChat, sizeof(patchChat));
std::cout << "The chat and the cosmetics has been unlocked successfully!\n";
std::cout << "The chat has been unlocked successfully!\n";
std::cout << "---------------------------------------------------------------------------\n";
system("pause");
}
else
{
std::cout << "Attempting to unlock an older version of Among Us below v2021.12.16!\n";
void* oldchatAddr = PatternScanExModule(hProcess, L"Among Us.exe", L"GameAssembly.dll", "\x83\x78\x2C\x00\x75\x2E", "xxx?xx");

byte oldpatchChat[4] = { 0x83, 0x78, 0x2C, 0x02 };
PatchEx(hProcess, oldchatAddr, oldpatchChat, sizeof(oldpatchChat));
std::cout << "The chat has been unlocked successfully!\n";
std::cout << "---------------------------------------------------------------------------\n";
system("pause");
}
Expand Down

0 comments on commit 2fa7666

Please sign in to comment.