-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3ef87a
commit 15dc41f
Showing
16 changed files
with
294 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
app/src/main/java/me/bingyue/IceCore/hook_app/android.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package me.bingyue.IceCore.hook_app; | ||
|
||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XposedBridge; | ||
import de.robv.android.xposed.XposedHelpers; | ||
|
||
public class android { | ||
public static void hook_init(){ | ||
XposedHelpers.findAndHookMethod(ClassLoader.class, "loadClass", String.class, new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
if (param.hasThrowable()) return; | ||
Class<?> cls = (Class<?>) param.getResult(); | ||
if(cls.getClassLoader().toString().contains("/data/fakeloc/libfakeloc.so")) { | ||
XposedBridge.log("hook libfakeloc.so"); | ||
new Thread(new Runnable() { | ||
@Override | ||
public void run() { | ||
try { | ||
Thread.sleep(3500); | ||
XposedBridge.log("start"); | ||
XposedHelpers.findAndHookMethod("com.lerist.inject.utils.ޏ", cls.getClassLoader(), "އ", new XC_MethodHook() { | ||
@Override | ||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable { | ||
super.beforeHookedMethod(param); | ||
} | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(true); | ||
} | ||
}); | ||
XposedHelpers.findAndHookMethod("com.lerist.inject.utils.ބ", cls.getClassLoader(), "ރ", java.lang.String.class, int.class, new XC_MethodHook() { | ||
@Override | ||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable { | ||
param.args[0]="114.114.114.114";//把vef.api.fakeloc.cc改为114.114.114.114 | ||
} | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
super.afterHookedMethod(param); | ||
} | ||
}); | ||
}catch (Exception e){ | ||
e.printStackTrace(); | ||
} | ||
} | ||
}).start(); | ||
} | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
app/src/main/java/me/bingyue/IceCore/hook_app/com_lerist_fakelocation_old.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
package me.bingyue.IceCore.hook_app; | ||
|
||
import android.content.Context; | ||
|
||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XposedHelpers; | ||
import de.robv.android.xposed.callbacks.XC_LoadPackage; | ||
import me.bingyue.IceCore.config.Config; | ||
import android.util.Base64; | ||
|
||
|
||
import javax.crypto.Cipher; | ||
import javax.crypto.SecretKey; | ||
import javax.crypto.SecretKeyFactory; | ||
import javax.crypto.spec.DESKeySpec; | ||
|
||
public class com_lerist_fakelocation_old { | ||
public static void hook_init(XC_LoadPackage.LoadPackageParam lpparam){ | ||
XposedHelpers.findAndHookMethod("com.stub.StubApp", lpparam.classLoader, "attachBaseContext", Context.class, new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
super.afterHookedMethod(param); | ||
Context context = (Context) param.args[0]; | ||
ClassLoader classLoader = context.getClassLoader(); | ||
XposedHelpers.findAndHookMethod("ކ.ޖ$֏", classLoader, "ށ", java.lang.String.class, new XC_MethodHook() { | ||
@Override | ||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable { | ||
if(Config.com_lerist_fakelocation__verify_old){ | ||
param.args[0]="114.114.114.114"; | ||
} | ||
} | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
super.afterHookedMethod(param); | ||
} | ||
}); | ||
|
||
Class<?> JSONClass =XposedHelpers.findClass("com.alibaba.fastjson.JSON",classLoader); | ||
|
||
XposedHelpers.findAndHookMethod("ށ.ރ.ށ.ހ.ށ.ؠ", classLoader, "֏", java.lang.String.class, java.lang.Class.class, new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
if(param.args[0]=="key_userinfo" && Config.com_lerist_fakelocation__vip_old){ | ||
long proindate=System.currentTimeMillis()+200000000; | ||
long tokenTime=System.currentTimeMillis()+500000000; | ||
String key = "1#" + Long.toString(proindate) + "#" + Long.toString(tokenTime) + "#T"; | ||
String data = "{\"key\":\"" + desEncryptECB(key, "Lerist.T") + "\",\"loginName\":\"IceCore\",\"loginTime\":0,\"loginType\":\"email\",\"proindate\":" + Long.toString(proindate) + ",\"stability\":0,\"token\":\"T\",\"type\":1}"; | ||
param.setResult(XposedHelpers.callStaticMethod(JSONClass,"parseObject",data,param.args[1])); | ||
return; | ||
} | ||
super.afterHookedMethod(param); | ||
} | ||
}); | ||
|
||
XposedHelpers.findAndHookMethod("ށ.ރ.ށ.ހ.ށ.ؠ", classLoader, "ނ", new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(false); | ||
} | ||
}); | ||
|
||
XposedHelpers.findAndHookMethod("ށ.ރ.ؠ.ހ.ؠ", classLoader, "ށ", java.lang.String.class, new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(true); | ||
} | ||
}); | ||
|
||
XposedHelpers.findAndHookMethod("ށ.ރ.ؠ.ހ.ؠ", classLoader, "ؠ", new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(null); | ||
} | ||
}); | ||
|
||
XposedHelpers.findAndHookMethod("ށ.ރ.ؠ.ؠ.֏", classLoader, "ޅ",Context.class, new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(true); | ||
} | ||
}); | ||
|
||
} | ||
}); | ||
|
||
} | ||
|
||
|
||
public static String desEncryptECB(String content, String key) { | ||
try { | ||
Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding"); | ||
DESKeySpec desKeySpec = new DESKeySpec(key.getBytes()); | ||
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); | ||
SecretKey secretKey = keyFactory.generateSecret(desKeySpec); | ||
cipher.init(Cipher.ENCRYPT_MODE, secretKey); | ||
byte[] result = cipher.doFinal(content.getBytes()); | ||
return Base64.encodeToString(result, Base64.DEFAULT); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
return null; | ||
} | ||
public static String desECBDecrypt(byte[] data, String key) throws Exception { | ||
Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding"); | ||
DESKeySpec desKeySpec = new DESKeySpec(key.getBytes()); | ||
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); | ||
SecretKey secretKey = keyFactory.generateSecret(desKeySpec); | ||
cipher.init(Cipher.DECRYPT_MODE, secretKey); | ||
byte[] encryptedData = Base64.decode(data, Base64.DEFAULT); | ||
byte[] decryptedData = cipher.doFinal(encryptedData); | ||
return new String(decryptedData); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
app/src/main/java/me/bingyue/IceCore/hook_app/io_moreless_tide.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package me.bingyue.IceCore.hook_app; | ||
|
||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XposedHelpers; | ||
import de.robv.android.xposed.callbacks.XC_LoadPackage; | ||
import me.bingyue.IceCore.config.Config; | ||
|
||
public class io_moreless_tide { | ||
public static void hook_init(XC_LoadPackage.LoadPackageParam lpparam){ | ||
hook_vip(lpparam); | ||
} | ||
|
||
public static void hook_vip(XC_LoadPackage.LoadPackageParam lpparam){ | ||
if(!Config.io_moreless_tide__isvip){ | ||
return; | ||
} | ||
XposedHelpers.findAndHookMethod("io.moreless.tide.base.model.User$Vip", lpparam.classLoader, "getExpired", new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(false); | ||
super.afterHookedMethod(param); | ||
} | ||
}); | ||
XposedHelpers.findAndHookMethod("io.moreless.tide.base.model.User$Vip", lpparam.classLoader, "getValid", new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(true); | ||
super.afterHookedMethod(param); | ||
} | ||
}); | ||
XposedHelpers.findAndHookMethod("k1.l", lpparam.classLoader, "ll", new XC_MethodHook() { | ||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(true); | ||
super.afterHookedMethod(param); | ||
} | ||
}); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
app/src/main/java/me/bingyue/IceCore/hook_app/tech_xiangzi_painless.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package me.bingyue.IceCore.hook_app; | ||
|
||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XposedHelpers; | ||
import de.robv.android.xposed.callbacks.XC_LoadPackage; | ||
import me.bingyue.IceCore.config.Config; | ||
|
||
public class tech_xiangzi_painless { | ||
public static void hook_init(XC_LoadPackage.LoadPackageParam lpparam){ | ||
hook_vip(lpparam); | ||
} | ||
|
||
public static void hook_vip(XC_LoadPackage.LoadPackageParam lpparam){ | ||
if(!Config.tech_xiangzi_painless__isvip){ | ||
return; | ||
} | ||
XposedHelpers.findAndHookMethod("tech.xiangzi.painless.data.remote.model.UserBean", lpparam.classLoader, "getPro", new XC_MethodHook() { | ||
@Override | ||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable { | ||
super.beforeHookedMethod(param); | ||
} | ||
|
||
@Override | ||
protected void afterHookedMethod(MethodHookParam param) throws Throwable { | ||
param.setResult(9); | ||
super.afterHookedMethod(param); | ||
} | ||
}); | ||
} | ||
} |
Oops, something went wrong.