o
    Žõ±j2  ã                   @   s.   d dl Z d dlZdd„ Zedkreƒ  dS dS )é    Nc                  C   sÂ  dd l } dd l}ddlm} |ƒ g}| jdd�}|jddddd� |jd	d
�}d|_d|_|j	ddd
�}| ¡ }d|_d|_|D ]}| 
||¡ q@|j	ddd
�}	|	jddgd� |	jddddd� |	jddd
� |	jdddd
� |j	dd d
�}
|
jdd!d"gd� |
jd#d$dd%d� |j	d&d'd
�}|jdd!d(gd� |j	d)d)d
�}|j	d*d*d
�}|j	d+d+d
�}| ¡ }|jdkr¿tjtjd,� n|jd-krÌtjtjd,� nd.|j }tj|d,� |D ]}| |¡ qÙ|jdk�r£|jdk�r#|jdk�r!dd/lm} |ƒ }d0}|jd u�r|j}|jd u�r|j}ntjd1 }|j|||jd2� d S d S |jdk�radd/lm} |jd!k�rJ|ƒ }| |j¡D ]	}tt |ƒƒ �q>d S |jd"k�r_|ƒ }| !¡ }tt |ƒƒ d S d S |jd&k�rŸdd3l"m#} |jd!k�rŠ|ƒ }| $¡ }|D ]}tt || ƒƒ �q|d S |jd(k�r¡|ƒ }| %¡ }tt |ƒƒ d S d S d S |jd)k�rµdd4l&m'} t|ƒ d S |jd*k�rÇdd5l&m(} t|ƒ d S |jd+k�rßdd6l&m)}m*} t|ƒ t|ƒ d S d S )7Nr   )ÚLSACMDHelperz3Pure Python implementation of Mimikatz --and more--)Údescriptionz-vz	--verboseÚcount)ÚactionÚdefaultÚcommands)ÚhelpTÚcommandÚlivezGet secrets from live machineÚmoduleÚprocessz&Process creating/manipulation commandsÚcmdÚcreate)Úchoicesz-iz--interactiveÚ
store_truez Spawns a new interactive process)r   r   z--sidz$Impersonate given SID in new processz-cz	--cmdlinez(The process to execute. Default: cmd.exeÚtokenz$Token creating/manipulation commandsÚlistÚcurrentz-fz--forcezCTries to list as many tokens as possible without SE_DEBUG privilegeÚusersz#User creating/manipulation commandsÚwhoamiÚversionÚbannerÚlogo)Úlevelé   é   )ÚProcessManipulatorzS-1-5-18ÚComSpec)Ú
target_sidÚcmdlineÚinteractive)ÚLiveMachine)Ú__version__)Ú
__banner__)Ú__logo__Ú__logo_color__)+ÚargparseÚglobÚ pypykatz.alsadecryptor.cmdhelperr   ÚArgumentParserÚadd_argumentÚadd_subparsersÚrequiredÚdestÚ
add_parserÚadd_argsÚ
parse_argsÚverboseÚloggingÚbasicConfigÚINFOÚDEBUGÚexecuter	   r   r   Ú*pypykatz.commons.winapi.processmanipulatorr   Úsidr   ÚosÚenvironÚcreate_process_for_sidr    Úlist_all_tokensÚforceÚprintÚstrÚget_current_token_infoÚpypykatz.commons.winapi.machiner!   Ú
list_usersÚget_current_userÚpypykatz._versionr"   r#   r$   r%   )r&   r'   r   Ú
cmdhelpersÚparserÚ
subparsersÚ
live_groupÚlive_subparsersÚhelperÚlive_subparser_process_groupÚlive_subparser_token_groupÚlive_subparser_users_groupÚversion_groupÚbanner_groupÚ
logo_groupÚargsr   r   Úpmr8   r   ÚtiÚ
token_infor!   Úlmr   Úuserr"   r#   r$   r%   © rW   ú…/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/pypykatz/__amain__.pyÚmain
   s²   



òüÿô	ýrY   Ú__main__)r9   r2   rY   Ú__name__rW   rW   rW   rX   Ú<module>   s    
ÿ