Skip to content

Instantly share code, notes, and snippets.

Avatar

thaddeus t. grugq grugq

  • Independent Security Researcher
  • Thailand
View GitHub Profile
@grugq
grugq / sshclient.py
Created Dec 6, 2011
twisted ssh client (based on conch.py) with an embedded cmd.Cmd shell for controllng the SSH session
View sshclient.py
from twisted.internet import reactor, defer, endpoints, task, stdio
from twisted.conch.client import default, options, direct
from twisted.conch.error import ConchError
from twisted.conch.ssh import session, forwarding, channel
from twisted.conch.ssh import connection, common
from twisted.python import log, usage
import signal
import tty
import struct
import fcntl
You can’t perform that action at this time.