Files
frida-frida-python/examples/detached.py
T
2017-01-11 03:50:46 +01:00

21 lines
501 B
Python

# -*- coding: utf-8 -*-
from __future__ import print_function
import frida
import sys
def on_detached():
print("on_detached")
def on_detached_with_reason(reason):
print("on_detached_with_reason:", reason)
def on_detached_with_varargs(*args):
print("on_detached_with_varargs:", args)
session = frida.attach("Twitter")
print("attached")
session.on('detached', on_detached)
session.on('detached', on_detached_with_reason)
session.on('detached', on_detached_with_varargs)
sys.stdin.read()