mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Add support for the new channels API
This commit is contained in:
1 parent
863d4b1ec8
commit
1a90214c37
3 files changed
+355
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user