PATH: //proc/thread-self/root/bin
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 GET
↓
X
📄 Mail
↓
X
📄 [
↓
X
📄 aclocal
↓
X
📄 aclocal-1.16
↓
X
📄 addr2line
↓
X
📄 agentxtrap
↓
X
📄 animate
↓
X
📄 ar
↓
X
📄 arch
↓
X
📄 arpaname
↓
X
📄 as
↓
X
📄 aspell
↓
X
📄 at
↓
X
📄 atq
↓
X
📄 atrm
↓
X
📄 autoconf
↓
X
📄 autoheader
↓
X
📄 autom4te
↓
X
📄 automake
↓
X
📄 automake-1.16
↓
X
📄 autoreconf
↓
X
📄 autoscan
↓
X
📄 autoupdate
↓
X
📄 awk
↓
X
📄 b2sum
↓
X
📄 base32
↓
X
📄 base64
↓
X
📄 basename
↓
X
📄 basenc
↓
X
📄 bash
↓
X
📄 bashbug-64
↓
X
📄 batch
↓
X
📄 bison
↓
X
📄 bunzip2
↓
X
📄 bzcat
↓
X
📄 bzcmp
↓
X
📄 bzdiff
↓
X
📄 bzgrep
↓
X
📄 bzip2
↓
X
📄 bzip2recover
↓
X
📄 bzless
↓
X
📄 bzmore
↓
X
📄 c++
↓
X
📄 c++filt
↓
X
📄 c89
↓
X
📄 c99
↓
X
📄 cagefs_enter.proxied
↓
X
📄 cal
↓
X
📄 captoinfo
↓
X
📄 cat
↓
X
📄 catchsegv
↓
X
📄 cc
↓
X
📄 chcon
↓
X
📄 chgrp
↓
X
📄 chmod
↓
X
📄 chown
↓
X
📄 chrt
↓
X
📄 cksum
↓
X
📄 cldetect
↓
X
📄 clear
↓
X
📄 cloudlinux-awp-user
↓
X
📄 clusterdb
↓
X
📄 clwpos-user
↓
X
📄 cmp
↓
X
📄 col
↓
X
📄 colcrt
↓
X
📄 colrm
↓
X
📄 column
↓
X
📄 comm
↓
X
📄 compare
↓
X
📄 composite
↓
X
📄 conjure
↓
X
📄 convert
↓
X
📄 cp
↓
X
📄 cpan
↓
X
📄 cpp
↓
X
📄 createdb
↓
X
📄 createuser
↓
X
📄 crontab
↓
X
📄 crontab.cagefs
↓
X
📄 csplit
↓
X
📄 curl
↓
X
📄 cut
↓
X
📄 cyrusbdb2current
↓
X
📄 date
↓
X
📄 dbiprof
↓
X
📄 dd
↓
X
📄 delv
↓
X
📄 df
↓
X
📄 diff
↓
X
📄 diff3
↓
X
📄 dig
↓
X
📄 dir
↓
X
📄 dircolors
↓
X
📄 dirname
↓
X
📄 display
↓
X
📄 dnstap-read
↓
X
📄 dropdb
↓
X
📄 dropuser
↓
X
📄 du
↓
X
📄 echo
↓
X
📄 ed
↓
X
📄 egrep
↓
X
📄 enc2xs
↓
X
📄 enchant
↓
X
📄 enchant-lsmod
↓
X
📄 env
↓
X
📄 eps2eps
↓
X
📄 eqn
↓
X
📄 ex
↓
X
📄 expand
↓
X
📄 expr
↓
X
📄 factor
↓
X
📄 false
↓
X
📄 fc-cache
↓
X
📄 fc-cache-64
↓
X
📄 fc-cat
↓
X
📄 fc-conflist
↓
X
📄 fc-list
↓
X
📄 fc-match
↓
X
📄 fc-pattern
↓
X
📄 fc-query
↓
X
📄 fc-scan
↓
X
📄 fc-validate
↓
X
📄 fgrep
↓
X
📄 file
↓
X
📄 find
↓
X
📄 flex
↓
X
📄 flex++
↓
X
📄 flock
↓
X
📄 fmt
↓
X
📄 fold
↓
X
📄 free
↓
X
📄 freetype-config
↓
X
📄 funzip
↓
X
📄 g++
↓
X
📄 gawk
↓
X
📄 gcc
↓
X
📄 gcc-ar
↓
X
📄 gcc-nm
↓
X
📄 gcc-ranlib
↓
X
📄 gcov
↓
X
📄 gcov-dump
↓
X
📄 gcov-tool
↓
X
📄 gem
↓
X
📄 gencat
↓
X
📄 geoiplookup
↓
X
📄 geoiplookup6
↓
X
📄 geqn
↓
X
📄 getconf
↓
X
📄 getent
↓
X
📄 getopt
↓
X
📄 ghostscript
↓
X
📄 git
↓
X
📄 git-receive-pack
↓
X
📄 git-shell
↓
X
📄 git-upload-archive
↓
X
📄 git-upload-pack
↓
X
📄 gm
↓
X
📄 gmake
↓
X
📄 gneqn
↓
X
📄 gnroff
↓
X
📄 gpg
↓
X
📄 gpg-agent
↓
X
📄 gpg-error
↓
X
📄 gpgsplit
↓
X
📄 gpgv
↓
X
📄 gpic
↓
X
📄 gprof
↓
X
📄 grep
↓
X
📄 groff
↓
X
📄 grops
↓
X
📄 grotty
↓
X
📄 groups
↓
X
📄 gs
↓
X
📄 gsnd
↓
X
📄 gsoelim
↓
X
📄 gtar
↓
X
📄 gtbl
↓
X
📄 gtroff
↓
X
📄 gunzip
↓
X
📄 gzexe
↓
X
📄 gzip
↓
X
📄 h2ph
↓
X
📄 h2xs
↓
X
📄 head
↓
X
📄 hexdump
↓
X
📄 host
↓
X
📄 hostid
↓
X
📄 hostname
↓
X
📄 hunspell
↓
X
📄 iconv
↓
X
📄 icu-config
↓
X
📄 icu-config-64
↓
X
📄 icuinfo
↓
X
📄 id
↓
X
📄 identify
↓
X
📄 idn
↓
X
📄 ifnames
↓
X
📄 import
↓
X
📄 infocmp
↓
X
📄 infotocap
↓
X
📄 install
↓
X
📄 instmodsh
↓
X
📄 ionice
↓
X
📄 ipcrm
↓
X
📄 ipcs
↓
X
📄 isosize
↓
X
📄 ispell
↓
X
📄 join
↓
X
📄 kill
↓
X
📄 ld
↓
X
📄 ld.bfd
↓
X
📄 ldd
↓
X
📄 less
↓
X
📄 lessecho
↓
X
📄 lesskey
↓
X
📄 lesspipe.sh
↓
X
📄 lex
↓
X
📄 libnetcfg
↓
X
📄 libtool
↓
X
📄 libtoolize
↓
X
📄 link
↓
X
📄 ln
↓
X
📄 locale
↓
X
📄 localedef
↓
X
📄 logger
↓
X
📄 login
↓
X
📄 logname
↓
X
📄 look
↓
X
📄 ls
↓
X
📄 lto-dump
↓
X
📄 m4
↓
X
📄 mail
↓
X
📄 mailx
↓
X
📄 make
↓
X
📄 make-dummy-cert
↓
X
📄 mariadb
↓
X
📄 mariadb-access
↓
X
📄 mariadb-admin
↓
X
📄 mariadb-binlog
↓
X
📄 mariadb-check
↓
X
📄 mariadb-conv
↓
X
📄 mariadb-convert-table-format
↓
X
📄 mariadb-dump
↓
X
📄 mariadb-dumpslow
↓
X
📄 mariadb-embedded
↓
X
📄 mariadb-find-rows
↓
X
📄 mariadb-hotcopy
↓
X
📄 mariadb-import
↓
X
📄 mariadb-plugin
↓
X
📄 mariadb-secure-installation
↓
X
📄 mariadb-setpermission
↓
X
📄 mariadb-show
↓
X
📄 mariadb-slap
↓
X
📄 mariadb-tzinfo-to-sql
↓
X
📄 mariadb-waitpid
↓
X
📄 mcookie
↓
X
📄 md5sum
↓
X
📄 mesg
↓
X
📄 mkdir
↓
X
📄 mkfifo
↓
X
📄 mknod
↓
X
📄 mktemp
↓
X
📄 mogrify
↓
X
📄 montage
↓
X
📄 more
↓
X
📄 msql2mysql
↓
X
📄 mv
↓
X
📄 my_print_defaults
↓
X
📄 mysql
↓
X
📄 mysql_config
↓
X
📄 mysql_find_rows
↓
X
📄 mysql_waitpid
↓
X
📄 mysqlaccess
↓
X
📄 mysqladmin
↓
X
📄 mysqlbinlog
↓
X
📄 mysqlcheck
↓
X
📄 mysqldump
↓
X
📄 mysqlimport
↓
X
📄 mysqlshow
↓
X
📄 mytop
↓
X
📄 namei
↓
X
📄 nano
↓
X
📄 neqn
↓
X
📄 net-snmp-create-v3-user
↓
X
📄 nice
↓
X
📄 nl
↓
X
📄 nm
↓
X
📄 nohup
↓
X
📄 nproc
↓
X
📄 nroff
↓
X
📄 nslookup
↓
X
📄 nsupdate
↓
X
📄 numfmt
↓
X
📄 objcopy
↓
X
📄 objdump
↓
X
📄 od
↓
X
📄 openssl
↓
X
📄 pango-list
↓
X
📄 pango-segmentation
↓
X
📄 pango-view
↓
X
📄 passenger
↓
X
📄 passwd
↓
X
📄 paste
↓
X
📄 patch
↓
X
📄 pathchk
↓
X
📄 pdf2dsc
↓
X
📄 pdf2ps
↓
X
📄 perl
↓
X
📄 perl5.32.1
↓
X
📄 perlbug
↓
X
📄 perldoc
↓
X
📄 perlivp
↓
X
📄 perlml
↓
X
📄 perlthanks
↓
X
📄 pg_dump
↓
X
📄 pg_dumpall
↓
X
📄 pg_restore
↓
X
📄 pgrep
↓
X
📄 php
↓
X
📄 pic
↓
X
📄 piconv
↓
X
📄 ping
↓
X
📄 pinky
↓
X
📄 pkg-config
↓
X
📄 pkill
↓
X
📄 pl2pm
↓
X
📄 pmap
↓
X
📄 pod2html
↓
X
📄 pod2man
↓
X
📄 pod2text
↓
X
📄 pod2usage
↓
X
📄 podchecker
↓
X
📄 post-grohtml
↓
X
📄 pr
↓
X
📄 pre-grohtml
↓
X
📄 precat
↓
X
📄 preunzip
↓
X
📄 prezip
↓
X
📄 prezip-bin
↓
X
📄 printenv
↓
X
📄 printf
↓
X
📄 prove
↓
X
📄 ps
↓
X
📄 ps2ascii
↓
X
📄 ps2epsi
↓
X
📄 ps2pdf
↓
X
📄 ps2pdf12
↓
X
📄 ps2pdf13
↓
X
📄 ps2pdf14
↓
X
📄 ps2pdfwr
↓
X
📄 ps2ps
↓
X
📄 ps2ps2
↓
X
📄 psql
↓
X
📄 ptx
↓
X
📄 pwd
↓
X
📄 pwdx
↓
X
📄 pydoc
↓
X
📄 pydoc3
↓
X
📄 pydoc3.9
↓
X
📄 ranlib
↓
X
📄 readelf
↓
X
📄 readlink
↓
X
📄 realpath
↓
X
📄 recode
↓
X
📄 red
↓
X
📄 reindexdb
↓
X
📄 rename
↓
X
📄 renew-dummy-cert
↓
X
📄 renice
↓
X
📄 replace
↓
X
📄 reset
↓
X
📄 rev
↓
X
📄 rm
↓
X
📄 rmdir
↓
X
📄 rnano
↓
X
📄 ruby
↓
X
📄 run-with-aspell
↓
X
📄 runcon
↓
X
📄 rvi
↓
X
📄 rview
↓
X
📄 scalar
↓
X
📄 scl
↓
X
📄 scl_enabled
↓
X
📄 scl_source
↓
X
📄 scp
↓
X
📄 script
↓
X
📄 sdiff
↓
X
📄 sed
↓
X
📄 selectorctl
↓
X
📄 seq
↓
X
📄 setsid
↓
X
📄 setterm
↓
X
📄 sftp
↓
X
📄 sh
↓
X
📄 sha1sum
↓
X
📄 sha224sum
↓
X
📄 sha256sum
↓
X
📄 sha384sum
↓
X
📄 sha512sum
↓
X
📄 shred
↓
X
📄 shuf
↓
X
📄 size
↓
X
📄 skill
↓
X
📄 slabtop
↓
X
📄 sleep
↓
X
📄 snice
↓
X
📄 snmpconf
↓
X
📄 soelim
↓
X
📄 sort
↓
X
📄 spell
↓
X
📄 splain
↓
X
📄 split
↓
X
📄 sprof
↓
X
📄 sqlite3
↓
X
📄 ssh
↓
X
📄 ssh-add
↓
X
📄 ssh-agent
↓
X
📄 ssh-copy-id
↓
X
📄 ssh-keygen
↓
X
📄 ssh-keyscan
↓
X
📄 stat
↓
X
📄 stdbuf
↓
X
📄 strace
↓
X
📄 stream
↓
X
📄 strings
↓
X
📄 strip
↓
X
📄 stty
↓
X
📄 sum
↓
X
📄 sync
↓
X
📄 tabs
↓
X
📄 tac
↓
X
📄 tail
↓
X
📄 tar
↓
X
📄 taskset
↓
X
📄 tbl
↓
X
📄 tclsh
↓
X
📄 tclsh8.6
↓
X
📄 tee
↓
X
📄 test
↓
X
📄 tic
↓
X
📄 timeout
↓
X
📄 tload
↓
X
📄 tmpwatch
↓
X
📄 toe
↓
X
📄 top
↓
X
📄 touch
↓
X
📄 tput
↓
X
📄 tr
↓
X
📄 troff
↓
X
📄 true
↓
X
📄 truncate
↓
X
📄 tset
↓
X
📄 tsort
↓
X
📄 tty
↓
X
📄 tzselect
↓
X
📄 uapi
↓
X
📄 ul
↓
X
📄 uname
↓
X
📄 unexpand
↓
X
📄 uniq
↓
X
📄 unlink
↓
X
📄 unzip
↓
X
📄 unzipsfx
↓
X
📄 uptime
↓
X
📄 users
↓
X
📄 utmpdump
↓
X
📄 vacuumdb
↓
X
📄 vdir
↓
X
📄 vi
↓
X
📄 view
↓
X
📄 vmstat
↓
X
📄 watch
↓
X
📄 wc
↓
X
📄 wget
↓
X
📄 whereis
↓
X
📄 which
↓
X
📄 who
↓
X
📄 whoami
↓
X
📄 word-list-compress
↓
X
📄 x86_64-redhat-linux-c++
↓
X
📄 x86_64-redhat-linux-g++
↓
X
📄 x86_64-redhat-linux-gcc
↓
X
📄 x86_64-redhat-linux-gcc-11
↓
X
📄 xargs
↓
X
📄 xmlcatalog
↓
X
📄 xmllint
↓
X
📄 xmlwf
↓
X
📄 xsltproc
↓
X
📄 xsubpp
↓
X
📄 yes
↓
X
📄 zcat
↓
X
📄 zcmp
↓
X
📄 zdiff
↓
X
📄 zegrep
↓
X
📄 zfgrep
↓
X
📄 zforce
↓
X
📄 zgrep
↓
X
📄 zip
↓
X
📄 zipcloak
↓
X
📄 zipgrep
↓
X
📄 zipinfo
↓
X
📄 zipnote
↓
X
📄 zipsplit
↓
X
📄 zless
↓
X
📄 zmore
↓
X
📄 znew
↓
X
📄 zsoelim
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: cldetect
#!/opt/cloudlinux/venv/bin/python3 -sbb # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENCE.TXT # import getopt import os import sys import textwrap import cldetectlib as detect import cllicenselib as cllicense import clsetuplib as clsetup from clcommon.lib.cledition import get_cl_edition_readable, skip_without_lve from clcommon.utils import get_os_version, is_ea4, is_nginx_running # Check for root def check_root(): if os.geteuid() != 0: print("Error: root privileges required. Abort.") sys.exit(-1) # Show help def print_usage() -> None: help_message = """ -h | --help show this message --detect-cp print control panel and its version (CP_NAME, CP_VERSION) --detect-cp-full print control panel, version and panel specific data (CP_NAME, CP_VERSION, ...) Specific data: for ISP Manager5 - Master/Node --detect-cp-nameonly print control panel name (CP_NAME) --get-admin-email print control panel admin email (CP_ADMIN_EMAIL) --cxs-installed check if CXS is installed. Returns 0 if installed, 1 otherwise --cpanel-suphp-enabled check if suPHP is enabled in cPanel. Returns 0 if enabled, 1 otherwise --detect-litespeed check if LiteSpeed is installed. Returns 0 if installed, 1 otherwise --detect-postgresql check if PostGreSQL is installed. Returns 0 if installed, 1 otherwise --detect-ea4 check if EA4 is installed. Only for cPanel --detect-nginx check if nginx is running --print-apache-gid print current apache gid --print-da-admin print DirectAdmin admin user --set-securelinks-gid change sysctl conf if apache gid != 48 (default) --set-nagios do some adjustments to make nagios work correctly if it's installed --setup-supergids do some adjustments to make some software work correctly if it's installed --cl-setup check if CloudLinux is installing. Returns 0 if installing, 1 otherwise --update-license update license --update-new-key update license with new key --check-license check license. Return OK if license is not older than 3 days, error message otherwise --check-license --quiet check license. Exit with code 0 if license is not older than 3 days, 1 otherwise --no-valid-license-screen return 'no valid license found' screen --license-out-of-date-email return the 'license out of date' email --check-openvz return environment ID --detect-edition return edition of CloudLinux --detect-os print OS name and version (OS_NAME,OS_VERSION) --detect-os-nameonly print OS name only (OS_NAME) """ # noqa: E501 # Strip newlines from the start and end # Keep in mind that multi-line indentation is preserved print(help_message.strip("\n")) def update_new_key(key): cllicense.update_license_with_key(key) def check_license(quiet): is_license_valid = cllicense.check_license() if quiet: if is_license_valid: sys.exit(0) else: sys.exit(1) else: print(cllicense.last_license_check(is_license_valid)) sys.exit(0) def main(): try: opts, args = getopt.getopt( sys.argv[1:], "hq", [ "help", "quiet", "detect-cp", "detect-cp-full", "detect-cp-nameonly", "cxs-installed", "cpanel-suphp-enabled", "get-admin-email", "print-apache-gid", "detect-litespeed", "detect-postgresql", "set-securelinks-gid", "print-da-admin", "cl-setup", "set-nagios", "update-license", "update-new-key", "check-license", "no-valid-license-screen", "license-out-of-date-email", "check-openvz", "detect-ea4", "detect-nginx", "setup-supergids", "detect-edition", "detect-os", "detect-os-nameonly", ], ) except getopt.GetoptError: print("error: unknown command") print_usage() sys.exit(1) executed = False quiet = False for option, _argument in opts: if option in ("--quiet", "-q"): quiet = True break skipped_without_lve_checks = ("--set-securelinks-gid", "--set-nagios", "--setup-supergids") for option, _argument in opts: if option in skipped_without_lve_checks: skip_without_lve() if option in ("--help", "-h"): executed = True check_root() print_usage() elif option in ("--cxs-installed",): executed = True check_root() if detect.CXS_check(): sys.exit(0) else: sys.exit(1) elif option in ("--detect-cp",): executed = True check_root() detect.getCP() print(str(detect.CP_NAME) + "," + str(detect.CP_VERSION)) elif option in ("--detect-cp-full",): executed = True check_root() detect.getCP() cp_name = str(detect.CP_NAME) cp_version = str(detect.CP_VERSION) if detect.CP_ISP_TYPE: # Panel additional info present print(f"{cp_name},{cp_version},{detect.CP_ISP_TYPE}") else: # No panel additional info present print(f"{cp_name},{cp_version}") elif option in ("--detect-cp-nameonly",): executed = True check_root() detect.getCPName() print(str(detect.CP_NAME)) elif option in ("--get-admin-email",): executed = True check_root() print(detect.getCPAdminEmail()) elif option in ("--cpanel-suphp-enabled",): executed = True check_root() if detect.mod_suPHP_check(): sys.exit(0) else: sys.exit(1) elif option in ("--detect-litespeed",): executed = True check_root() if detect.detect_litespeed(): sys.exit(0) else: sys.exit(1) elif option in ("--detect-postgresql",): executed = True check_root() if detect.detect_postgresql(): sys.exit(0) else: sys.exit(1) elif option in ("--print-apache-gid",): executed = True check_root() if detect.get_apache_gid(): print(detect.APACHE_GID) else: print("error: unknown control panel") elif option in ("--set-securelinks-gid",): executed = True check_root() if detect.get_apache_gid(): clsetup.set_securelinks_gid(detect.APACHE_GID) # Actually, this command could be removed because it's a sub-set of # --setup-supergids, but I left it here only for backward compatibility elif option in ("--set-nagios",): executed = True check_root() clsetup.setup_nagios() elif option in ("--setup-supergids",): executed = True check_root() clsetup.setup_supergids() elif option in ("--print-da-admin",): executed = True check_root() admin = detect.detect_DA_admin() if admin: print(admin) else: print("Error: can not find admin user for DirectAdmin") elif option in ("--cl-setup",): executed = True check_root() if detect.check_CL_installing(): sys.exit(0) else: sys.exit(1) elif option in ("--update-license",): executed = True check_root() cllicense.update_license_timestamp_file() elif option in ("--update-new-key",): executed = True check_root() try: update_new_key(args[0].strip()) except: print("Error: key required.") sys.exit(1) elif option in ("--check-license",): executed = True check_license(quiet) elif option in ("--no-valid-license-screen",): executed = True check_root() print(cllicense.get_novalid_template()) elif option in ("--license-out-of-date-email",): executed = True check_root() print(cllicense.get_email_template()) elif option in ("--check-openvz",): executed = True result = detect.is_openvz() sys.stdout.write(str(result)) elif option in ("--detect-ea4",): executed = True if is_ea4(): print("EA4 detected") else: print("No EA4 detected") elif option in ("--detect-nginx",): executed = True if is_nginx_running(): print("Nginx is running") else: print("Nginx is not running") elif option in ("--detect-edition",): executed = True print(get_cl_edition_readable()) elif option in ("--detect-os",): executed = True os_name, os_ver = get_os_version() print(os_name, os_ver) elif option in ("--detect-os-nameonly",): executed = True os_name, _ = get_os_version() print(os_name) if not executed: print("error: argument required") print_usage() sys.exit(1) if __name__ == "__main__": main()
SIMPAN PERUBAHAN