Scripts cPanel

Berikut merupakan beberapa script yang dapat membantu Anda untuk mengelola dan mengambil informasi tentang akun di server cPanel.

tech-CSI

CSI (cPanel Security Investigator)

Script yang menyediakan berbagai fungsi untuk membantu penyelidikan kompromi di tingkat root dan pengguna seperti webshell, ransomeware, dan suspicious files.

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelTechs/CSI/master/csi.pl)

Buat alias agar lebih mudah digunakan.

alias csi="/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelTechs/CSI/master/csi.pl)"

Examples

csi [DEFAULT] quick scan
csi --symlink
csi --secadv
csi --full [--yarascan]
csi --overwrite
csi --cron [ add this to roots crontab or to a file in /etc/cron.d or /etc/cron.daily ]

Bincheck:
csi --bincheck

Userscan
csi --userscan myuser
csi --userscan myuser --customdir mycustomdir
(must be relative to the myuser homedir and defaults to public_html if non-existent!

tech-cvecheck

Script untuk memeriksa CVE issues dengan cepat di server cPanel.

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-cvecheck/main/cvecheck)

tech-acctinfo

Skrip acctinfo dapat memberi Anda banyak informasi tentang akun di server cPanel

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-acctinfo/master/acctinfo)

Buat alias agar lebih mudah digunakan.

alias acctinfo="/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/cPanelInc/tech-acctinfo/master/acctinfo)"

Examples

acctinfo --listdbs somedomain.net
    Lists any MySQL and PostGreSQL databases for somedomain.net
acctinfo --listsubs cptestdo
    Lists all sub domains under the cptestdo user name.
acctinfo --listaddons cptestdomain.net
    Lists all addon domains under the cptestdomain.net domain name.
acctinfo --listalias cptestdomain.net
    Lists all alias (parked) domains under the cptestdomain.net domain name.
acctinfo --domains cptestdomain.net
    Lists all alias (parked), subdomains and addon domains under the cptestdomain.net domain name.
acctinfo --reselleraccts cptestdo
    Lists reseller information and domains under the cptestdo user name.
acctinfo --resellerperms|--resellerprivs cptestdo
    Lists reseller permissions under the cptestdo user name.
acctinfo --listssls cptestdomain.net
    Lists any SSL's under the cptestdomain.net domain name.
acctinfo --cruft cptestdomain.net
    Perform a cruft check on cptestdomain.net.
acctinfo --mail cptestdomain.net [ --cphulkblocks]
    Display mail information for cptestdomain.net.
acctinfo --tomcat cptestdo
    Display Tomcat 8.5/10.0 configuration information for the cptestdo user.
acctinfo --wpinfo [--showpass] cptestdomain.net
    Check for and display WordPress information for the cptestdomain.net domain.
acctinfo --scan cptest
    Scan users home directory for known infection strings.
acctinfo --all cptestdomain.net
    Lists everything for the cptestdomain.net domain name.
acctinfo --header cptestdomain.net
    Attempt to obtain certain Apache Header information and display if found [ requires patience ].
acctinfo --help
    Shows this usage information. (NOTE: ACTION can go before or after domain/username).

tech-cp_license_troubleshooter

Skrip ini akan menjalankan beberapa pemeriksaan dasar dan menunjukkan masalah apa yang mungkin mempengaruhi lisensi cPanel.

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-cp_license_troubleshooter/master/cplicensets)

tech-easyapachebuddy

Skrip untuk mengecek konfigurasi EasyApache 4 seperti MultiPHP, DefaultPHP, PHP-FPM.

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-easyapachebuddy/main/easyapachebuddy.pl)

tech-WebStatsProbe

Simple tool untuk cek konfigurasi webstats di server cPanel

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-WebStatsProbe/master/webstatsprobe.pl)

tech-secheaders

Skrip untuk mengecek HTTP Security Headers beserta rekomendasinya.

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-secheaders/main/secheaders) domain.tld

tech-MSP

Skrip yang dapat membantu untuk mengetahui informasi dasar tentang email server cPanel Anda.

/usr/local/cpanel/3rdparty/bin/perl <(curl -s "https://raw.githubusercontent.com/CpanelInc/tech-SSE/master/msp.pl")

Alias

alias msp="/usr/local/cpanel/3rdparty/bin/perl <(curl -s "https://raw.githubusercontent.com/CpanelInc/tech-SSE/master/msp.pl")"

Examples

Usage: ./msp.pl --auth --rotated --rude
       ./msp.pl --conf --rbl [all|bl.spamcop.net,zen.spamhaus.org]

        --help          print this help message
        --auth          print mail authentication statistics
        --conf          print mail configuration info (e.g. require_secure_auth, smtpmailgidonly, etc.)
        --limit         limit statistics checks to n results (defaults to 10, set to 0 for no limit)
        --logdir        specify an alternative logging directory, (defaults to /var/log)
        --maillog       check maillog for common errors
        --queue         print exim queue length
        --rbl           check IP's against provided blacklists(comma delimited)
        --rbllist       list available RBL's
        --rotated       check rotated exim logs
        --rude          forgo nice/ionice settings
        --threshold     limit statistics output to n threshold(defaults to 1)
        --verbose       display all information
        --domain=DOMAIN Check for domain's existence, ownership and resolution on the server.
        --email=EMAIL   Email specific checks.

Terdapat juga skrip sse yang memiliki fungsi mirip seperti msp.

perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-MSP/master/sse.pl) --help
Usage: ./sse.pl [OPTION] [VALUE]
Without options:  Run informational checks on Exim's configuration and server status.
--domain=DOMAIN   Check for domain's existence, ownership, and resolution on the server.
--email=EMAIL     Email specific checks.
-s                View Breakdown of sent mail.
-b               Checks the Main IP and IPs in /etc/ips for a few blacklists.

tech-ESP

ESP (Enhanced Shell Prompt) adalah bash prompt yang berisi berbagai skrip untuk membantu teknisi mengetahui apa yang terjadi di server.

source /dev/stdin <<< "$(curl -sL https://raw.githubusercontent.com/cPanelTechs/ESP/master/esp)"

Untuk melihat perintah yang dapat Anda gunakan.

cphelp

tech-vm_setup

Skrip untuk membantu Anda untuk menyiapkan dan mengkonfigurasi server cPanel.

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-vm_setup/master/vm_setup.pl)

tech-pkgacctmig-modified

Skrip untuk membuat backup akun dari panel server lain misal Plesk agar dapat dimigrasikan ke server cPanel.

perl <(curl -s https://raw.githubusercontent.com/CpanelInc/tech-pkgacctmig-modified/master/pkgacct-pXa)