Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
twisted /
words /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
14
B
-rw-r--r--
test_basechat.py
2.42
KB
-rw-r--r--
test_basesupport.py
2.93
KB
-rw-r--r--
test_domish.py
19.36
KB
-rw-r--r--
test_irc.py
98.94
KB
-rw-r--r--
test_irc_service.py
9.81
KB
-rw-r--r--
test_ircsupport.py
10.36
KB
-rw-r--r--
test_jabberclient.py
16.16
KB
-rw-r--r--
test_jabbercomponent.py
13.58
KB
-rw-r--r--
test_jabbererror.py
11.08
KB
-rw-r--r--
test_jabberjid.py
6.72
KB
-rw-r--r--
test_jabberjstrports.py
945
B
-rw-r--r--
test_jabbersasl.py
8.95
KB
-rw-r--r--
test_jabbersaslmechanisms.py
5.83
KB
-rw-r--r--
test_jabberxmlstream.py
44.04
KB
-rw-r--r--
test_jabberxmppstringprep.py
5.31
KB
-rw-r--r--
test_service.py
27.99
KB
-rw-r--r--
test_tap.py
2.12
KB
-rw-r--r--
test_xishutil.py
9.11
KB
-rw-r--r--
test_xmlstream.py
5.92
KB
-rw-r--r--
test_xmpproutertap.py
2.34
KB
-rw-r--r--
test_xpath.py
10.35
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_tap.py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from twisted.cred import credentials, error from twisted.trial import unittest from twisted.words import tap class WordsTapTests(unittest.TestCase): """ Ensures that the twisted.words.tap API works. """ PASSWD_TEXT = b"admin:admin\njoe:foo\n" admin = credentials.UsernamePassword(b"admin", b"admin") joeWrong = credentials.UsernamePassword(b"joe", b"bar") def setUp(self): """ Create a file with two users. """ self.filename = self.mktemp() self.file = open(self.filename, "wb") self.file.write(self.PASSWD_TEXT) self.file.flush() def tearDown(self): """ Close the dummy user database. """ self.file.close() def test_hostname(self): """ Tests that the --hostname parameter gets passed to Options. """ opt = tap.Options() opt.parseOptions(["--hostname", "myhost"]) self.assertEqual(opt["hostname"], "myhost") def test_passwd(self): """ Tests the --passwd command for backwards-compatibility. """ opt = tap.Options() opt.parseOptions(["--passwd", self.file.name]) self._loginTest(opt) def test_auth(self): """ Tests that the --auth command generates a checker. """ opt = tap.Options() opt.parseOptions(["--auth", "file:" + self.file.name]) self._loginTest(opt) def _loginTest(self, opt): """ This method executes both positive and negative authentication tests against whatever credentials checker has been stored in the Options class. @param opt: An instance of L{tap.Options}. """ self.assertEqual(len(opt["credCheckers"]), 1) checker = opt["credCheckers"][0] self.assertFailure( checker.requestAvatarId(self.joeWrong), error.UnauthorizedLogin ) def _gotAvatar(username): self.assertEqual(username, self.admin.username) return checker.requestAvatarId(self.admin).addCallback(_gotAvatar)
Close