OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
twisted
/
conch
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
515 bytes
09/08/2017 10:38:35 AM
rw-r--r--
📁
__pycache__
-
03/31/2022 06:22:39 AM
rwxr-xr-x
📄
avatar.py
1.4 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
checkers.py
19.28 KB
09/08/2017 10:38:36 AM
rw-r--r--
📁
client
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
endpoints.py
28.33 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
error.py
2.65 KB
09/08/2017 10:38:36 AM
rw-r--r--
📁
insults
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
interfaces.py
12.76 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
ls.py
2.49 KB
09/08/2017 10:38:35 AM
rw-r--r--
📄
manhole.py
11.3 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
manhole_ssh.py
3.9 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
manhole_tap.py
5.24 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
mixin.py
1.34 KB
09/08/2017 10:38:36 AM
rw-r--r--
📁
openssh_compat
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
recvline.py
11.25 KB
09/08/2017 10:38:36 AM
rw-r--r--
📁
scripts
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📁
ssh
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
stdio.py
2.71 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
tap.py
3.11 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
telnet.py
37.64 KB
09/08/2017 10:38:36 AM
rw-r--r--
📁
test
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
ttymodes.py
2.19 KB
09/08/2017 10:38:36 AM
rw-r--r--
📁
ui
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
unix.py
15.91 KB
09/23/2017 05:51:46 AM
rw-r--r--
Editing: avatar.py
Close
# -*- test-case-name: twisted.conch.test.test_conch -*- from __future__ import absolute_import, division from zope.interface import implementer from twisted.conch.error import ConchError from twisted.conch.interfaces import IConchUser from twisted.conch.ssh.connection import OPEN_UNKNOWN_CHANNEL_TYPE from twisted.python import log from twisted.python.compat import nativeString @implementer(IConchUser) class ConchUser: def __init__(self): self.channelLookup = {} self.subsystemLookup = {} def lookupChannel(self, channelType, windowSize, maxPacket, data): klass = self.channelLookup.get(channelType, None) if not klass: raise ConchError(OPEN_UNKNOWN_CHANNEL_TYPE, "unknown channel") else: return klass(remoteWindow=windowSize, remoteMaxPacket=maxPacket, data=data, avatar=self) def lookupSubsystem(self, subsystem, data): log.msg(repr(self.subsystemLookup)) klass = self.subsystemLookup.get(subsystem, None) if not klass: return False return klass(data, avatar=self) def gotGlobalRequest(self, requestType, data): # XXX should this use method dispatch? requestType = nativeString(requestType.replace(b'-', b'_')) f = getattr(self, "global_%s" % requestType, None) if not f: return 0 return f(data)