Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
passlib /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
__init__.py
20
B
-rw-r--r--
2013-09-13 17:41
__main__.py
82
B
-rw-r--r--
2013-09-13 17:41
_test_bad_register.py
541
B
-rw-r--r--
2013-12-27 19:19
backports.py
2.53
KB
-rw-r--r--
2019-11-11 23:18
sample1.cfg
243
B
-rw-r--r--
2016-11-23 03:20
sample1b.cfg
252
B
-rw-r--r--
2016-11-23 03:20
sample1c.cfg
490
B
-rw-r--r--
2016-11-23 03:20
sample_config_1s.cfg
238
B
-rw-r--r--
2013-09-13 17:41
test_apache.py
28.74
KB
-rw-r--r--
2019-11-12 18:47
test_apps.py
5.16
KB
-rw-r--r--
2016-11-23 03:20
test_context.py
73.31
KB
-rw-r--r--
2019-11-22 20:30
test_context_deprecated.py
28.6
KB
-rw-r--r--
2019-11-12 18:47
test_crypto_builtin_md4.py
5.53
KB
-rw-r--r--
2019-11-12 18:47
test_crypto_des.py
8.67
KB
-rw-r--r--
2016-11-23 03:20
test_crypto_digest.py
18.23
KB
-rw-r--r--
2019-11-12 18:47
test_crypto_scrypt.py
26.02
KB
-rw-r--r--
2019-11-12 18:47
test_ext_django.py
32.15
KB
-rw-r--r--
2019-11-19 19:41
test_ext_django_source.py
10.78
KB
-rw-r--r--
2017-01-29 21:28
test_handlers.py
61.39
KB
-rw-r--r--
2019-11-12 18:47
test_handlers_argon2.py
22.3
KB
-rw-r--r--
2019-11-19 16:24
test_handlers_bcrypt.py
22.96
KB
-rw-r--r--
2016-11-23 03:20
test_handlers_cisco.py
19.99
KB
-rw-r--r--
2019-11-12 18:47
test_handlers_django.py
14.75
KB
-rw-r--r--
2019-11-19 19:41
test_handlers_pbkdf2.py
18.35
KB
-rw-r--r--
2019-11-12 18:47
test_handlers_scrypt.py
4.09
KB
-rw-r--r--
2019-11-11 23:18
test_hosts.py
3.81
KB
-rw-r--r--
2016-11-23 03:20
test_pwd.py
7.02
KB
-rw-r--r--
2016-12-19 17:52
test_registry.py
9.24
KB
-rw-r--r--
2016-11-23 03:20
test_totp.py
64.05
KB
-rw-r--r--
2019-11-12 18:47
test_utils.py
39.3
KB
-rw-r--r--
2019-11-12 18:47
test_utils_handlers.py
31.38
KB
-rw-r--r--
2019-11-12 18:47
test_utils_md4.py
1.44
KB
-rw-r--r--
2016-11-23 03:20
test_utils_pbkdf2.py
11.82
KB
-rw-r--r--
2019-11-12 18:47
test_win32.py
1.88
KB
-rw-r--r--
2019-11-12 18:47
tox_support.py
2.42
KB
-rw-r--r--
2019-11-12 18:47
utils.py
138.01
KB
-rw-r--r--
2019-11-19 15:46
Save
Rename
"""test passlib.hosts""" #============================================================================= # imports #============================================================================= from __future__ import with_statement # core import logging; log = logging.getLogger(__name__) # site # pkg from passlib import hosts, hash as hashmod from passlib.utils import unix_crypt_schemes from passlib.tests.utils import TestCase # module #============================================================================= # test predefined app contexts #============================================================================= class HostsTest(TestCase): """perform general tests to make sure contexts work""" # NOTE: these tests are not really comprehensive, # since they would do little but duplicate # the presets in apps.py # # they mainly try to ensure no typos # or dynamic behavior foul-ups. def check_unix_disabled(self, ctx): for hash in [ "", "!", "*", "!$1$TXl/FX/U$BZge.lr.ux6ekjEjxmzwz0", ]: self.assertEqual(ctx.identify(hash), 'unix_disabled') self.assertFalse(ctx.verify('test', hash)) def test_linux_context(self): ctx = hosts.linux_context for hash in [ ('$6$rounds=41128$VoQLvDjkaZ6L6BIE$4pt.1Ll1XdDYduEwEYPCMOBiR6W6' 'znsyUEoNlcVXpv2gKKIbQolgmTGe6uEEVJ7azUxuc8Tf7zV9SD2z7Ij751'), ('$5$rounds=31817$iZGmlyBQ99JSB5n6$p4E.pdPBWx19OajgjLRiOW0itGny' 'xDGgMlDcOsfaI17'), '$1$TXl/FX/U$BZge.lr.ux6ekjEjxmzwz0', 'kAJJz.Rwp0A/I', ]: self.assertTrue(ctx.verify("test", hash)) self.check_unix_disabled(ctx) def test_bsd_contexts(self): for ctx in [ hosts.freebsd_context, hosts.openbsd_context, hosts.netbsd_context, ]: for hash in [ '$1$TXl/FX/U$BZge.lr.ux6ekjEjxmzwz0', 'kAJJz.Rwp0A/I', ]: self.assertTrue(ctx.verify("test", hash)) h1 = "$2a$04$yjDgE74RJkeqC0/1NheSSOrvKeu9IbKDpcQf/Ox3qsrRS/Kw42qIS" if hashmod.bcrypt.has_backend(): self.assertTrue(ctx.verify("test", h1)) else: self.assertEqual(ctx.identify(h1), "bcrypt") self.check_unix_disabled(ctx) def test_host_context(self): ctx = getattr(hosts, "host_context", None) if not ctx: return self.skipTest("host_context not available on this platform") # validate schemes is non-empty, # and contains unix_disabled + at least one real scheme schemes = list(ctx.schemes()) self.assertTrue(schemes, "appears to be unix system, but no known schemes supported by crypt") self.assertTrue('unix_disabled' in schemes) schemes.remove("unix_disabled") self.assertTrue(schemes, "should have schemes beside fallback scheme") self.assertTrue(set(unix_crypt_schemes).issuperset(schemes)) # check for hash support self.check_unix_disabled(ctx) for scheme, hash in [ ("sha512_crypt", ('$6$rounds=41128$VoQLvDjkaZ6L6BIE$4pt.1Ll1XdDYduEwEYPCMOBiR6W6' 'znsyUEoNlcVXpv2gKKIbQolgmTGe6uEEVJ7azUxuc8Tf7zV9SD2z7Ij751')), ("sha256_crypt", ('$5$rounds=31817$iZGmlyBQ99JSB5n6$p4E.pdPBWx19OajgjLRiOW0itGny' 'xDGgMlDcOsfaI17')), ("md5_crypt", '$1$TXl/FX/U$BZge.lr.ux6ekjEjxmzwz0'), ("des_crypt", 'kAJJz.Rwp0A/I'), ]: if scheme in schemes: self.assertTrue(ctx.verify("test", hash)) #============================================================================= # eof #=============================================================================