mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: bypass shamrock detection
This commit is contained in:
parent
48e4648110
commit
30b48c6677
@ -138,10 +138,12 @@ char * __cdecl my_strstr(const char *lhs, const char *rhs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int fake_memcmp(const void* __lhs, const void* __rhs, size_t __n) {
|
int fake_memcmp(const void* __lhs, const void* __rhs, size_t __n) {
|
||||||
if (my_strstr((const char*) __rhs, "shamrock")) {
|
if (my_strstr((const char*) __rhs, "shamrock") && my_strstr((const char*) __lhs, "shamrock")) {
|
||||||
if (backup_memcmp(__lhs, __rhs, __n) == 0) {
|
if (backup_memcmp(__lhs, __rhs, __n) == 0) {
|
||||||
// 底层广播判断
|
// 底层广播判断
|
||||||
return 0;
|
return 0;
|
||||||
|
} else {
|
||||||
|
LOGI("[Shamrock] QQ好像正在寻找Shamrock");
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
package moe.fuqiuluo.qqinterface.servlet
|
||||||
|
|
||||||
|
import com.tencent.mobileqq.qqguildsdk.api.IGPSService
|
||||||
|
|
||||||
|
internal object GProSvc: BaseSvc() {
|
||||||
|
|
||||||
|
|
||||||
|
fun getSelfTinyId(): Long {
|
||||||
|
val service = app.getRuntimeService(IGPSService::class.java, "all")
|
||||||
|
return service.selfTinyId.toLong()
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user