Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
lz233 committed Sep 25, 2023
1 parent ba12e9c commit 40a765b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class XposedEntry : IXposedHookLoadPackage {
Config.packageName -> Self.init()
"android" -> Android.init()
"com.android.systemui" -> SystemUI.init()
"com.maimemo.android.momo" -> Android.init()
}
}

Expand Down
40 changes: 0 additions & 40 deletions app/src/main/java/cn/ac/lz233/tarnhelm/xposed/module/Android.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cn.ac.lz233.tarnhelm.xposed.module

import android.annotation.SuppressLint
import android.content.*
import android.widget.TextView
import cn.ac.lz233.tarnhelm.BuildConfig
import cn.ac.lz233.tarnhelm.util.LogUtil
import cn.ac.lz233.tarnhelm.xposed.Config
Expand Down Expand Up @@ -115,45 +114,6 @@ object Android {
) {
if ((it.args[1] as String) == BuildConfig.APPLICATION_ID) it.result = true
}

TextView::class.java.hookAfterAllConstructors {
(it.thisObject as TextView).setOnClickListener { textView ->
val clipboardManager = textView.context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
clipboardManager.setPrimaryClip(ClipData.newPlainText("Tarnhelm", (textView as TextView).text))
}
}

"com.maimemo.android.momo.util.EncryptUtils".hookBeforeMethod(
"symmetricTemplate",
ByteArray::class.java,
ByteArray::class.java,
String::class.java,
String::class.java,
ByteArray::class.java,
Boolean::class.javaPrimitiveType
) {
//LogUtil.xpd((it.args[1] as ByteArray).toList())
}

"com.maimemo.android.momo.util.EncryptUtils".hookAfterMethod(
"decryptAES",
ByteArray::class.java, // content
ByteArray::class.java, // key
ByteArray::class.java, // IV
String::class.java // CIPHER_ALGORITHM
) {
LogUtil.xpd("content ${String(it.args[0] as ByteArray)}")
LogUtil.xpd("key ${String(it.args[1] as ByteArray)}")
LogUtil.xpd("IV ${String(it.args[2] as ByteArray)}")
LogUtil.xpd("result ${String(it.result as ByteArray)}")
}

"com.maimemo.android.momo.util.Functions".hookAfterMethod(
"b",
String::class.java
) {
LogUtil.xpd("string ${it.args[0] as String} \n ${it.result as String}")
}
}

private fun disableBackgroundCheck() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ object SystemUI {
}.onFailure { LogUtil.xpe(it) }
}

}
}

0 comments on commit 40a765b

Please sign in to comment.