Bypass signature check in Assembly.Csharp.dll

Sbenny.com is trusted by 1,313,355 happy users since 2014.
Register

AndnixSH

Savage Lv6️⃣
SB Mod Squad ⭐
Member for 8 years


Well that's pretty easy, just search IsGenuine, GetSignature or InstalledFromRightLocation and return it to TRUE. They are all boolean.

Use dnSpy, it's much easier to edit code. Right click inside method code, select "Edit Method (C#)..." and replace it with "return true;"



Tip: Dump source code from dll and search keywords in files using Notepad++ and analize them. It's much easier for me because i can search string, url string, excat code etc.

Keywords to search: Integrity, Check, Genuine, Signature, Installed, Location etc.

How i found IsGenuine?

First, i was analizing ShowInvalidBuildError() but i was unable to locate the check, so i just just dump the entire source code and search "signature" in files using Notepad++ because it's much easier for me to find the useful code. My former friend told me that trick.

How i found InstalledFromRightLocation?

I recorded a logcat using Matlog app to find an error, and i already found interesting function ReceiveInstallFromWrongLocationError()



so i took a look in dnSpy. I analized it , look InitOnStart() and there is a code

Code:
bool flag2 = AndroidUnityUtilWrapper.InstalledFromRightLocation();
InstalledFromRightLocation() is also an interesting method. It was a boolean so I returned it true and it worked!

Credits:
iAndroHacker
 

Sbenny

A crazy scientist
Staff member
Admin
SB Mod Squad ⭐
✔ Approved Releaser
Active User
Thank you so much buddy, this will be very useful to all the community. :)
 

kryo

APK Fanatic Lv5️⃣
Member for 7 years
good one as usual. :)
 
Top