x1ongzhu hace 1 año
padre
commit
5123c25d75
Se han modificado 1 ficheros con 20 adiciones y 41 borrados
  1. 20 41
      scripts/spoof_sms.js

+ 20 - 41
scripts/spoof_sms.js

@@ -32,53 +32,32 @@ class Log {
 function trace(tag) {
     Log.e((tag || '') + Java.use('android.util.Log').getStackTraceString(Java.use('java.lang.Throwable').$new()))
 }
-
 setImmediate(() => {
+   
     Java.perform(function () {
-        const PhoneNumberVerification = Java.use('com.google.android.gms.constellation.PhoneNumberVerification')
-        PhoneNumberVerification.$init.overload(
-            'java.lang.String',
-            'long',
-            'int',
-            'int',
-            'java.lang.String',
-            'android.os.Bundle',
-            'int',
-            'long'
-        ).implementation = function (a, b, c, d, e, f, g, h) {
-            Log.i('PhoneNumberVerification.$init', a, b, c, d, e, f, g, h)
-            return this.$init(a, b, c, d, e, f, g, h)
+        const agay = Java.use('agay')
+        agay.q.overload('boolean').implementation = function (z) {
+            trace('agay.q(boolean)')
+            this.q(z)
         }
 
-        const VerifyPhoneNumberRequest = Java.use('com.google.android.gms.constellation.VerifyPhoneNumberRequest')
-        VerifyPhoneNumberRequest.$init.overload(
-            'java.lang.String',
-            'long',
-            'com.google.android.gms.constellation.IdTokenRequest',
-            'android.os.Bundle',
-            'java.util.List',
-            'boolean',
-            'int',
-            'java.util.List'
-        ).implementation = function (a, b, c, d, e, f, g, h) {
-            Log.i('VerifyPhoneNumberRequest.$init', a, b, c, d, e, f, g, h)
-            return this.$init(a, b, c, d, e, f, g, h)
-        }
+        const bwlc = Java.use('bwlc')
+        bwlc.r.overload('java.lang.Object', 'java.util.List').implementation = function (obj, list) {
+            trace('bwlc.r(Object, List)')
+            console.log('obj:', obj)
+            console.log('list:', list)
+            for (let i = 0; i < list.size(); i++) {
+                console.log(list.get(i))
+            }
 
-        const bhyo = Java.use('bhyo')
-        bhyo.d.overload('java.lang.String').implementation = function (str) {
-            Log.s(`bhyo.d(str=${str}) modify res.b to upi-carrier-id-with-mo-sms-relax`)
-            const res = this.d(str)
-            // res.b.value = 'upi-carrier-id-with-mo-sms-relax'
-            Log.s(res)
-            return res
+            const bwsxVar = Java.cast(this.T.value.b(), Java.use('bwsx'))
+            console.log(bwsxVar)
+            bwsxVar.a(3)
+            const bnfu = Java.use('bnfu')
+            this.m(bnfu.b(2))
+            return this.r(obj, list)
         }
 
-        bhyo.c.overload('java.lang.String').implementation = function (str) {
-            Log.s(`bhyo.c(str=${str}) modify res.C to 1`)
-            const res = this.c(str)
-            res.C.value = 2
-            return res
-        }
+        
     })
 }, 0)