🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 12:43:09 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
paramiko
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/paramiko/__pycache__
🔄 Refresh
✏️
Editing: win_pageant.cpython-38.pyc
Read Only
U v��fQ � @ s� d Z ddlZddlZddlZddlZddlmZ ddlm Z ddl Zddlm Z dZdZd Zd d� Zdd � Ze�� d dkr�ejZnejZG dd� dej�Zdd� ZG dd� d�ZdS )zP Functions for communicating with Pageant, the basic windows ssh agent program. � N)� zero_byte)�b� )�_winapil �P� i �J c C s t jj�dd�S )Ns Pageant)�ctypes�windll�user32ZFindWindowA� r r �E/opt/alt/python38/lib/python3.8/site-packages/paramiko/win_pageant.py�_get_pageant_window_object+ s r c C s t t� �S )z� Check to see if there is a "Pageant" agent we can talk to. This checks both if we have the required libraries (win32all or ctypes) and if there is a Pageant currently running. )�boolr r r r r �can_talk_to_agent/ s r �64bitc @ s, e Zd ZdZdefdejjfdejfgZ dS )�COPYDATASTRUCTzy ctypes implementation of http://msdn.microsoft.com/en-us/library/windows/desktop/ms649010%28v=vs.85%29.aspx Znum_data� data_sizeZdata_locN) �__name__� __module__�__qualname__�__doc__� ULONG_PTRr ZwintypesZDWORDZc_void_pZ_fields_r r r r r ? s �r c C s� t � }|sdS dt�� d��}t�|tt�� �}|�� |�| � t�dt |�t �}|�� \}}tt ||�}tjj�|tt�|�t�|��}|dkr�|�d� |�d�} t�d| �d } | |�| � W 5 Q R � S W 5 Q R � dS Q R X dS )za Communication with the Pageant process is done through a shared memory-mapped file. NZPageantRequest�08xr r � z>I)r �thread� get_identr Z MemoryMap�_AGENT_MAX_MSGLENZ get_security_attributes_for_user�write�arrayr r �buffer_infor �_AGENT_COPYDATA_IDr r r ZSendMessageA�win32con_WM_COPYDATAZsizeofZbyref�seek�read�struct�unpack)�msgZhwndZmap_nameZpymapZchar_bufferZchar_buffer_addressZchar_buffer_sizeZcds�responseZdatalenZretlenr r r �_query_pageantL s<