Snippets

Zhiwei Li wechat voice verification code for china's phone

Created by Zhiwei Li

File frida_wechat_voice_code.py Added

  • Ignore whitespace
  • Hide word diff
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+import frida,sys
+
+rdev = frida.get_remote_device()
+session = rdev.attach("com.tencent.mm")
+
+def on_message(message ,data):
+    try:
+        if message:
+            print("[*] {0}".format(message["payload"]))
+    except Exception as e:
+        print(message)
+        print(e)
+    
+    
+    
+jscode = """
+send(Java.available); 
+Java.perform(function () {
+    var Dingdong = Java.use("com.tencent.mm.z.b");
+
+    Dingdong.jt.overload("java.lang.String").implementation = function (s1) {
+        send(s1);      
+        var ret = this.jt(s1);
+        send(ret);
+        ret = true;
+        return ret;
+    };    
+});    
+""" 
+
+jscode2 = """
+send(Java.available); 
+Java.perform(function () {
+    var Dingdong = Java.use("com.tencent.mm.z.b");
+    var ret = Dingdong.jt("+8613800138000");
+    send(ret);
+    ret = true;
+    send(ret);
+});    
+""" 
+
+
+
+script = session.create_script(jscode)
+script.on("message" , on_message)
+script.load()
+
+try:
+    sys.stdin.read()
+except KeyboardInterrupt as e:
+    session.detach()
+    sys.exit(0) 
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.