j0d
j0d
CC#
Created by j0d on 3/8/2023 in #help
✅ Adding functionality to a call of duty mw2 (2009) steam tool
I literally fight against the cheaters, the game is swamped with people modding and doing nefarious stuff. I use this to create clean experiences for people
11 replies
CC#
Created by j0d on 3/8/2023 in #help
✅ Adding functionality to a call of duty mw2 (2009) steam tool
It is used to combat cheaters if that helps at all
11 replies
CC#
Created by j0d on 3/8/2023 in #help
✅ Adding functionality to a call of duty mw2 (2009) steam tool
Apologies!
11 replies
CC#
Created by j0d on 3/8/2023 in #help
✅ Adding functionality to a call of duty mw2 (2009) steam tool
It is written in c# but yes ok i will delete
11 replies
CC#
Created by j0d on 3/8/2023 in #help
✅ Adding functionality to a call of duty mw2 (2009) steam tool
Here is the part of the code code which grabs the players XUID. It seems to use the cmd_argv function and then filters with NA_IP to get the XUID.
inline char* Cmd_Argv(int arg)
{
if ((unsigned)arg >= cmd_argc[*cmd_id]) {
return "";
}
return (char*)(cmd_argv[*cmd_id][arg]);
}
bool IsBanned(string xuid)
{
std::ifstream file("xuidbans.txt");
std::string str;
while (std::getline(file, str))
{

if (str.find(xuid) != string::npos)
{
return true;
}

}
return false;
}
void hk_PartyHost_HandleJoinPartyRequest(PartyData_s* party, int localControllerIndex, netadr_t from, msg_t* msg)
{

char ip = ("%i.%i.%i.%i\n", from.ip[0], from.ip[1], from.ip[2], from.ip[3]);
char v1[1024]; // [esp+Ch] [ebp-40Ch] BYREF


if (from.type == NA_IP) {
auto xuid = Cmd_Argv(2);

bool rce = msg->cursize > 55;
std::string xuidstr(xuid);

std::transform(xuidstr.begin(), xuidstr.end(), xuidstr.begin(), ::toupper);
printf("Received Join Party request from IP: %i.%i.%i.%i:%i | XUID: %s\n", from.ip[0], from.ip[1], from.ip[2], from.ip[3], from.port, xuidstr);
inline char* Cmd_Argv(int arg)
{
if ((unsigned)arg >= cmd_argc[*cmd_id]) {
return "";
}
return (char*)(cmd_argv[*cmd_id][arg]);
}
bool IsBanned(string xuid)
{
std::ifstream file("xuidbans.txt");
std::string str;
while (std::getline(file, str))
{

if (str.find(xuid) != string::npos)
{
return true;
}

}
return false;
}
void hk_PartyHost_HandleJoinPartyRequest(PartyData_s* party, int localControllerIndex, netadr_t from, msg_t* msg)
{

char ip = ("%i.%i.%i.%i\n", from.ip[0], from.ip[1], from.ip[2], from.ip[3]);
char v1[1024]; // [esp+Ch] [ebp-40Ch] BYREF


if (from.type == NA_IP) {
auto xuid = Cmd_Argv(2);

bool rce = msg->cursize > 55;
std::string xuidstr(xuid);

std::transform(xuidstr.begin(), xuidstr.end(), xuidstr.begin(), ::toupper);
printf("Received Join Party request from IP: %i.%i.%i.%i:%i | XUID: %s\n", from.ip[0], from.ip[1], from.ip[2], from.ip[3], from.port, xuidstr);
11 replies