HEX
Server: LiteSpeed
System: Linux cpir1.prohostdns.com 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: pelakir (2976)
PHP: 8.2.31
Disabled: exec, shell_exec, system, passthru, proc_open, proc_close, proc_terminate, proc_get_status, popen, pclose, pcntl_exec
Upload Files
File: //usr/lib/python3.6/site-packages/sshuttle/__pycache__/cmdline.cpython-36.opt-1.pyc
3

>��]��@s�ddlZddlZddlZddljZddljZddljZddl	j
Z
ddljZddl
mZmZddlmZmZmZddlmZdd�ZdS)�N)�parser�parse_ipport)�family_ip_tuple�log�Fatal)�sudoerscCs�tj�}|js|jr\tj�jd�r2td�td�|jsHtd�td�t|j	|j|jd�|j
rhd|_|jr�ddl
j}|j|_|jr�ddl
j}|j|_|jt_�y�|jr�|js�|jr�tjd�tj|j|j�S|jr�tj|j|j�S|j|j}|j}|�r|j�rtjd�|j}|d	k�s.|d
k�r2d}dd�|j D�}|j!�rdt"j#d
|j!�pZd	j$��}n|j�rrg}nd}|j%�r�d}d}|j%j#d�}	xP|	D]2}
t&|
�\}}
}|t'j(k�r�|
|f}n|
|f}�q�Wnd}|j)�s�dnd}|j�rt*j+�t*j,�t*j-�t*j.�t/j|||j0||j1|j2|j3||j||j|j|||j
|j4|j5|j6|j7�}
|
dk�rftd�ntd|
�|
SWnRt8k
�r�}ztd|�dSd}~Xn&t9k
�r�td�td�dSXdS)NZOpenBSDz&Automatic sudoers does not work on BSD�z%--sudoers-file must be set or omited.)Z	user_nameZ	no_modify�	file_namerzexactly zero arguments expectedz0at least one subnet, subnet file, or -N expected��-cSsg|]}t|��qS�)r)�.0�nsrr�/usr/lib/python3.6/cmdline.py�
<listcomp>:szmain.<locals>.<listcomp>z[\s,]+�,�autozNormal exit code, exiting...z*Abnormal exit code %d detected, failing...z
fatal: %s
�c�
zKeyboard interrupt: exiting.
):r�
parse_argsrZsudoers_no_modify�platform�
startswithr�exitZsudoers_filenameZsudoers_userZdaemonZsyslogZwrapZsshuttle.ssnet�ssnetZMAX_CHANNELZlatency_buffer_sizeZLATENCY_BUFFER_SIZE�verbose�helpers�firewallZsubnetsZsubnets_file�error�main�method�	hostwatchZhw_mainZ
auto_hosts�excludeZ	auto_netsZremoteZns_hostsZ
seed_hosts�re�split�stripZlistenr�socketZAF_INET6Zdisable_ipv6�ssyslogZstart_syslogZclose_stdinZstdout_to_syslogZstderr_to_syslog�clientZssh_cmd�pythonZlatency_controlZdnsZto_nsZpidfile�userZsudo_pythonpathr�KeyboardInterrupt)�optrZincludesZexcludesZ
remotenameZnslistZshZ	ipport_v6Z	ipport_v4ZlstZipZfamilyZportZreturn_code�errrrs�








r)r"r%rZsshuttle.helpersrZsshuttle.clientr'Zsshuttle.firewallrZsshuttle.hostwatchr Zsshuttle.ssyslogr&Zsshuttle.optionsrrrrrZsshuttle.sudoersrrrrrr�<module>s