rdev frida.get_remote_device()
processes rdev.enumerate_processes() # 安卓手机中的所有进程
# print(processes)
session rdev.attach( com.rt.market.fresh )
# print(session)
script session.create_script(sta)
script.on( message , on_message)
script.load()
sys.stdin.read()
五、请求测试
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Time : 2021/2/23 14:15
# Author :
# Platform:
import time
import json
import hashlib
import base64,hmac
import requests
import warnings
warnings.filterwarnings( ignore )
T time.strftime( %Y%m%d%H%M%S , time.localtime())
print(T)
def login_info(phone):
url https://membase-yxapp.feiniu.com/loginController/login/a132
headers {
Content-Type : application/x-www-form-urlencoded ,
Content-Length : 761 ,
Host : membase-yxapp.feiniu.com ,
Connection : Keep-Alive ,
Accept-Encoding : gzip ,
User-Agent : okhttp/3.12.0
data_json { addrId : , apiVersion : a1.32 , appVersion : 1.4.0 , body :{ cid : af7a589f425a387519c56b2224fa22a3 , isFromReg : 0 , password : 123456qerrt , storeCode : , username :phone}, channel : WanDouJia , deviceId : 2ce10d59284c091b-0d59-2ce1-091b-284c , httpsEnable :1, isSimulator :False, networkType : WIFI , osType :1, reRule : 4 , scopeType :0, source : yx , time :T, token : f062fb5d76032dd31df051216a3738a3 , viewSize : 1440x2392 }
dataStr json.dumps(data_json, ensure_ascii False)
isSimulator data_json[ isSimulator ]
viewSize data_json[ viewSize ]
networkType data_json[ networkType ]
time data_json[ time ]
# isSimulator 是否是模拟器 布尔值,Java中的值是小写,所以这里要转换为小写
dataStr dataStr (str(isSimulator).lower() viewSize networkType time)
print(dataStr)