ACIL FM
Dark
Refresh
Current DIR:
/usr/lib/python3.9/site-packages/cockpit/_vendor/ferny
/
usr
lib
python3.9
site-packages
cockpit
_vendor
ferny
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
askpass.py
76 B
chmod
View
DL
Edit
Rename
Delete
interaction_agent.py
15.43 MB
chmod
View
DL
Edit
Rename
Delete
interaction_client.py
1.08 MB
chmod
View
DL
Edit
Rename
Delete
py.typed
0 B
chmod
View
DL
Edit
Rename
Delete
session.py
7.47 MB
chmod
View
DL
Edit
Rename
Delete
ssh_askpass.py
6.7 MB
chmod
View
DL
Edit
Rename
Delete
ssh_errors.py
4.73 MB
chmod
View
DL
Edit
Rename
Delete
transport.py
16.51 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
1.34 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/lib/python3.9/site-packages/cockpit/_vendor/ferny/interaction_client.py
#!/usr/bin/python3 import array import io import os import socket import sys from typing import Sequence def command(stderr_fd: int, command: str, *args: object, fds: Sequence[int] = ()) -> None: cmd_read, cmd_write = [io.open(*end) for end in zip(os.pipe(), 'rw')] with cmd_write: with cmd_read: with socket.fromfd(stderr_fd, socket.AF_UNIX, socket.SOCK_STREAM) as sock: fd_array = array.array('i', (cmd_read.fileno(), *fds)) sock.sendmsg([b'\0'], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, fd_array)]) cmd_write.write(repr((command, args))) def askpass(stderr_fd: int, stdout_fd: int, args: 'list[str]', env: 'dict[str, str]') -> int: ours, theirs = socket.socketpair() with theirs: command(stderr_fd, 'ferny.askpass', args, env, fds=(theirs.fileno(), stdout_fd)) with ours: return int(ours.recv(16) or b'1') def main() -> None: if len(sys.argv) == 1: command(2, 'ferny.end', []) else: sys.exit(askpass(2, 1, sys.argv, dict(os.environ))) if __name__ == '__main__': main()
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply