mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Improve RPC message detection
To avoid crashing if an agent does `send([])`. Kudos to @H0r53 for reporting! Fixes frida/frida#1008.
This commit is contained in:
+1
-1
@@ -361,7 +361,7 @@ class Script(object):
|
||||
level = message['level']
|
||||
text = payload
|
||||
self._log_handler(level, text)
|
||||
elif mtype == 'send' and isinstance(payload, list) and payload[0] == 'frida:rpc':
|
||||
elif mtype == 'send' and isinstance(payload, list) and len(payload) > 0 and payload[0] == 'frida:rpc':
|
||||
request_id = payload[1]
|
||||
operation = payload[2]
|
||||
params = payload[3:]
|
||||
|
||||
Reference in New Issue
Block a user