⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
twisted
/
plugins
/
View File Name :
cred_anonymous.py
# -*- test-case-name: twisted.test.test_strcred -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Cred plugin for anonymous logins. """ from zope.interface import implementer from twisted import plugin from twisted.cred.checkers import AllowAnonymousAccess from twisted.cred.credentials import IAnonymous from twisted.cred.strcred import ICheckerFactory anonymousCheckerFactoryHelp = """ This allows anonymous authentication for servers that support it. """ @implementer(ICheckerFactory, plugin.IPlugin) class AnonymousCheckerFactory: """ Generates checkers that will authenticate an anonymous request. """ authType = "anonymous" authHelp = anonymousCheckerFactoryHelp argStringFormat = "No argstring required." credentialInterfaces = (IAnonymous,) def generateChecker(self, argstring=""): return AllowAnonymousAccess() theAnonymousCheckerFactory = AnonymousCheckerFactory()