HydrasPrivAntiCheat.cs
HydrasPrivAntiCheat.cs
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Photon.Pun;
using System.IO;
using System.Collections.Generic;
if (detectBasicMods)
{
CheckForModsHappening();
}
if (detectModsInfection)
{
ModsActiveInInfection();
}
if (detectModsFolder)
{
CheckForModsFolderV1();
CheckForModsFolderV2();
}
if (Directory.Exists(modsFolderPath))
{
AntiCheatHandlerDLL();
}
}
if (Directory.Exists(Path.Combine(androidAppDir, "Mods")))
{
AntiCheatHandlerDLL();
}
}
if (mainCamera != null)
{
Canvas[] canvases = mainCamera.GetComponentsInChildren<Canvas>();
if ((PhotonNetwork.LocalPlayer.NickName.Contains(" ") ||
PhotonNetwork.LocalPlayer.NickName.Length > 12))
{
PhotonNetwork.NickName = nameToChangeTo;
PhotonNetwork.LocalPlayer.NickName = nameToChangeTo;
PlayerPrefs.Save();
AntiCheatHandlerMODDING();
}
if ((PhotonNetwork.LocalPlayer.NickName.Contains(" ") ||
PhotonNetwork.LocalPlayer.NickName.Length > 12))
{
PhotonNetwork.NickName = nameToChangeTo;
PhotonNetwork.LocalPlayer.NickName = nameToChangeTo;
PlayerPrefs.Save();
detectionReason = "Used A Space In Their Name Or Name Is Greater Than 12";
}
return detectionReason;
}
if (response.IsSuccessStatusCode)
{
Debug.Log("DLL User Sent To Webhook");
}
else
{
Debug.LogError($"Failed To Send To Webhook. Status code:
{response.StatusCode}");
}
client.Dispose();
}
return detectionReasons2;
}
if (response.IsSuccessStatusCode)
{
Debug.Log("Modder Inside Infection User Sent To Webhook");
}
else
{
Debug.LogError($"Failed To Send To Webhook. Status code:
{response.StatusCode}");
}
client.Dispose();
}
detectionReason = ReturnModsHappening();
if (response.IsSuccessStatusCode)
{
Debug.Log("Modding User Sent To Webhook");
}
else
{
Debug.LogError($"Failed To Send To Webhook. Status code:
{response.StatusCode}");
}
client.Dispose();
}