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.142.43.53
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 a file of the format 'username:password'. """ import sys from zope.interface import implementer from twisted import plugin from twisted.cred.checkers import FilePasswordDB from twisted.cred.credentials import IUsernameHashedPassword, IUsernamePassword from twisted.cred.strcred import ICheckerFactory fileCheckerFactoryHelp = """ This checker expects to receive the location of a file that conforms to the FilePasswordDB format. Each line in the file should be of the format 'username:password', in plain text. """ invalidFileWarning = "Warning: not a valid file" @implementer(ICheckerFactory, plugin.IPlugin) class FileCheckerFactory: """ A factory for instances of L{FilePasswordDB}. """ authType = "file" authHelp = fileCheckerFactoryHelp argStringFormat = "Location of a FilePasswordDB-formatted file." # Explicitly defined here because FilePasswordDB doesn't do it for us credentialInterfaces = (IUsernamePassword, IUsernameHashedPassword) errorOutput = sys.stderr def generateChecker(self, argstring): """ This checker factory expects to get the location of a file. The file should conform to the format required by L{FilePasswordDB} (using defaults for all initialization parameters). """ from twisted.python.filepath import FilePath if not argstring.strip(): raise ValueError("%r requires a filename" % self.authType) elif not FilePath(argstring).isfile(): self.errorOutput.write(f"{invalidFileWarning}: {argstring}\n") return FilePasswordDB(argstring) theFileCheckerFactory = FileCheckerFactory()