Skip to content

Commit 744e8ef

Browse files
committed
7.90 auto-commit
1 parent 5515cbe commit 744e8ef

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

CHANGELOG.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
7.90
2+
* 持久化脚本支持 spawn 模式
3+
* 支持持久化脚本输出日志
4+
* 修复 dump_window_hierarchy
5+
* 修复 frida 实例获取逻辑错误
6+
17
7.85
28
* 支持 mDNS 广播服务
39
* 支持枚举选择器选中的所有元素

lamda/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#
33
# Distributed under MIT license.
44
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5-
__version__ = "7.85"
5+
__version__ = "7.90"

lamda/client.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def _child_sibling(self, name, **selector):
408408
s.setdefault("childOrSiblingSelector", [])
409409
s["childOrSiblingSelector"].append(selector)
410410
s["childOrSibling"].append(name)
411-
return self.__class__(self.stub, s)
411+
return self.__class__(self.caller, s)
412412
def child(self, **selector):
413413
"""
414414
匹配选择器里面的子节点
@@ -1211,6 +1211,7 @@ def is_installed(self):
12111211
def attach_script(self, script, runtime=ScriptRuntime.RUNTIME_QJS,
12121212
emit="",
12131213
encode=DataEncode.DATA_ENCODE_NONE,
1214+
spawn=False,
12141215
standup=5):
12151216
"""
12161217
向应用注入持久化 Hook 脚本
@@ -1222,6 +1223,7 @@ def attach_script(self, script, runtime=ScriptRuntime.RUNTIME_QJS,
12221223
req.script = script
12231224
req.runtime = runtime
12241225
req.standup = standup
1226+
req.spawn = spawn
12251227
req.destination = emit
12261228
req.encode = encode
12271229
r = self.stub.attachScript(req)
@@ -2151,6 +2153,14 @@ def __init__(self, host, port=65000,
21512153
def frida(self):
21522154
if _frida_dma is None:
21532155
raise ModuleNotFoundError("frida")
2156+
try:
2157+
device = _frida_dma.get_device_matching(
2158+
lambda d: d.name==self.server)
2159+
# make a call to check server connectivity
2160+
device.query_system_parameters()
2161+
return device
2162+
except:
2163+
""" No-op """
21542164
kwargs = {}
21552165
if self.certificate is not None:
21562166
kwargs["certificate"] = self.certificate

lamda/rpc/application.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ message HookRequest {
101101
string destination = 4;
102102
DataEncode encode = 5;
103103
uint32 standup = 6;
104+
bool spawn = 7;
104105
}
105106

106107
message HookRpcRequest {

0 commit comments

Comments
 (0)