mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Fix scoping of state meant to be shared across all handlers
This commit is contained in:
+1
-1
@@ -175,6 +175,7 @@ var started = new Date();
|
||||
var pending = [];
|
||||
var timer = null;
|
||||
var handlers = {};
|
||||
var state = {};
|
||||
function onStanza(stanza) {
|
||||
if (stanza.to === "/targets") {
|
||||
if (stanza.name === '+add') {
|
||||
@@ -205,7 +206,6 @@ function add(targets) {
|
||||
}
|
||||
});
|
||||
}
|
||||
var state = {};
|
||||
|
||||
pending.push(function attachToTarget() {
|
||||
Interceptor.attach(ptr(targetAddress), {
|
||||
|
||||
Reference in New Issue
Block a user