OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
twisted
/
conch
/
ssh
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
__init__.py
183 bytes
09/08/2017 10:38:36 AM
rw-r--r--
📁
__pycache__
-
03/31/2022 06:22:39 AM
rwxr-xr-x
📄
_kex.py
7.49 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
address.py
1.13 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
agent.py
9.46 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
channel.py
9.62 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
common.py
2.12 KB
09/08/2017 10:38:35 AM
rw-r--r--
📄
connection.py
25.12 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
factory.py
3.73 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
filetransfer.py
33.53 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
forwarding.py
7.98 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
keys.py
52.35 KB
09/08/2017 10:38:35 AM
rw-r--r--
📄
service.py
1.42 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
session.py
10.95 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
sexpy.py
1.03 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
transport.py
70.94 KB
03/22/2022 11:03:56 AM
rw-r--r--
📄
userauth.py
26.7 KB
09/08/2017 10:38:36 AM
rw-r--r--
Editing: service.py
Close
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ The parent class for all the SSH services. Currently implemented services are ssh-userauth and ssh-connection. Maintainer: Paul Swartz """ from __future__ import division, absolute_import from twisted.python import log class SSHService(log.Logger): name = None # this is the ssh name for the service protocolMessages = {} # these map #'s -> protocol names transport = None # gets set later def serviceStarted(self): """ called when the service is active on the transport. """ def serviceStopped(self): """ called when the service is stopped, either by the connection ending or by another service being started """ def logPrefix(self): return "SSHService %r on %s" % (self.name, self.transport.transport.logPrefix()) def packetReceived(self, messageNum, packet): """ called when we receive a packet on the transport """ #print self.protocolMessages if messageNum in self.protocolMessages: messageType = self.protocolMessages[messageNum] f = getattr(self,'ssh_%s' % messageType[4:], None) if f is not None: return f(packet) log.msg("couldn't handle %r" % messageNum) log.msg(repr(packet)) self.transport.sendUnimplemented()