Solved Codestage Bypass

Status
Not open for further replies.

whiteboiz93

Platinian
Original poster
Jan 7, 2022
26
5
3
31
Kansad
I have been trying to mod this Game with no success Google Link- The Horus Heresy: Legions TCG - Apps on Google Play
Download link- https://cdn.down-apk.com/com.Everguild.HorusHeresy/The Horus Heresy: Legions TCG_2.1.2_apkcombo.com.apk?ecp=Y29tLkV2ZXJndWlsZC5Ib3J1c0hlcmVzeS8yLjEuMi8zMDA0MTEuOGE3YzEzYzYxZWQ3YmZjZTdlMTk2OWY3MzA5ZmQyMjE3YmE5NGNjMS5hcGs=&iat=1644456379&sig=956c01e6316a74f0d650930b2f5b5e16&size=123322345&from=cf&version=latest&mirror=main

My issue is that i cant bypass the codestage Anticheat Im New to This but i get the concept


Im using Dnspy and i can find the class that i want to change-
1644459194949.png


And i thought that if i called -
this.StopDetectionInternal(); it would stop it when codestage started-
1644459218278.png


Also i used this.StopDetectionInternal(); on one more class OnCheatingDetected -
1644459239643.png


Just tryin to prevent it from starting

Then i tried to mod the coins with this line
// Token: 0x170006B1 RID: 1713
// (get) Token: 0x06003239 RID: 12857 RVA: 0x000025C8 File Offset: 0x000007C8
// (set) Token: 0x0600320C RID: 12812 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170006B1")]
public ObscuredInt playerCoins
{
[Address(RVA = "0x18A5904", Offset = "0x18A5904", VA = "0x18A5904")]
[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x85C0D4", Offset = "0x85C0D4")]
[Token(Token = "0x6003239")]
get
{
this;
return 999999999;
}
[Token(Token = "0x600320C")]
[Address(RVA = "0x18A2CA0", Offset = "0x18A2CA0", VA = "0x18A2CA0")]
[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x85BFF4", Offset = "0x85BFF4")]
private set
{
}
}
-
1644459298172.png


but it didnt work when i tried the mod

the next step i did was use hex editor to mod the libil2cpp.so with the hex codes i made in dnSpy
I got the codes this way -
1644459349587.png


Then Coped the hex instructions to use in hdx on the libil2cpp.so
1644459474877.png

The Way i got the offset to change in hdx was by coping the offset from dnspy-
1644459435354.png

I then used Ctrl-G to find offset
Ctrl-B to insert the hex instructions
Repeated for coins and Anti Cheat.
i then recompiled the apk with apktool tried the mod and it didnt work any help would be greatly appreciated.

Thanks And Happy Modding
 
  • Love
Reactions: Duy112233

DokoRoxor

Just Crazy
Jun 9, 2018
313
18,296
1,193
35
Somewhere in The Sky
The game he is trying to mods is an il2cpp game . This tutorial will not help him cuz he is trying to mod the dummydll into dnspy instead of patchin libil2cpp thoug hexeditor .
 
  • Haha
Reactions: xyzhunter

DokoRoxor

Just Crazy
Jun 9, 2018
313
18,296
1,193
35
Somewhere in The Sky
U are using the hexeditor from dnspy into the dummydll . Dummydll are here tonprovide infos you want to know where and what to mod. You have to download HXD from google or any hexeditor who support binary and load libil2cpp.so file into it and jump to adress offset provide by dnspy into adress and hexpatch the function to mod. Then copy back the modified il2cpp into him lib folder into the apk and sign it with apktool. I tell you to do this since 2 weeks mate to nop the fonctions i have also provide you nop hex code .
 
Last edited:

DokoRoxor

Just Crazy
Jun 9, 2018
313
18,296
1,193
35
Somewhere in The Sky
Just folow this tutorial cuz you seem lost in every point you need to learn the basics first.
Hope you will sucess.
 

xyzhunter

PMT Modder
Staff member
Modding-Team
Oct 28, 2020
2,261
117,479
1,213
Indonesia
or if you have more money , check this :

this recommended for learn modding by @Mika Cybertron
 

8BIT

Approved Modder
Approved Modder
Dec 29, 2019
264
18,148
1,193
The Way i got the offset to change in hdx was by coping the offset from dnspy-
I dont Understant Why Yu Did That If You Can Basically Hook The Start Function And On Trigger Call The Stop Function
 

whiteboiz93

Platinian
Original poster
Jan 7, 2022
26
5
3
31
Kansad
Im New to modding (like no more than 2 and a half weeks new) but ive done More research And found out this

That The Dlls are for referance to the libil2cpp.so Also i now know a little bit about hex and Arm and how to edit instructions in hxd with hex codes
Hex
Start Detection Automatically (Injector Detecor) Offset - 1420D14 /// 1F2003D5C0035FD6

Base Start Offset - 6F2508 /// 1F2003D5C0035FD6

Auto start (tooltip) offset - 6CC6F4 /// 1F2003D5C0035FD6

Remove Cheat offset - 6CD958 /// 1F2003D5C0035FD6

On Cheating Dectected - AC2F70 /// 1F2003D5C0035FD6

Injection Start Detection Automatically Offset- 122D528 /// 1F2003D5C0035FD6

Then i did

Add Player Coins Offset - 1776658 / 00 E0 AF D2 C0 03 5F D6
Get Player Coins Offset - 17895AC / 00 E0 AF D2 C0 03 5F D6
Get Player Tickets Offset - 1777468 / 00 E0 AF D2 C0 03 5F D6
Get Player Gems - 177AAF4 / 00 E0 AF D2 C0 03 5F D6

then recompiled the apk with the modded libil2cpp.so The Game starts up fine but does not have mods in it and i used Game Guardian to Try to edit values and they would go up but about 3 seconds later they revert back
I Know Im new to this but ive been researching All this every chance i get .
 

Raebydett

Awesome Active Platinian
Jan 20, 2020
179
63
28
G
You doing good but the only mistake is u patch hex using dnspy, u need to use program named HxD editor not dnspy. Anyways this codestage doesnt do any different, only newbies would believe this bypass anti cheat lol
 

NullCoder

Inactive Approved Modder
Jun 8, 2020
110
902
93
21
None
There are many ways to disable Code Stage in games. I advise you to try returning false to the OnCheatingDetected method, at least this worked so the game didn't crash after the change.
 
Status
Not open for further replies.