Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 13.59.36.4
202 Domain
8.1.31
nbspublicschool
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 /
python2.7 /
site-packages /
passlib /
[ HOME SHELL ]
Name
Size
Permission
Action
_data
[ DIR ]
drwxr-xr-x
_setup
[ DIR ]
drwxr-xr-x
crypto
[ DIR ]
drwxr-xr-x
ext
[ DIR ]
drwxr-xr-x
handlers
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
utils
[ DIR ]
drwxr-xr-x
__init__.py
87
B
-rw-r--r--
__init__.pyc
253
B
-rw-r--r--
__init__.pyo
253
B
-rw-r--r--
apache.py
45.34
KB
-rw-r--r--
apache.pyc
36.91
KB
-rw-r--r--
apache.pyo
36.65
KB
-rw-r--r--
apps.py
6.73
KB
-rw-r--r--
apps.pyc
3.94
KB
-rw-r--r--
apps.pyo
3.94
KB
-rw-r--r--
context.py
106.48
KB
-rw-r--r--
context.pyc
81.25
KB
-rw-r--r--
context.pyo
80.83
KB
-rw-r--r--
exc.py
11.31
KB
-rw-r--r--
exc.pyc
12.71
KB
-rw-r--r--
exc.pyo
12.71
KB
-rw-r--r--
hash.py
3.62
KB
-rw-r--r--
hash.pyc
3.8
KB
-rw-r--r--
hash.pyo
3.8
KB
-rw-r--r--
hosts.py
3.22
KB
-rw-r--r--
hosts.pyc
1.35
KB
-rw-r--r--
hosts.pyo
1.35
KB
-rw-r--r--
ifc.py
13.86
KB
-rw-r--r--
ifc.pyc
7.44
KB
-rw-r--r--
ifc.pyo
7.44
KB
-rw-r--r--
pwd.py
27.9
KB
-rw-r--r--
pwd.pyc
23.2
KB
-rw-r--r--
pwd.pyo
23.08
KB
-rw-r--r--
registry.py
19.6
KB
-rw-r--r--
registry.pyc
15.93
KB
-rw-r--r--
registry.pyo
15.77
KB
-rw-r--r--
totp.py
70.73
KB
-rw-r--r--
totp.pyc
56.74
KB
-rw-r--r--
totp.pyo
55.93
KB
-rw-r--r--
win32.py
2.53
KB
-rw-r--r--
win32.pyc
2.05
KB
-rw-r--r--
win32.pyo
2.05
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : win32.py
"""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 #=============================================================================
Close