x25today / voipwardialer

A Voip Wardialer for the phreaking of 2020
51 stars 11 forks source link

Provide a Emulated Terminal as virtual pty for connected calls #1

Open gdassori opened 4 years ago

gdassori commented 4 years ago

Evaluate socat for vmodem

socat -u TCP4-LISTEN:8290 PTY,link=$HOME/vmodem0,rawer,wait-slave

fpietrosanti commented 4 years ago

We could make a TCP listener to receive the asterisk_modem connection back into Python and then decide whenever just to log the output or to make it also available as a PTY for interaction with minicom

https://stackoverflow.com/questions/48781155/how-to-connect-inet-socket-to-pty-device-in-python

fpietrosanti commented 4 years ago

Other example pty/shell https://github.com/infodox/python-pty-shells/blob/master/tcp_pty_shell_handler.py

fpietrosanti commented 4 years ago

Example of Socat use from Python: https://stackoverflow.com/questions/15173614/how-can-i-use-a-pseudoterminal-in-python-to-emulate-a-serial-port

fpietrosanti commented 4 years ago

Probably using socat, even if may sounds a "dirty design decision", would gave us clean portability across multiple operating system for the PTY-related handling code?