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 : 3.17.74.181
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 /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
__init__.py
609
B
-rw-r--r--
2022-02-07 13:12
cred_anonymous.py
958
B
-rw-r--r--
2022-02-07 13:12
cred_file.py
1.77
KB
-rw-r--r--
2022-02-07 13:12
cred_memory.py
2.23
KB
-rw-r--r--
2022-02-07 13:12
cred_sshkeys.py
1.39
KB
-rw-r--r--
2022-02-07 13:12
cred_unix.py
5.81
KB
-rw-r--r--
2022-02-07 13:12
dropin.cache
5.49
KB
-rwxr-xr-x
2024-11-28 06:59
twisted_conch.py
530
B
-rw-r--r--
2022-02-07 13:12
twisted_core.py
550
B
-rw-r--r--
2022-02-07 13:12
twisted_ftp.py
212
B
-rw-r--r--
2022-02-07 13:12
twisted_inet.py
262
B
-rw-r--r--
2022-02-07 13:12
twisted_mail.py
224
B
-rw-r--r--
2022-02-07 13:12
twisted_names.py
236
B
-rw-r--r--
2022-02-07 13:12
twisted_portforward.py
277
B
-rw-r--r--
2022-02-07 13:12
twisted_reactors.py
1.73
KB
-rw-r--r--
2022-02-07 13:12
twisted_runner.py
280
B
-rw-r--r--
2022-02-07 13:12
twisted_socks.py
236
B
-rw-r--r--
2022-02-07 13:12
twisted_trial.py
3.44
KB
-rw-r--r--
2022-02-07 13:12
twisted_web.py
331
B
-rw-r--r--
2022-02-07 13:12
twisted_words.py
940
B
-rw-r--r--
2022-02-07 13:12
Save
Rename
# -*- test-case-name: twisted.test.test_strcred -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Cred plugin for an in-memory user database. """ from zope.interface import implementer from twisted import plugin from twisted.cred.checkers import InMemoryUsernamePasswordDatabaseDontUse from twisted.cred.credentials import IUsernameHashedPassword, IUsernamePassword from twisted.cred.strcred import ICheckerFactory inMemoryCheckerFactoryHelp = """ A checker that uses an in-memory user database. This is only of use in one-off test programs or examples which don't want to focus too much on how credentials are verified. You really don't want to use this for anything else. It is a toy. """ @implementer(ICheckerFactory, plugin.IPlugin) class InMemoryCheckerFactory: """ A factory for in-memory credentials checkers. This is only of use in one-off test programs or examples which don't want to focus too much on how credentials are verified. You really don't want to use this for anything else. It is, at best, a toy. If you need a simple credentials checker for a real application, see L{cred_file.FileCheckerFactory}. """ authType = "memory" authHelp = inMemoryCheckerFactoryHelp argStringFormat = "A colon-separated list (name:password:...)" credentialInterfaces = (IUsernamePassword, IUsernameHashedPassword) def generateChecker(self, argstring): """ This checker factory expects to get a list of username:password pairs, with each pair also separated by a colon. For example, the string 'alice:f:bob:g' would generate two users, one named 'alice' and one named 'bob'. """ checker = InMemoryUsernamePasswordDatabaseDontUse() if argstring: pieces = argstring.split(":") if len(pieces) % 2: from twisted.cred.strcred import InvalidAuthArgumentString raise InvalidAuthArgumentString("argstring must be in format U:P:...") for i in range(0, len(pieces), 2): username, password = pieces[i], pieces[i + 1] checker.addUser(username, password) return checker theInMemoryCheckerFactory = InMemoryCheckerFactory()