??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
=OXc @ s d Z d d l Z d d l Z d d l Z d d l Z d d l Td d l m Z y d d l Z
Wn e k
r d d l
Z
n Xd d l m
Z
d Z d Z d Z d
„ Z d „ Z e j ƒ d d
k rÓ e j n e j Z d e j f d „ ƒ YZ d „ Z d e f d „ ƒ YZ d S( sP
Functions for communicating with Pageant, the basic windows ssh agent program.
iÿÿÿÿN( t *( t bi ( t _winapil ºPœ i iJ c C s" t j j j t d ƒ t d ƒ ƒ S( Nt Pageant( t ctypest windllt user32t FindWindowAR ( ( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyt _get_pageant_window_object. s c C s
t t ƒ ƒ S( sÂ
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.
( t boolR ( ( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyt can_talk_to_agent2 s i t 64bitt COPYDATASTRUCTc B s8 e Z d Z d e f d e j j f d e j f g Z RS( sy
ctypes implementation of
http://msdn.microsoft.com/en-us/library/windows/desktop/ms649010%28v=vs.85%29.aspx
t num_datat data_sizet data_loc( t __name__t
__module__t __doc__t ULONG_PTRR t wintypest DWORDt c_void_pt _fields_( ( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyR ? s c
C s t ƒ } | s d Sd t j ƒ } t j | t t j ƒ ƒ } | Õ | j | ƒ t j d t
| ƒ t ƒ } | j ƒ \ } } t
t | | ƒ } t j j j | t t j | ƒ t j | ƒ ƒ } | d k r| j d ƒ | j d ƒ } t j d | ƒ d }
| | j |
ƒ Sd SWd QXd S( sa
Communication with the Pageant process is done through a shared
memory-mapped file.
s PageantRequest%08xR i i s >IN( R t Nonet threadt get_identR t MemoryMapt _AGENT_MAX_MSGLENt get_security_attributes_for_usert writet arrayR t zero_bytet buffer_infoR t _AGENT_COPYDATA_IDR R R t SendMessageAt win32con_WM_COPYDATAt sizeoft byreft seekt readt structt unpack( t msgt hwndt map_namet pymapt char_buffert char_buffer_addresst char_buffer_sizet cdst responset datalent retlen( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyt _query_pageantK s(
!
t PageantConnectionc B s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( s
Mock "connection" to an agent which roughly approximates the behavior of
a unix local-domain socket (as used by Agent). Requests are sent to the
pageant daemon via special Windows magick, and responses are buffered back
for subsequent reads.
c C s
d | _ d S( N( R t _response( t self( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyt __init__w s c C s t | ƒ | _ d S( N( R6 R8 ( R9 t data( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyt sendz s c C sO | j d k r d S| j | } | j | | _ | j d k rK d | _ n | S( Nt ( R8 R ( R9 t nt ret( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyt recv} s
c C s d S( N( ( R9 ( ( s8 /usr/lib/python2.7/site-packages/paramiko/win_pageant.pyt close† s ( R R R R: R<