Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 13.58.157.160
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
twisted /
conch /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
client
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
insults
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
openssh_compat
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
scripts
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
ssh
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
test
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
ui
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
__init__.py
198
B
-rw-r--r--
2022-02-07 13:12
avatar.py
1.6
KB
-rw-r--r--
2022-02-07 13:12
checkers.py
18.97
KB
-rw-r--r--
2022-02-07 13:12
endpoints.py
29.26
KB
-rw-r--r--
2022-02-07 13:12
error.py
2.6
KB
-rw-r--r--
2022-02-07 13:12
interfaces.py
14.57
KB
-rw-r--r--
2022-02-07 13:12
ls.py
2.63
KB
-rw-r--r--
2022-02-07 13:12
manhole.py
11.57
KB
-rw-r--r--
2022-02-07 13:12
manhole_ssh.py
4.32
KB
-rw-r--r--
2022-02-07 13:12
manhole_tap.py
5.36
KB
-rw-r--r--
2022-02-07 13:12
mixin.py
1.34
KB
-rw-r--r--
2022-02-07 13:12
recvline.py
18.71
KB
-rw-r--r--
2022-02-07 13:12
stdio.py
2.71
KB
-rw-r--r--
2022-02-07 13:12
tap.py
3.12
KB
-rw-r--r--
2022-02-07 13:12
telnet.py
37.16
KB
-rw-r--r--
2022-02-07 13:12
ttymodes.py
2.14
KB
-rw-r--r--
2022-02-07 13:12
unix.py
16.16
KB
-rw-r--r--
2022-02-07 13:12
Save
Rename
# -*- test-case-name: twisted.conch.test.test_tap -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Support module for making SSH servers with twistd. """ from twisted.application import strports from twisted.conch import checkers as conch_checkers, unix from twisted.conch.openssh_compat import factory from twisted.cred import portal, strcred from twisted.python import usage class Options(usage.Options, strcred.AuthOptionMixin): synopsis = "[-i <interface>] [-p <port>] [-d <dir>] " longdesc = ( "Makes a Conch SSH server. If no authentication methods are " "specified, the default authentication methods are UNIX passwords " "and SSH public keys. If --auth options are " "passed, only the measures specified will be used." ) optParameters = [ ["interface", "i", "", "local interface to which we listen"], ["port", "p", "tcp:22", "Port on which to listen"], ["data", "d", "/etc", "directory to look for host keys in"], [ "moduli", "", None, "directory to look for moduli in " "(if different from --data)", ], ] compData = usage.Completions( optActions={ "data": usage.CompleteDirs(descr="data directory"), "moduli": usage.CompleteDirs(descr="moduli directory"), "interface": usage.CompleteNetInterfaces(), } ) def __init__(self, *a, **kw): usage.Options.__init__(self, *a, **kw) # Call the default addCheckers (for backwards compatibility) that will # be used if no --auth option is provided - note that conch's # UNIXPasswordDatabase is used, instead of twisted.plugins.cred_unix's # checker super().addChecker(conch_checkers.UNIXPasswordDatabase()) super().addChecker( conch_checkers.SSHPublicKeyChecker(conch_checkers.UNIXAuthorizedKeysFiles()) ) self._usingDefaultAuth = True def addChecker(self, checker): """ Add the checker specified. If any checkers are added, the default checkers are automatically cleared and the only checkers will be the specified one(s). """ if self._usingDefaultAuth: self["credCheckers"] = [] self["credInterfaces"] = {} self._usingDefaultAuth = False super().addChecker(checker) def makeService(config): """ Construct a service for operating a SSH server. @param config: An L{Options} instance specifying server options, including where server keys are stored and what authentication methods to use. @return: A L{twisted.application.service.IService} provider which contains the requested SSH server. """ t = factory.OpenSSHFactory() r = unix.UnixSSHRealm() t.portal = portal.Portal(r, config.get("credCheckers", [])) t.dataRoot = config["data"] t.moduliRoot = config["moduli"] or config["data"] port = config["port"] if config["interface"]: # Add warning here port += ":interface=" + config["interface"] return strports.service(port, t)