Files
frida-frida-python/examples/channels.py
T
2019-09-24 05:59:45 +02:00

20 lines
399 B
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import frida
device = frida.get_usb_device()
channel = device.open_channel("tcp:21")
print("Got channel:", channel)
welcome = channel.read(512)
print("Got welcome message:", welcome)
channel.write_all(b"CWD foo")
reply = channel.read(512)
print("Got reply:", reply)
channel.close()
print("Channel now:", channel)