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 /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
_data
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
_setup
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
crypto
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
ext
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
handlers
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
tests
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
utils
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
__init__.py
87
B
-rw-r--r--
2019-11-22 21:52
apache.py
45.56
KB
-rw-r--r--
2019-11-12 18:47
apps.py
6.73
KB
-rw-r--r--
2019-11-12 18:47
context.py
106.48
KB
-rw-r--r--
2019-11-12 18:47
exc.py
11.31
KB
-rw-r--r--
2019-11-10 16:38
hash.py
3.62
KB
-rw-r--r--
2019-11-12 18:47
hosts.py
3.22
KB
-rw-r--r--
2016-11-23 03:20
ifc.py
13.86
KB
-rw-r--r--
2017-01-30 18:18
pwd.py
28.01
KB
-rw-r--r--
2019-11-10 19:52
registry.py
19.6
KB
-rw-r--r--
2019-11-12 18:47
totp.py
71.32
KB
-rw-r--r--
2019-11-12 18:47
win32.py
2.53
KB
-rw-r--r--
2019-11-12 18:47
Save
Rename
"""passlib.win32 - MS Windows support - DEPRECATED, WILL BE REMOVED IN 1.8 the LMHASH and NTHASH algorithms are used in various windows related contexts, but generally not in a manner compatible with how passlib is structured. in particular, they have no identifying marks, both being 32 bytes of binary data. thus, they can't be easily identified in a context with other hashes, so a CryptHandler hasn't been defined for them. this module provided two functions to aid in any use-cases which exist. .. warning:: these functions should not be used for new code unless an existing system requires them, they are both known broken, and are beyond insecure on their own. .. autofunction:: raw_lmhash .. autofunction:: raw_nthash See also :mod:`passlib.hash.nthash`. """ from warnings import warn warn("the 'passlib.win32' module is deprecated, and will be removed in " "passlib 1.8; please use the 'passlib.hash.nthash' and " "'passlib.hash.lmhash' classes instead.", DeprecationWarning) #============================================================================= # imports #============================================================================= # core from binascii import hexlify # site # pkg from passlib.utils.compat import unicode from passlib.crypto.des import des_encrypt_block from passlib.hash import nthash # local __all__ = [ "nthash", "raw_lmhash", "raw_nthash", ] #============================================================================= # helpers #============================================================================= LM_MAGIC = b"KGS!@#$%" raw_nthash = nthash.raw_nthash def raw_lmhash(secret, encoding="ascii", hex=False): """encode password using des-based LMHASH algorithm; returns string of raw bytes, or unicode hex""" # NOTE: various references say LMHASH uses the OEM codepage of the host # for its encoding. until a clear reference is found, # as well as a path for getting the encoding, # letting this default to "ascii" to prevent incorrect hashes # from being made w/o user explicitly choosing an encoding. if isinstance(secret, unicode): secret = secret.encode(encoding) ns = secret.upper()[:14] + b"\x00" * (14-len(secret)) out = des_encrypt_block(ns[:7], LM_MAGIC) + des_encrypt_block(ns[7:], LM_MAGIC) return hexlify(out).decode("ascii") if hex else out #============================================================================= # eoc #=============================================================================