lamda 7.15__tar.gz → 7.22__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {lamda-7.15 → lamda-7.22}/PKG-INFO +10 -1
- {lamda-7.15 → lamda-7.22}/README.md +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/__init__.py +2 -2
- {lamda-7.15 → lamda-7.22}/lamda/bcast.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/client.py +13 -14
- {lamda-7.15 → lamda-7.22}/lamda/exceptions.py +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/application.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/debug.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/file.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/policy.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/proxy.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/services.proto +1 -2
- {lamda-7.15 → lamda-7.22}/lamda/rpc/settings.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/shell.proto +4 -3
- {lamda-7.15 → lamda-7.22}/lamda/rpc/status.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/storage.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/types.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/uiautomator.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/util.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/rpc/wifi.proto +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/types.py +1 -1
- {lamda-7.15 → lamda-7.22}/lamda.egg-info/PKG-INFO +10 -1
- {lamda-7.15 → lamda-7.22}/setup.py +1 -1
- {lamda-7.15 → lamda-7.22}/lamda/const.py +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/any.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/api.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/compiler/plugin.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/descriptor.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/duration.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/empty.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/field_mask.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/source_context.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/struct.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/timestamp.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/type.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/wrappers.proto +0 -0
- {lamda-7.15 → lamda-7.22}/lamda.egg-info/SOURCES.txt +0 -0
- {lamda-7.15 → lamda-7.22}/lamda.egg-info/dependency_links.txt +0 -0
- {lamda-7.15 → lamda-7.22}/lamda.egg-info/not-zip-safe +0 -0
- {lamda-7.15 → lamda-7.22}/lamda.egg-info/requires.txt +0 -0
- {lamda-7.15 → lamda-7.22}/lamda.egg-info/top_level.txt +0 -0
- {lamda-7.15 → lamda-7.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lamda
|
3
|
-
Version: 7.
|
3
|
+
Version: 7.22
|
4
4
|
Summary: Android reverse engineering & automation framework
|
5
5
|
Home-page: https://github.com/rev1si0n/lamda
|
6
6
|
Author: rev1si0n
|
@@ -13,4 +13,13 @@ Classifier: Programming Language :: Python :: 3
|
|
13
13
|
Classifier: Operating System :: Android
|
14
14
|
Classifier: Topic :: Security
|
15
15
|
Requires-Python: >=3.6,<3.12
|
16
|
+
Requires-Dist: grpcio-tools<1.60.0,>=1.35.0
|
17
|
+
Requires-Dist: grpc-interceptor<0.15.0,>=0.13.0
|
18
|
+
Requires-Dist: grpcio<1.60.0,>=1.35.0
|
19
|
+
Requires-Dist: cryptography>=35.0.0
|
20
|
+
Requires-Dist: msgpack>=1.0.0
|
21
|
+
Requires-Dist: asn1crypto<2,>=1.0.0
|
22
|
+
Requires-Dist: pem==23.1.0
|
16
23
|
Provides-Extra: full
|
24
|
+
Requires-Dist: frida<17.0.0,>=16.0.0; extra == "full"
|
25
|
+
Requires-Dist: pyreadline==2.1; sys_platform == "win32"
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# Copyright 2022 rev1si0n (
|
1
|
+
# Copyright 2022 rev1si0n (lamda.devel@gmail.com). All rights reserved.
|
2
2
|
#
|
3
3
|
# Distributed under MIT license.
|
4
4
|
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
5
|
-
__version__ = "7.
|
5
|
+
__version__ = "7.22"
|
@@ -738,7 +738,7 @@ class UiAutomatorStub(BaseServiceStub):
|
|
738
738
|
func = lambda: self.stub.registerNoneOpWatcher(req).value
|
739
739
|
self.watchers[name]["enable"] = func
|
740
740
|
def _remove_watcher(self, name):
|
741
|
-
return self.stub.removeWatcher(protos.String(value=name))
|
741
|
+
return self.stub.removeWatcher(protos.String(value=name)).value
|
742
742
|
def set_watcher_enabled(self, name, enable):
|
743
743
|
"""
|
744
744
|
设置是否启用此 watcher
|
@@ -1414,11 +1414,13 @@ class SettingsStub(BaseServiceStub):
|
|
1414
1414
|
|
1415
1415
|
|
1416
1416
|
class ShellStub(BaseServiceStub):
|
1417
|
-
def execute_script(self, script, alias=None
|
1417
|
+
def execute_script(self, script, alias=None,
|
1418
|
+
timeout=60):
|
1418
1419
|
"""
|
1419
1420
|
前台执行一段脚本(支持标准的多行脚本)
|
1420
1421
|
"""
|
1421
|
-
req = protos.ShellRequest(name=alias, script=script
|
1422
|
+
req = protos.ShellRequest(name=alias, script=script,
|
1423
|
+
timeout=timeout)
|
1422
1424
|
r = self.stub.executeForeground(req)
|
1423
1425
|
return r
|
1424
1426
|
def execute_background_script(self, script, alias=None):
|
@@ -1676,15 +1678,9 @@ class LockStub(BaseServiceStub):
|
|
1676
1678
|
req = protos.Integer(value=leaseTime)
|
1677
1679
|
r = self.stub.acquireLock(req)
|
1678
1680
|
return r.value
|
1679
|
-
def get_locking_session(self):
|
1680
|
-
"""
|
1681
|
-
获取当前占有设备锁的会话ID
|
1682
|
-
"""
|
1683
|
-
r = self.stub.getLockingSession(protos.Empty())
|
1684
|
-
return r.value
|
1685
1681
|
def get_session_token(self):
|
1686
1682
|
"""
|
1687
|
-
|
1683
|
+
获取当前会话的动态令牌
|
1688
1684
|
"""
|
1689
1685
|
r = self.stub.getSessionToken(protos.Empty())
|
1690
1686
|
return r.value
|
@@ -1827,6 +1823,10 @@ class Device(object):
|
|
1827
1823
|
kwargs["certificate"] = self.certificate
|
1828
1824
|
if self._get_session_token():
|
1829
1825
|
kwargs["token"] = self._get_session_token()
|
1826
|
+
try:
|
1827
|
+
_frida_dma.remove_remote_device(self.server)
|
1828
|
+
except frida.InvalidArgumentError:
|
1829
|
+
""" No-op """
|
1830
1830
|
device = _frida_dma.add_remote_device(self.server,
|
1831
1831
|
**kwargs)
|
1832
1832
|
return device
|
@@ -1933,8 +1933,9 @@ class Device(object):
|
|
1933
1933
|
def stop_gproxy(self):
|
1934
1934
|
return self.stub("Proxy").stop_gproxy()
|
1935
1935
|
# 快速调用: Shell
|
1936
|
-
def execute_script(self, script, alias=None):
|
1937
|
-
return self.stub("Shell").execute_script(script, alias=alias
|
1936
|
+
def execute_script(self, script, alias=None, timeout=60):
|
1937
|
+
return self.stub("Shell").execute_script(script, alias=alias,
|
1938
|
+
timeout=timeout)
|
1938
1939
|
def execute_background_script(self, script, alias=None):
|
1939
1940
|
return self.stub("Shell").execute_background_script(script, alias=alias)
|
1940
1941
|
def is_background_script_finished(self, tid):
|
@@ -2030,8 +2031,6 @@ class Device(object):
|
|
2030
2031
|
# 接口锁定
|
2031
2032
|
def _get_session_token(self):
|
2032
2033
|
return self.stub("Lock").get_session_token()
|
2033
|
-
def _get_locking_session(self):
|
2034
|
-
return self.stub("Lock").get_locking_session()
|
2035
2034
|
def _acquire_lock(self, leaseTime=60):
|
2036
2035
|
return self.stub("Lock").acquire_lock(leaseTime)
|
2037
2036
|
def _refresh_lock(self, leaseTime=60):
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright 2022 rev1si0n (
|
1
|
+
// Copyright 2022 rev1si0n (lamda.devel@gmail.com). All rights reserved.
|
2
2
|
//
|
3
3
|
// Distributed under MIT license.
|
4
4
|
// See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
@@ -238,7 +238,6 @@ service File {
|
|
238
238
|
|
239
239
|
service Lock {
|
240
240
|
rpc releaseLock(google.protobuf.Empty) returns (Boolean) {}
|
241
|
-
rpc getLockingSession(google.protobuf.Empty) returns (String) {}
|
242
241
|
rpc getSessionToken(google.protobuf.Empty) returns (String) {}
|
243
242
|
rpc acquireLock(Integer) returns (Boolean) {}
|
244
243
|
rpc refreshLock(Integer) returns (Boolean) {}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright 2022 rev1si0n (
|
1
|
+
// Copyright 2022 rev1si0n (lamda.devel@gmail.com). All rights reserved.
|
2
2
|
//
|
3
3
|
// Distributed under MIT license.
|
4
4
|
// See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
@@ -9,12 +9,13 @@ message ShellRequest {
|
|
9
9
|
string tid = 1;
|
10
10
|
string name = 2;
|
11
11
|
string script = 3;
|
12
|
+
int32 timeout = 4;
|
12
13
|
}
|
13
14
|
|
14
15
|
message ShellResult {
|
15
16
|
int32 exitstatus = 1;
|
16
|
-
|
17
|
-
|
17
|
+
bytes stdout = 2;
|
18
|
+
bytes stderr = 3;
|
18
19
|
}
|
19
20
|
|
20
21
|
message ShellTask {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lamda
|
3
|
-
Version: 7.
|
3
|
+
Version: 7.22
|
4
4
|
Summary: Android reverse engineering & automation framework
|
5
5
|
Home-page: https://github.com/rev1si0n/lamda
|
6
6
|
Author: rev1si0n
|
@@ -13,4 +13,13 @@ Classifier: Programming Language :: Python :: 3
|
|
13
13
|
Classifier: Operating System :: Android
|
14
14
|
Classifier: Topic :: Security
|
15
15
|
Requires-Python: >=3.6,<3.12
|
16
|
+
Requires-Dist: grpcio-tools<1.60.0,>=1.35.0
|
17
|
+
Requires-Dist: grpc-interceptor<0.15.0,>=0.13.0
|
18
|
+
Requires-Dist: grpcio<1.60.0,>=1.35.0
|
19
|
+
Requires-Dist: cryptography>=35.0.0
|
20
|
+
Requires-Dist: msgpack>=1.0.0
|
21
|
+
Requires-Dist: asn1crypto<2,>=1.0.0
|
22
|
+
Requires-Dist: pem==23.1.0
|
16
23
|
Provides-Extra: full
|
24
|
+
Requires-Dist: frida<17.0.0,>=16.0.0; extra == "full"
|
25
|
+
Requires-Dist: pyreadline==2.1; sys_platform == "win32"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|