__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# -*- test-case-name: twisted.conch.test.test_conch -*-
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.logger import Logger
from twisted.python.compat import nativeString
@implementer(IConchUser)
class ConchUser:
_log = Logger()
def __init__(self):
self.channelLookup = {}
self.subsystemLookup = {}
@property
def conn(self):
return self._conn
@conn.setter
def conn(self, value):
self._conn = value
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):
self._log.debug(
"Subsystem lookup: {subsystem!r}", subsystem=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)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| client | Folder | 0755 |
|
|
| insults | Folder | 0755 |
|
|
| newsfragments | Folder | 0755 |
|
|
| openssh_compat | Folder | 0755 |
|
|
| scripts | Folder | 0755 |
|
|
| ssh | Folder | 0755 |
|
|
| test | Folder | 0755 |
|
|
| ui | Folder | 0755 |
|
|
| __init__.py | File | 198 B | 0644 |
|
| avatar.py | File | 1.6 KB | 0644 |
|
| checkers.py | File | 21.41 KB | 0644 |
|
| endpoints.py | File | 29.26 KB | 0644 |
|
| error.py | File | 2.6 KB | 0644 |
|
| interfaces.py | File | 14.57 KB | 0644 |
|
| ls.py | File | 2.63 KB | 0644 |
|
| manhole.py | File | 12.08 KB | 0644 |
|
| manhole_ssh.py | File | 4.32 KB | 0644 |
|
| manhole_tap.py | File | 5.36 KB | 0644 |
|
| mixin.py | File | 1.34 KB | 0644 |
|
| recvline.py | File | 18.71 KB | 0644 |
|
| stdio.py | File | 2.71 KB | 0644 |
|
| tap.py | File | 3.12 KB | 0644 |
|
| telnet.py | File | 37.16 KB | 0644 |
|
| ttymodes.py | File | 2.14 KB | 0644 |
|
| unix.py | File | 16.67 KB | 0644 |
|