offlinemark / poet

[unmaintained] Post-exploitation tool
MIT License
183 stars 55 forks source link

Remote signals #34

Closed offlinemark closed 9 years ago

offlinemark commented 9 years ago

For commands like ping, it would be cool to have them not break the client (currently running a command that doesn't exit just locks up the client). We can catch a sigint (ctrl-c) in the server and send a special message to the client that's somehow listening for that which will send the corresponding sigint to whatever process it forked

offlinemark commented 9 years ago

server listens for ctrl-c and stops receiving, sends special message over to client

client needs to be reworked. separate thread/process for execution/sending lines, and for listening for potential signals.

offlinemark commented 9 years ago

use select to multiplex the socket and process file objects