Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/wsgi/www/api/venv/lib64/python3.12/site-packages/oscrypto/_win/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/wsgi/www/api/venv/lib64/python3.12/site-packages/oscrypto/_win/_decode.py

# coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function

import locale

from .._types import str_cls


_encoding = locale.getpreferredencoding()
_fallback_encodings = ['utf-8', 'cp1252']


def _try_decode(byte_string):
    """
    Tries decoding a byte string from the OS into a unicode string

    :param byte_string:
        A byte string

    :return:
        A unicode string
    """

    try:
        return str_cls(byte_string, _encoding)

    # If the "correct" encoding did not work, try some defaults, and then just
    # obliterate characters that we can't seen to decode properly
    except (UnicodeDecodeError):
        for encoding in _fallback_encodings:
            try:
                return str_cls(byte_string, encoding, errors='strict')
            except (UnicodeDecodeError):
                pass

    return str_cls(byte_string, errors='replace')

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net