mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 14:57:27 +08:00
feat(Spoofing): Added IP, R*id and name spoofing
This commit is contained in:
parent
a98785d4e0
commit
a600543097
@ -61,11 +61,58 @@ namespace big
|
||||
|
||||
if (ImGui::TreeNode("Spoofing"))
|
||||
{
|
||||
if (ImGui::Checkbox("Spoof Online Rank", g_settings.options["spoof_rank"].get<bool*>()))
|
||||
auto& spoof = g_settings.options["spoofing"];
|
||||
|
||||
if (ImGui::Checkbox("Spoof Name", spoof["name"]["enabled"].get<bool*>()))
|
||||
g_settings.save();
|
||||
|
||||
std::string* sName = spoof["name"]["value"].get<std::string*>();
|
||||
char name[20];
|
||||
strcpy(name, sName->c_str());
|
||||
if (ImGui::InputText("###input_name", name, sizeof(name)))
|
||||
{
|
||||
spoof["name"]["value"] = std::string(name);
|
||||
|
||||
g_settings.save();
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::Checkbox("Spoof Online Rank", spoof["rank"]["enabled"].get<bool*>()))
|
||||
g_settings.save();
|
||||
|
||||
ImGui::Text("Rank:");
|
||||
if (ImGui::InputInt("##rank", (PINT)g_settings.options["rank"].get<int64_t*>(), 1, 50))
|
||||
if (ImGui::InputInt("##rank", (PINT)spoof["rank"]["value"].get<int64_t*>(), 1, 50))
|
||||
g_settings.save();
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::Checkbox("Spoof IP Address", spoof["ip_address"]["enabled"].get<bool*>()))
|
||||
g_settings.save();
|
||||
|
||||
ImGui::Text("IP Address:");
|
||||
int ip_address[4];
|
||||
ip_address[0] = spoof["ip_address"]["address"]["byte0"];
|
||||
ip_address[1] = spoof["ip_address"]["address"]["byte1"];
|
||||
ip_address[2] = spoof["ip_address"]["address"]["byte2"];
|
||||
ip_address[3] = spoof["ip_address"]["address"]["byte3"];
|
||||
if (ImGui::SliderInt4("###ip_address_spoof", ip_address, 0, 255))
|
||||
{
|
||||
spoof["ip_address"]["address"]["byte0"] = ip_address[0];
|
||||
spoof["ip_address"]["address"]["byte1"] = ip_address[1];
|
||||
spoof["ip_address"]["address"]["byte2"] = ip_address[2];
|
||||
spoof["ip_address"]["address"]["byte3"] = ip_address[3];
|
||||
|
||||
g_settings.save();
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::Checkbox("Spoof Rockstar ID", spoof["rockstar_id"]["enabled"].get<bool*>()))
|
||||
g_settings.save();
|
||||
|
||||
ImGui::Text("Rockstar ID:");
|
||||
if (ImGui::InputScalar("###rockstar_id_spoof", ImGuiDataType_U64, (PUINT64)spoof["rockstar_id"]["value"].get<uint64_t*>()))
|
||||
g_settings.save();
|
||||
|
||||
ImGui::TreePop();
|
||||
|
@ -4,14 +4,28 @@ namespace big
|
||||
{
|
||||
bool hooks::send_net_info_to_lobby(rage::netPlayerData* local_player, int64_t a2, int64_t a3, DWORD* a4)
|
||||
{
|
||||
auto& spoof = g_settings.options["spoofing"];
|
||||
|
||||
if (spoof["name"]["enabled"])
|
||||
{
|
||||
std::string* sName = spoof["name"]["value"].get<std::string*>();
|
||||
char name[20];
|
||||
strcpy(name, sName->c_str());
|
||||
memcpy(local_player->m_name, name, sizeof(name));
|
||||
}
|
||||
// const char name[20] = "How dare you!";
|
||||
// memcpy(local_player->m_name, name, sizeof(name));
|
||||
local_player->m_online_ip.m_field1 = 69;
|
||||
local_player->m_online_ip.m_field2 = 69;
|
||||
local_player->m_online_ip.m_field3 = 69;
|
||||
local_player->m_online_ip.m_field4 = 69;
|
||||
|
||||
local_player->m_rockstar_id = 1337;
|
||||
if (spoof["ip_address"]["enabled"])
|
||||
{
|
||||
local_player->m_online_ip.m_field1 = spoof["ip_address"]["address"]["byte0"];
|
||||
local_player->m_online_ip.m_field2 = spoof["ip_address"]["address"]["byte1"];
|
||||
local_player->m_online_ip.m_field3 = spoof["ip_address"]["address"]["byte2"];
|
||||
local_player->m_online_ip.m_field4 = spoof["ip_address"]["address"]["byte3"];
|
||||
}
|
||||
|
||||
if (spoof["rockstar_id"]["enabled"])
|
||||
local_player->m_rockstar_id = spoof["rockstar_id"]["value"];
|
||||
|
||||
return g_hooking->m_send_net_info_to_lobby_hook.get_original<decltype(&send_net_info_to_lobby)>()(local_player, a2, a3, a4);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user