Add support for the new channels API

This commit is contained in:
Ole André Vadla Ravnås committed 2019-09-24 05:59:45 +02:00
1 parent 863d4b1ec8
commit 1a90214c37
3 files changed
+355

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# -*- 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)