mirror of
https://github.com/djdevin/recnet-plugin.git
synced 2026-09-08 22:51:34 -07:00
2023 eac patch
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
using RecRoom.AntiCheat;
|
||||||
|
using System.Text;
|
||||||
|
using Il2CppSystem;
|
||||||
|
|
||||||
|
namespace CannedNet.Client.Patches;
|
||||||
|
|
||||||
|
[HarmonyPatch]
|
||||||
|
public static class EACPatches
|
||||||
|
{
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(EACManager), "FJLMLEPOKGE")]
|
||||||
|
private static bool IsReadyPatch(ref bool __result)
|
||||||
|
{
|
||||||
|
__result = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(EACManager), "GenerateChallengeResponse")]
|
||||||
|
private static bool GenerateChallengeResponsePatch(string PGCINMIEBJP, ref string __result)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(PGCINMIEBJP))
|
||||||
|
__result = Convert.ToBase64String(Encoding.UTF8.GetBytes(PGCINMIEBJP));
|
||||||
|
else
|
||||||
|
__result = Convert.ToBase64String(Encoding.UTF8.GetBytes("i hate this"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user