mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
17 lines
318 B
Python
17 lines
318 B
Python
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)
|