Test queryserverinfo oob

This commit is contained in:
6arelyFuture 2022-01-14 12:23:39 +00:00
parent c006b315c0
commit 07070fc24c
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -100,6 +100,17 @@ namespace exploit
{ {
game::Dvar_SetBool(cl_exploit, false); game::Dvar_SetBool(cl_exploit, false);
}); });
command::add("send_command", [](const command::params& params)
{
if (params.size() < 2) return;
if (*game::connectionState <= game::connstate_t::CA_CHALLENGING)
return;
const auto cmd = std::format("queryserverinfo ;{}", params.join(1));
game::NET_OutOfBandPrint(game::NS_SERVER, game::localClientConnection->serverAddress, cmd.data());
});
} }
}; };
} }