I try to use pwntools python lib on MacBook M1 air (Sonoma).
But some problem is occur when I try to use interactive function.
The simple Code looks like below
from pwn import *
r=ssh(host='192.168.1.1',port=10022,user='titan',password='out of the night')
r.interactive()
It connect succesful. But the problem is input stream is stopped.
enter image description here
Like this. Nothing changed whatever I do input on my keyboard.
Something happend while macOS terminal dealing byte stream…
How can I fix it?
I tried it with DEBUG command.
enter image description here
It works. Only once. I typed ‘ls’ command. And then it stopped.
I guess my terminal is waiting ‘n’ from server so it doesn’t get my input.
And if I type the command one by one
enter image description here
It works very fine…… And ofc it works very fine on Windows
곽근진 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.