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.
Files changed (42) hide show
  1. {lamda-7.15 → lamda-7.22}/PKG-INFO +10 -1
  2. {lamda-7.15 → lamda-7.22}/README.md +1 -1
  3. {lamda-7.15 → lamda-7.22}/lamda/__init__.py +2 -2
  4. {lamda-7.15 → lamda-7.22}/lamda/bcast.proto +1 -1
  5. {lamda-7.15 → lamda-7.22}/lamda/client.py +13 -14
  6. {lamda-7.15 → lamda-7.22}/lamda/exceptions.py +1 -1
  7. {lamda-7.15 → lamda-7.22}/lamda/rpc/application.proto +1 -1
  8. {lamda-7.15 → lamda-7.22}/lamda/rpc/debug.proto +1 -1
  9. {lamda-7.15 → lamda-7.22}/lamda/rpc/file.proto +1 -1
  10. {lamda-7.15 → lamda-7.22}/lamda/rpc/policy.proto +1 -1
  11. {lamda-7.15 → lamda-7.22}/lamda/rpc/proxy.proto +1 -1
  12. {lamda-7.15 → lamda-7.22}/lamda/rpc/services.proto +1 -2
  13. {lamda-7.15 → lamda-7.22}/lamda/rpc/settings.proto +1 -1
  14. {lamda-7.15 → lamda-7.22}/lamda/rpc/shell.proto +4 -3
  15. {lamda-7.15 → lamda-7.22}/lamda/rpc/status.proto +1 -1
  16. {lamda-7.15 → lamda-7.22}/lamda/rpc/storage.proto +1 -1
  17. {lamda-7.15 → lamda-7.22}/lamda/rpc/types.proto +1 -1
  18. {lamda-7.15 → lamda-7.22}/lamda/rpc/uiautomator.proto +1 -1
  19. {lamda-7.15 → lamda-7.22}/lamda/rpc/util.proto +1 -1
  20. {lamda-7.15 → lamda-7.22}/lamda/rpc/wifi.proto +1 -1
  21. {lamda-7.15 → lamda-7.22}/lamda/types.py +1 -1
  22. {lamda-7.15 → lamda-7.22}/lamda.egg-info/PKG-INFO +10 -1
  23. {lamda-7.15 → lamda-7.22}/setup.py +1 -1
  24. {lamda-7.15 → lamda-7.22}/lamda/const.py +0 -0
  25. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/any.proto +0 -0
  26. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/api.proto +0 -0
  27. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/compiler/plugin.proto +0 -0
  28. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/descriptor.proto +0 -0
  29. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/duration.proto +0 -0
  30. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/empty.proto +0 -0
  31. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/field_mask.proto +0 -0
  32. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/source_context.proto +0 -0
  33. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/struct.proto +0 -0
  34. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/timestamp.proto +0 -0
  35. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/type.proto +0 -0
  36. {lamda-7.15 → lamda-7.22}/lamda/google/protobuf/wrappers.proto +0 -0
  37. {lamda-7.15 → lamda-7.22}/lamda.egg-info/SOURCES.txt +0 -0
  38. {lamda-7.15 → lamda-7.22}/lamda.egg-info/dependency_links.txt +0 -0
  39. {lamda-7.15 → lamda-7.22}/lamda.egg-info/not-zip-safe +0 -0
  40. {lamda-7.15 → lamda-7.22}/lamda.egg-info/requires.txt +0 -0
  41. {lamda-7.15 → lamda-7.22}/lamda.egg-info/top_level.txt +0 -0
  42. {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.15
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"
@@ -26,4 +26,4 @@ LAMDA 是一个用于逆向及自动化的辅助框架,设计为减少安全
26
26
 
27
27
  ![中间人流量分析动图演示](image/mitm.gif)
28
28
 
29
- 当然,LAMDA 的能力不止于如上种种,他是你强有力的设备控制及管理工具,如果您对他感兴趣,请转到 [使用文档](https://github.com/rev1si0n/lamda/wiki)。
29
+ 当然,LAMDA 的能力不止于如上种种,他是你强有力的控制及管理工具,如果您感兴趣,请转到 [使用文档](https://github.com/rev1si0n/lamda/wiki)。
@@ -1,5 +1,5 @@
1
- # Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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.15"
5
+ __version__ = "7.22"
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -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 (ihaven0emmail@gmail.com). All rights reserved.
1
+ # Copyright 2022 rev1si0n (https://github.com/rev1si0n). 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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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 (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
- string stdout = 2;
17
- string stderr = 3;
17
+ bytes stdout = 2;
18
+ bytes stderr = 3;
18
19
  }
19
20
 
20
21
  message ShellTask {
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- // Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,4 +1,4 @@
1
- # Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lamda
3
- Version: 7.15
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
1
  #!/usr/bin/python3
2
- # Copyright 2022 rev1si0n (ihaven0emmail@gmail.com). All rights reserved.
2
+ # Copyright 2022 rev1si0n (lamda.devel@gmail.com). All rights reserved.
3
3
  import setuptools
4
4
 
5
5
  exec(open("lamda/__init__.py", "rt").read())
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes