__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

�|�g1��8�SrSSKrSSKrSSKJr "SS5rg)z3
An interface to override for SFTP server support.
�N��SFTP_OP_UNSUPPORTEDc�^�\rSrSrSrU4SjrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrU=r$)�SFTPServerInterface�ae
This class defines an interface for controlling the behavior of paramiko
when using the `.SFTPServer` subsystem to provide an SFTP server.

Methods on this class are called from the SFTP session's thread, so you can
block as long as necessary without affecting other sessions (even other
SFTP sessions).  However, raising an exception will usually cause the SFTP
session to abruptly end, so you will usually want to catch exceptions and
return an appropriate error code.

All paths are in string form instead of unicode because not all SFTP
clients & servers obey the requirement that paths be encoded in UTF-8.
c�&>�[TU]"U0UD6 g)z�
Create a new SFTPServerInterface object.  This method does nothing by
default and is meant to be overridden by subclasses.

:param .ServerInterface server:
    the server object associated with this channel and SFTP subsystem
N)�super�__init__)�self�server�args�kwargs�	__class__s    ��2/usr/lib/python3/dist-packages/paramiko/sftp_si.pyr
�SFTPServerInterface.__init__+s���	���$�)�&�)�c��g)z�
The SFTP server session has just started.  This method is meant to be
overridden to perform any necessary setup before handling callbacks
from SFTP operations.
N��rs r�session_started�#SFTPServerInterface.session_started5s��	
rc��g)z�
The SFTP server session has just ended, either cleanly or via an
exception.  This method is meant to be overridden to perform any
necessary cleanup before this `.SFTPServerInterface` object is
destroyed.
Nrrs r�
session_ended�!SFTPServerInterface.session_ended=s��	
rc��[$)a"
Open a file on the server and create a handle for future operations
on that file.  On success, a new object subclassed from `.SFTPHandle`
should be returned.  This handle will be used for future operations
on the file (read, write, etc).  On failure, an error code such as
``SFTP_PERMISSION_DENIED`` should be returned.

``flags`` contains the requested mode for opening (read-only,
write-append, etc) as a bitset of flags from the ``os`` module:

    - ``os.O_RDONLY``
    - ``os.O_WRONLY``
    - ``os.O_RDWR``
    - ``os.O_APPEND``
    - ``os.O_CREAT``
    - ``os.O_TRUNC``
    - ``os.O_EXCL``

(One of ``os.O_RDONLY``, ``os.O_WRONLY``, or ``os.O_RDWR`` will always
be set.)

The ``attr`` object contains requested attributes of the file if it
has to be created.  Some or all attribute fields may be missing if
the client didn't specify them.

.. note:: The SFTP protocol defines all files to be in "binary" mode.
    There is no equivalent to Python's "text" mode.

:param str path:
    the requested path (relative or absolute) of the file to be opened.
:param int flags:
    flags or'd together from the ``os`` module indicating the requested
    mode for opening the file.
:param .SFTPAttributes attr:
    requested attributes of the file if it is newly created.
:return: a new `.SFTPHandle` or error code.
r)r�path�flags�attrs    r�open�SFTPServerInterface.openFs��L#�"rc��[$)a�
Return a list of files within a given folder.  The ``path`` will use
posix notation (``"/"`` separates folder names) and may be an absolute
or relative path.

The list of files is expected to be a list of `.SFTPAttributes`
objects, which are similar in structure to the objects returned by
``os.stat``.  In addition, each object should have its ``filename``
field filled in, since this is important to a directory listing and
not normally present in ``os.stat`` results.  The method
`.SFTPAttributes.from_stat` will usually do what you want.

In case of an error, you should return one of the ``SFTP_*`` error
codes, such as ``SFTP_PERMISSION_DENIED``.

:param str path: the requested path (relative or absolute) to be
    listed.
:return:
    a list of the files in the given folder, using `.SFTPAttributes`
    objects.

.. note::
    You should normalize the given ``path`` first (see the `os.path`
    module) and check appropriate permissions before returning the list
    of files.  Be careful of malicious clients attempting to use
    relative paths to escape restricted folders, if you're doing a
    direct translation from the SFTP server path to your local
    filesystem.
r�rrs  r�list_folder�SFTPServerInterface.list_folderns
��<#�"rc��[$)a�
Return an `.SFTPAttributes` object for a path on the server, or an
error code.  If your server supports symbolic links (also known as
"aliases"), you should follow them.  (`lstat` is the corresponding
call that doesn't follow symlinks/aliases.)

:param str path:
    the requested path (relative or absolute) to fetch file statistics
    for.
:return:
    an `.SFTPAttributes` object for the given file, or an SFTP error
    code (like ``SFTP_PERMISSION_DENIED``).
rr"s  r�stat�SFTPServerInterface.stat�s
��#�"rc��[$)a 
Return an `.SFTPAttributes` object for a path on the server, or an
error code.  If your server supports symbolic links (also known as
"aliases"), you should not follow them -- instead, you should
return data on the symlink or alias itself.  (`stat` is the
corresponding call that follows symlinks/aliases.)

:param str path:
    the requested path (relative or absolute) to fetch file statistics
    for.
:type path: str
:return:
    an `.SFTPAttributes` object for the given file, or an SFTP error
    code (like ``SFTP_PERMISSION_DENIED``).
rr"s  r�lstat�SFTPServerInterface.lstat�s
�� #�"rc��[$)z�
Delete a file, if possible.

:param str path:
    the requested path (relative or absolute) of the file to delete.
:return: an SFTP error code `int` like ``SFTP_OK``.
rr"s  r�remove�SFTPServerInterface.remove�s
��#�"rc��[$)a_
Rename (or move) a file.  The SFTP specification implies that this
method can be used to move an existing file into a different folder,
and since there's no other (easy) way to move files via SFTP, it's
probably a good idea to implement "move" in this method too, even for
files that cross disk partition boundaries, if at all possible.

.. note:: You should return an error if a file with the same name as
    ``newpath`` already exists.  (The rename operation should be
    non-desctructive.)

.. note::
    This method implements 'standard' SFTP ``RENAME`` behavior; those
    seeking the OpenSSH "POSIX rename" extension behavior should use
    `posix_rename`.

:param str oldpath:
    the requested path (relative or absolute) of the existing file.
:param str newpath: the requested new path of the file.
:return: an SFTP error code `int` like ``SFTP_OK``.
r�r�oldpath�newpaths   r�rename�SFTPServerInterface.rename�s
��,#�"rc��[$)aC
Rename (or move) a file, following posix conventions. If newpath
already exists, it will be overwritten.

:param str oldpath:
    the requested path (relative or absolute) of the existing file.
:param str newpath: the requested new path of the file.
:return: an SFTP error code `int` like ``SFTP_OK``.

:versionadded: 2.2
rr/s   r�posix_rename� SFTPServerInterface.posix_rename��
��#�"rc��[$)a%
Create a new directory with the given attributes.  The ``attr``
object may be considered a "hint" and ignored.

The ``attr`` object will contain only those fields provided by the
client in its request, so you should use ``hasattr`` to check for
the presence of fields before using them.  In some cases, the ``attr``
object may be completely empty.

:param str path:
    requested path (relative or absolute) of the new folder.
:param .SFTPAttributes attr: requested attributes of the new folder.
:return: an SFTP error code `int` like ``SFTP_OK``.
r�rrrs   r�mkdir�SFTPServerInterface.mkdir�s
��#�"rc��[$)a
Remove a directory if it exists.  The ``path`` should refer to an
existing, empty folder -- otherwise this method should return an
error.

:param str path:
    requested path (relative or absolute) of the folder to remove.
:return: an SFTP error code `int` like ``SFTP_OK``.
rr"s  r�rmdir�SFTPServerInterface.rmdir�s
��#�"rc��[$)a�
Change the attributes of a file.  The ``attr`` object will contain
only those fields provided by the client in its request, so you
should check for the presence of fields before using them.

:param str path:
    requested path (relative or absolute) of the file to change.
:param attr:
    requested attributes to change on the file (an `.SFTPAttributes`
    object)
:return: an error code `int` like ``SFTP_OK``.
rr9s   r�chattr�SFTPServerInterface.chattr�s
��#�"rc��[RRU5(a [RRU5nO"[RRSU-5n[R
S:XaUR
SS5nU$)a
Return the canonical form of a path on the server.  For example,
if the server's home folder is ``/home/foo``, the path
``"../betty"`` would be canonicalized to ``"/home/betty"``.  Note
the obvious security issues: if you're serving files only from a
specific folder, you probably don't want this method to reveal path
names outside that folder.

You may find the Python methods in ``os.path`` useful, especially
``os.path.normpath`` and ``os.path.realpath``.

The default implementation returns ``os.path.normpath('/' + path)``.
�/�win32�\)�osr�isabs�normpath�sys�platform�replace)rr�outs   r�canonicalize� SFTPServerInterface.canonicalizesd���7�7�=�=�����'�'�"�"�4�(�C��'�'�"�"�3��:�.�C��<�<�7�"��+�+�d�C�(�C��
rc��[$)aF
Return the target of a symbolic link (or shortcut) on the server.
If the specified path doesn't refer to a symbolic link, an error
should be returned.

:param str path: path (relative or absolute) of the symbolic link.
:return:
    the target `str` path of the symbolic link, or an error code like
    ``SFTP_NO_SUCH_FILE``.
rr"s  r�readlink�SFTPServerInterface.readlink#s
��#�"rc��[$)aX
Create a symbolic link on the server, as new pathname ``path``,
with ``target_path`` as the target of the link.

:param str target_path:
    path (relative or absolute) of the target for this new symbolic
    link.
:param str path:
    path (relative or absolute) of the symbolic link to create.
:return: an error code `int` like ``SFTP_OK``.
r)r�target_pathrs   r�symlink�SFTPServerInterface.symlink0r7rr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r
rrrr#r&r)r,r2r5r:r=r@rMrPrT�__static_attributes__�
__classcell__)rs@rrrs_����*�
�
�&#�P#�@#� #�$#�#�0#�#�"
#�
#��.#�#�#rr)rZrFrI�
paramiko.sftprrrrr�<module>r^s!��&�
�
�-�`#�`#r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 3.64 KB 0644
_version.cpython-313.pyc File 292 B 0644
_winapi.cpython-313.pyc File 16.39 KB 0644
agent.cpython-313.pyc File 22.25 KB 0644
auth_handler.cpython-313.pyc File 45.82 KB 0644
auth_strategy.cpython-313.pyc File 11.99 KB 0644
ber.cpython-313.pyc File 6.06 KB 0644
buffered_pipe.cpython-313.pyc File 8.82 KB 0644
channel.cpython-313.pyc File 58.82 KB 0644
client.cpython-313.pyc File 30.79 KB 0644
common.cpython-313.pyc File 7 KB 0644
compress.cpython-313.pyc File 1.57 KB 0644
config.cpython-313.pyc File 22.72 KB 0644
dsskey.cpython-313.pyc File 10.98 KB 0644
ecdsakey.cpython-313.pyc File 14.82 KB 0644
ed25519key.cpython-313.pyc File 8.15 KB 0644
file.cpython-313.pyc File 19.55 KB 0644
hostkeys.cpython-313.pyc File 16.65 KB 0644
kex_curve25519.cpython-313.pyc File 7.82 KB 0644
kex_ecdh_nist.cpython-313.pyc File 8.58 KB 0644
kex_gex.cpython-313.pyc File 13.47 KB 0644
kex_group1.cpython-313.pyc File 7.4 KB 0644
kex_group14.cpython-313.pyc File 1.26 KB 0644
kex_group16.cpython-313.pyc File 1.29 KB 0644
kex_gss.cpython-313.pyc File 29.75 KB 0644
message.cpython-313.pyc File 11.6 KB 0644
packet.cpython-313.pyc File 26.31 KB 0644
pipe.cpython-313.pyc File 6.4 KB 0644
pkey.cpython-313.pyc File 35.02 KB 0644
primes.cpython-313.pyc File 4.23 KB 0644
proxy.cpython-313.pyc File 5.03 KB 0644
rsakey.cpython-313.pyc File 9.43 KB 0644
server.cpython-313.pyc File 29.38 KB 0644
sftp.cpython-313.pyc File 7.11 KB 0644
sftp_attr.cpython-313.pyc File 10.42 KB 0644
sftp_client.cpython-313.pyc File 38.72 KB 0644
sftp_file.cpython-313.pyc File 23.91 KB 0644
sftp_handle.cpython-313.pyc File 7.51 KB 0644
sftp_server.cpython-313.pyc File 22.36 KB 0644
sftp_si.cpython-313.pyc File 11.78 KB 0644
ssh_exception.cpython-313.pyc File 9.38 KB 0644
ssh_gss.cpython-313.pyc File 27.47 KB 0644
transport.cpython-313.pyc File 134.97 KB 0644
util.cpython-313.pyc File 12.42 KB 0644
win_openssh.cpython-313.pyc File 2.36 KB 0644
win_pageant.cpython-313.pyc File 4.82 KB 0644
Filemanager