Skip to content

Commit

Permalink
7.90 auto-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rev1si0n committed Jan 5, 2025
1 parent 5515cbe commit 744e8ef
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
7.90
* 持久化脚本支持 spawn 模式
* 支持持久化脚本输出日志
* 修复 dump_window_hierarchy
* 修复 frida 实例获取逻辑错误

7.85
* 支持 mDNS 广播服务
* 支持枚举选择器选中的所有元素
Expand Down
2 changes: 1 addition & 1 deletion lamda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# Distributed under MIT license.
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
__version__ = "7.85"
__version__ = "7.90"
12 changes: 11 additions & 1 deletion lamda/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _child_sibling(self, name, **selector):
s.setdefault("childOrSiblingSelector", [])
s["childOrSiblingSelector"].append(selector)
s["childOrSibling"].append(name)
return self.__class__(self.stub, s)
return self.__class__(self.caller, s)
def child(self, **selector):
"""
匹配选择器里面的子节点
Expand Down Expand Up @@ -1211,6 +1211,7 @@ def is_installed(self):
def attach_script(self, script, runtime=ScriptRuntime.RUNTIME_QJS,
emit="",
encode=DataEncode.DATA_ENCODE_NONE,
spawn=False,
standup=5):
"""
向应用注入持久化 Hook 脚本
Expand All @@ -1222,6 +1223,7 @@ def attach_script(self, script, runtime=ScriptRuntime.RUNTIME_QJS,
req.script = script
req.runtime = runtime
req.standup = standup
req.spawn = spawn
req.destination = emit
req.encode = encode
r = self.stub.attachScript(req)
Expand Down Expand Up @@ -2151,6 +2153,14 @@ def __init__(self, host, port=65000,
def frida(self):
if _frida_dma is None:
raise ModuleNotFoundError("frida")
try:
device = _frida_dma.get_device_matching(
lambda d: d.name==self.server)
# make a call to check server connectivity
device.query_system_parameters()
return device
except:
""" No-op """
kwargs = {}
if self.certificate is not None:
kwargs["certificate"] = self.certificate
Expand Down
1 change: 1 addition & 0 deletions lamda/rpc/application.proto
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ message HookRequest {
string destination = 4;
DataEncode encode = 5;
uint32 standup = 6;
bool spawn = 7;
}

message HookRpcRequest {
Expand Down

0 comments on commit 744e8ef

Please sign in to comment.