X7ROOT File Manager
Current Path:
/usr/local/cpanel/scripts
usr
/
local
/
cpanel
/
scripts
/
š
..
š
MirrorSearch_pingtest
(2.38 KB)
š
activesync-invite-reply
(1.69 KB)
š
add_dns
(2.36 KB)
š
adddns
(2.36 KB)
š
addpop
(6.08 KB)
š
addsystemuser
(3.27 KB)
š
adduser
(92 B)
š
agent360.sh
(16.03 KB)
š
apachelimits
(4.31 KB)
š
archive_sync_zones
(3.05 KB)
š
auto-adjust-mysql-limits
(1.81 KB)
š
autorepair
(1.24 KB)
š
backups_clean_metadata_for_missing_backups
(1.57 KB)
š
backups_create_metadata
(15.75 KB)
š
backups_list_user_files
(4.56 KB)
š
balance_linked_node_quotas
(2.58 KB)
š
biglogcheck
(1.69 KB)
š
build_bandwidthdb_root_cache_in_background
(1.52 KB)
š
build_cpnat
(3.41 KB)
š
build_mail_sni
(3.87 KB)
š
build_maxemails_config
(1.14 KB)
š
builddovecotconf
(6.76 KB)
š
buildeximconf
(7 KB)
š
buildhttpdconf
(2.6 KB)
š
buildpureftproot
(539 B)
š
ccs-check
(4.91 KB)
š
check_cpanel_pkgs
(10.75 KB)
š
check_domain_tls_service_domains.pl
(6.68 KB)
š
check_immutable_files
(5.49 KB)
š
check_mail_spamassassin_compiledregexps_body_0
(187 B)
š
check_maxmem_against_domains_count
(3.57 KB)
š
check_mount_procfs
(2.02 KB)
š
check_mysql
(5.56 KB)
š
check_plugin_pkgs
(2.45 KB)
š
check_security_advice_changes
(8.28 KB)
š
check_unmonitored_enabled_services
(4.56 KB)
š
check_unreliable_resolvers
(3.59 KB)
š
check_users_my_cnf
(6.05 KB)
š
check_valid_server_hostname
(7.66 KB)
š
checkalldomainsmxs
(2.4 KB)
š
checkbashshell
(1.18 KB)
š
checkccompiler
(1.22 KB)
š
checkexim.pl
(3.1 KB)
š
checklink
(1.29 KB)
š
checkusers
(856 B)
š
chkpaths
(141 B)
š
chpass
(416 B)
š
ckillall
(1.11 KB)
š
clean_dead_mailman_locks
(2.09 KB)
š
clean_up_temp_wheel_users
(2.44 KB)
š
clean_user_php_sessions
(4.76 KB)
š
cleandns
(13.11 KB)
š
cleandns8
(417 B)
š
cleanmsglog
(735 B)
š
cleanphpsessions
(932 B)
š
cleanphpsessions.php
(658 B)
š
cleanquotas
(1.61 KB)
š
cleansessions
(5.89 KB)
š
cleanupinterchange
(2.64 KB)
š
cleanupmysqlprivs
(773 B)
š
clear_cpaddon_ui_caches
(1.27 KB)
š
clear_orphaned_virtfs_mounts
(3.56 KB)
š
comparecdb
(1.52 KB)
š
compilers
(2.86 KB)
š
compilerscheck
(999 B)
š
configure_firewall_for_cpanel
(520 B)
š
configure_rh_firewall_for_cpanel
(520 B)
š
configure_rh_ipv6_firewall_for_cpanel
(520 B)
š
convert2dovecot
(682 B)
š
convert_accesshash_to_token
(4.07 KB)
š
convert_and_migrate_from_legacy_backup
(1.97 KB)
š
convert_maildir_to_mdbox
(1.66 KB)
š
convert_mdbox_to_maildir
(1.66 KB)
š
convert_roundcube_mysql2sqlite
(26.12 KB)
š
convert_to_dovecot_delivery
(4.33 KB)
š
convert_whmxfer_to_sqlite
(1.46 KB)
š
copy_user_mail_as_root
(1.25 KB)
š
copy_user_mail_as_user
(1.34 KB)
š
cpaddonsup
(3.25 KB)
š
cpan_config
(2.8 KB)
š
cpan_sandbox
š
cpanel_initial_install
(67.16 KB)
š
cpanelsync
(28.31 KB)
š
cpanelsync_postprocessor
(1.62 KB)
š
cpanpingtest
(965 B)
š
cpbackup
(44.79 KB)
š
cpbackup_transport_file
(5.65 KB)
š
cpdig
(2.09 KB)
š
cpfetch
(1.23 KB)
š
cphulkdblacklist
(433 B)
š
cphulkdwhitelist
(1.3 KB)
š
cpservice
(2.87 KB)
š
cpuser_port_authority
(19.29 KB)
š
cpuser_service_manager
(10.85 KB)
š
createacct
(27.66 MB)
š
custom_backup_destination.pl.sample
(5.06 KB)
š
custom_backup_destination.pl.skeleton
(2.84 KB)
š
dcpumon-wrapper
(850 B)
š
delpop
(6.2 KB)
š
detect_env_capabilities
(508 B)
š
disable_prelink
(2.77 KB)
š
disable_sqloptimizer
(1.49 KB)
š
disablefileprotect
(2.19 KB)
š
distro_changed_hook
(1.16 KB)
š
dnscluster
(4.44 KB)
š
dnsqueuecron
(1.29 KB)
š
dnssec-cluster-keys
(3.75 KB)
š
dovecot_maintenance
(7.66 KB)
š
dovecot_set_defaults.pl
(984 B)
š
dumpcdb
(866 B)
š
dumpinodes
(687 B)
š
dumpquotas
(616 B)
š
dumpstor
(913 B)
š
ea-nginx
(91.16 KB)
š
ea-nginx-userdata
(9.62 KB)
š
ea4_fresh_install
(2.64 KB)
š
edit_cpanelsync_exclude_list
(2.58 KB)
š
editquota
(3.43 KB)
š
elevate-cpanel
(382.56 KB)
š
email_archive_maintenance
(6.15 KB)
š
email_hold_maintenance
(1.46 KB)
š
enable_spf_dkim_globally
(8.83 KB)
š
enable_sqloptimizer
(1.57 KB)
š
enablefileprotect
(2.1 KB)
š
ensure_autoenabled_features
(3.01 MB)
š
ensure_conf_dir_crt_key
(4.82 KB)
š
ensure_cpuser_file_ip
(2.55 KB)
š
ensure_crontab_permissions
(1.08 KB)
š
ensure_dovecot_memory_limits_meet_minimum
(3.13 KB)
š
ensure_hostname_resolves
(2.51 KB)
š
ensure_includes
(601 B)
š
ensure_vhost_includes
(13.53 KB)
š
exim_tidydb
(2.96 KB)
š
eximconfgen
(1.32 KB)
š
eximstats_spam_check
(867 B)
š
expunge_expired_certificates_from_sslstorage
(3.56 KB)
š
expunge_expired_pkgacct_sessions
(852 B)
š
expunge_expired_transfer_sessions
(1.06 KB)
š
fastmail
(5.16 KB)
š
featuremod
(1.92 KB)
š
fetchfile
(422 B)
š
find_and_fix_rpm_issues
(6.99 KB)
š
find_outdated_services
(6.06 KB)
š
find_pids_with_inotify_watch_on_path
(3.66 KB)
š
fix-cpanel-perl
(28.22 KB)
š
fix-listen-on-localhost
(3.52 KB)
š
fix-web-vhost-configuration
(6.15 KB)
š
fix_addon_permissions
(7.69 KB)
š
fix_dns_zone_ttls
(1.34 KB)
š
fix_innodb_tables
(4.05 KB)
š
fix_reseller_acls
(10.7 KB)
š
fixetchosts
(4.32 KB)
š
fixheaders
(572 B)
š
fixmailinglistperms
(1008 B)
š
fixmailman
(2.09 KB)
š
fixnamedviews
(1.22 KB)
š
fixndc
(413 B)
š
fixquotas
(18.39 KB)
š
fixrelayd
(1.74 KB)
š
fixrndc
(16.39 KB)
š
fixtar
(503 B)
š
fixtlsversions
(4.7 KB)
š
fixvaliases
(2 KB)
š
fixwebalizer
(966 B)
š
forcelocaldomain
(895 B)
š
ftpfetch
(2.2 KB)
š
ftpquotacheck
(8.31 KB)
š
ftpsfetch
(2.36 KB)
š
ftpupdate
(261 B)
š
gather_update_log_stats
(4.25 KB)
š
gather_update_logs_setupcrontab
(5.45 KB)
š
gemwrapper
(1.74 KB)
š
gencrt
(6.26 KB)
š
generate_account_suspension_include
(5.7 KB)
š
generate_google_drive_credentials
(1.11 KB)
š
generate_google_drive_oauth_uri
(984 B)
š
generate_maildirsize
(13.94 KB)
š
gensysinfo
(1.16 KB)
š
get_locale_from_legacy_name_info
(1.99 KB)
š
getremotecpmove
(12.67 KB)
š
grpck
(1.19 KB)
š
hackcheck
(3.02 KB)
š
hook
(1.45 KB)
š
httpspamdetect
(2.66 KB)
š
hulk-unban-ip
(3.97 MB)
š
import_exim_data
(8.39 KB)
š
increase_filesystem_limits
(891 B)
š
initacls
(4.99 KB)
š
initfpsuexec
(444 B)
š
initialize_360monitoring
(2.76 KB)
š
initquotas
(19.47 KB)
š
initsuexec
(4.03 KB)
š
install_cpanel_analytics
(1.93 KB)
š
install_dovecot_fts
(1.57 KB)
š
install_plugin
(2.8 KB)
š
installpkg
(575 B)
š
installpostgres
(6.46 KB)
š
installsqlite3
(1.82 KB)
š
ipcheck
(3.93 KB)
š
ipusage
(7.45 KB)
š
isdedicatedip
(602 B)
š
jetbackup-check
(3.69 KB)
š
killdns
(422 B)
š
killdns-dnsadmin
(1.15 KB)
š
killmysqluserprivs
(433 B)
š
killmysqlwildcard
(1.15 KB)
š
killpvhost
(853 B)
š
killspamkeys
(937 B)
š
link_3rdparty_binaries
(1.24 KB)
š
linksubemailtomainacct
(3.17 KB)
š
listcheck
(538 B)
š
listsubdomains
(1.05 KB)
š
litespeed-check
(3.86 KB)
š
locale_export
(5.21 KB)
š
locale_import
(4.35 KB)
š
locale_info
(3.99 KB)
š
logo.dat
(205 B)
š
magicloader
(1.94 KB)
š
maildir_converter
(6.08 KB)
š
mailperm
(16.53 KB)
š
mailscannerupdate
(2.42 KB)
š
mainipcheck
(10 KB)
š
maintenance
(46.22 KB)
š
make_config
(407 B)
š
make_hostname_unowned
(1.16 KB)
š
manage_extra_marketing
(12.41 KB)
š
manage_greylisting
(16.19 KB)
š
manage_mysql_profiles
(16.33 KB)
š
migrate_ccs_to_cpdavd
(47.06 KB)
š
migrate_local_ini_to_php_ini
(7.41 KB)
š
migrate_whmtheme_file_to_userdata
(2.95 KB)
š
mkwwwacctconf
(2.33 KB)
š
modify_accounts
(4.07 KB)
š
modify_featurelist
(9.2 KB)
š
modify_packages
(3.64 KB)
š
modsec_vendor
(15.63 KB)
š
mysqlconnectioncheck
(6.72 KB)
š
mysqlpasswd
(4.14 KB)
š
named.ca
(1.57 KB)
š
named.rfc1912.zones
(774 B)
š
notify_expiring_certificates
(9.37 KB)
š
notify_expiring_certificates_on_linked_nodes
(1.33 KB)
š
oopscheck
(1.12 KB)
š
optimize_eximstats
(3.88 KB)
š
patch_mail_spamassassin_compiledregexps_body_0
(2.39 KB)
š
patchfdsetsize
(2.72 KB)
š
pedquota
(2.26 KB)
š
perform_sqlite_auto_rebuild_db_maintenance
(1.98 KB)
š
perlinstaller
(528 B)
š
perlmods
(1.18 KB)
š
php_fpm_config
(9.73 KB)
š
php_sandbox
š
phpini_tidy
(687 B)
š
pkgacct
(88.03 KB)
š
post_snapshot
(2.09 KB)
š
post_sync_cleanup
(6.09 KB)
š
postupcp
(107 B)
š
primary_virtual_host_migration
(2.44 KB)
š
process_pending_cpanel_php_pear_registration
(2.73 KB)
š
process_site_templates
(7.27 KB)
š
proxydomains
(9.64 KB)
š
ptycheck
(724 B)
š
purge_modsec_log
(1.53 KB)
š
purge_old_config_caches
(2.08 KB)
š
pwck
(708 B)
š
quickdnslookup
(1.13 KB)
š
quickwhoisips
(2.29 KB)
š
quota_auto_fix
(1.41 KB)
š
quotacheck
(22.36 KB)
š
rawchpass
(460 B)
š
rdate
(4.8 KB)
š
realadduser
(5.61 KB)
š
realchpass
(3.26 KB)
š
realperlinstaller
(5.67 KB)
š
realrawchpass
(425 B)
š
rebuild_available_addons_packages_cache
(1.27 KB)
š
rebuild_available_rpm_addons_cache
(1.27 KB)
š
rebuild_bandwidthdb_root_cache
(1.45 KB)
š
rebuild_dbmap
(5.8 KB)
š
rebuild_provider_openid_connect_links_db
(1.01 KB)
š
rebuild_whm_chrome
(2.22 KB)
š
rebuilddnsconfig
(25.5 KB)
š
rebuildhttpdconf
(2.6 KB)
š
rebuildinstalledssldb
(2.85 KB)
š
rebuildippool
(509 B)
š
rebuilduserssldb
(948 B)
š
refresh-dkim-validity-cache
(5.97 KB)
š
regenerate_tokens
(2.18 KB)
š
remote_log_transfer
(11.6 KB)
š
remove_dovecot_index_files
(5.89 KB)
š
removeacct
(26.25 MB)
š
rescan_user_dovecot_fts
(2.98 KB)
š
reset_mail_quotas_to_sane_values
(6.82 KB)
š
resetmailmanurls
(2.03 KB)
š
resetquotas
(4.61 KB)
š
restartsrv
(3.19 KB)
š
restartsrv_apache
(422 B)
š
restartsrv_apache_php_fpm
(10.26 MB)
š
restartsrv_base
(10.26 MB)
š
restartsrv_bind
(10.26 MB)
š
restartsrv_chkservd
(427 B)
š
restartsrv_clamd
(10.26 MB)
š
restartsrv_cpanel_php_fpm
(10.26 MB)
š
restartsrv_cpanellogd
(10.26 MB)
š
restartsrv_cpdavd
(10.26 MB)
š
restartsrv_cpgreylistd
(10.26 MB)
š
restartsrv_cphulkd
(10.26 MB)
š
restartsrv_cpipv6
(10.26 MB)
š
restartsrv_cpsrvd
(10.26 MB)
š
restartsrv_crond
(10.26 MB)
š
restartsrv_dnsadmin
(10.26 MB)
š
restartsrv_dovecot
(10.26 MB)
š
restartsrv_exim
(10.26 MB)
š
restartsrv_eximstats
(504 B)
š
restartsrv_ftpd
(426 B)
š
restartsrv_ftpserver
(911 B)
š
restartsrv_httpd
(10.26 MB)
š
restartsrv_imap
(437 B)
š
restartsrv_inetd
(2.47 KB)
š
restartsrv_ipaliases
(10.26 MB)
š
restartsrv_lmtp
(437 B)
š
restartsrv_mailman
(10.26 MB)
š
restartsrv_mysql
(10.26 MB)
š
restartsrv_named
(579 B)
š
restartsrv_nginx
(10.26 MB)
š
restartsrv_nscd
(10.26 MB)
š
restartsrv_p0f
(10.26 MB)
š
restartsrv_pdns
(10.26 MB)
š
restartsrv_pop3
(437 B)
š
restartsrv_postgres
(427 B)
š
restartsrv_postgresql
(10.26 MB)
š
restartsrv_powerdns
(442 B)
š
restartsrv_proftpd
(10.26 MB)
š
restartsrv_pureftpd
(10.26 MB)
š
restartsrv_queueprocd
(10.26 MB)
š
restartsrv_rsyslog
(10.26 MB)
š
restartsrv_rsyslogd
(437 B)
š
restartsrv_spamd
(10.26 MB)
š
restartsrv_sshd
(10.26 MB)
š
restartsrv_syslogd
(2.4 KB)
š
restartsrv_tailwatchd
(10.26 MB)
š
restartsrv_unknown
(10.26 MB)
š
restartsrv_xinetd
(422 B)
š
restorecpuserfromcache
(1.96 KB)
š
restorepkg
(44.34 MB)
š
rfc1912_zones.tar
(10 KB)
š
rpmup
(5.07 KB)
š
rsync-user-homedir.pl
(5.76 KB)
š
run_if_exists
(512 B)
š
run_plugin_lifecycle
(3.53 KB)
š
runstatsonce
(440 B)
š
runweblogs
(1.02 KB)
š
sa-update_wrapper
(3.34 KB)
š
safetybits.pl
(844 B)
š
secureit
(4.72 KB)
š
securemysql
(4.4 KB)
š
securerailsapps
(3.58 KB)
š
securetmp
(16.76 KB)
š
sendicq
(474 B)
š
servicedomains
(9.64 KB)
š
set_mailman_archive_perms
(1.75 KB)
š
setpostgresconfig
(6.04 KB)
š
setup_greylist_db
(16.19 KB)
š
setup_modsec_db
(1.3 KB)
š
setup_systemd_timer_for_plugins
(3.92 KB)
š
setupftpserver
(10.47 KB)
š
setupmailserver
(9.39 KB)
š
setupnameserver
(12.52 KB)
š
shrink_modsec_ip_database
(12.97 KB)
š
simpleps
(3.05 KB)
š
slurp_exim_mainlog
(5.78 KB)
š
smartcheck
(15.13 KB)
š
smtpmailgidonly
(8.15 KB)
š
snapshot_prep
(5.88 KB)
š
spamassassin_dbm_cleaner
(5.85 KB)
š
spamassassindisable
(3.74 KB)
š
spamboxdisable
(2.27 KB)
š
sshcontrol
(14.38 KB)
š
ssl_crt_status
(3.84 KB)
š
suspendacct
(18.01 KB)
š
suspendmysqlusers
(4.78 KB)
š
swapip
(3.82 KB)
š
sync-mysql-users-from-grants
(1.2 KB)
š
sync_child_accounts
(1.77 KB)
š
sync_contact_emails_to_cpanel_users_files
(1.14 KB)
š
synccpaddonswithsqlhost
(6.59 KB)
š
synctransfers
(1.92 KB)
š
syslog_check
(1.36 KB)
š
sysup
(645 B)
š
test_sa_compiled
(1.07 KB)
š
transfer_account_as_user
(2.34 KB)
š
transfer_accounts_as_root
(4.76 KB)
š
transfer_in_progress
(3.08 KB)
š
transfer_in_progress.pod
(312 B)
š
transfermysqlusers
(9.72 MB)
š
try-later
(7.95 KB)
š
unblockip
(667 B)
š
uninstall_cpanel_analytics
(1.2 KB)
š
uninstall_dovecot_fts
(562 B)
š
uninstall_plugin
(2.84 KB)
š
unlink_service_account
(2.62 KB)
š
unpkgacct
(4.6 KB)
š
unslavenamedconf
(863 B)
š
unsuspendacct
(17.8 KB)
š
unsuspendmysqlusers
(7.1 KB)
š
upcp
(31.97 KB)
š
upcp-running
(2.7 KB)
š
upcp.static
(721.27 KB)
š
update-packages
(5.07 KB)
š
update_apachectl
(480 B)
š
update_db_cache
(430 B)
š
update_dkim_keys
(1.45 KB)
š
update_exim_rejects
(1.21 KB)
š
update_existing_mail_quotas_for_account
(4.78 KB)
š
update_feature_flags
(957 B)
š
update_freebusy_data
(5.25 KB)
š
update_known_proxy_ips
(1002 B)
š
update_local_rpm_versions
(4.56 KB)
š
update_mailman_cache
(8.34 KB)
š
update_mysql_systemd_config
(1.07 KB)
š
update_neighbor_netblocks
(487 B)
š
update_sa_config
(2.14 KB)
š
update_spamassassin_config
(10.73 KB)
š
update_users_jail
(691 B)
š
update_users_vhosts
(801 B)
š
updatedomainips
(605 B)
š
updatenameserverips
(1.66 KB)
š
updatenow
(5.18 KB)
š
updatenow.static
(2.02 MB)
š
updatesigningkey
(1.95 KB)
š
updatessldomains
(1.81 KB)
š
updatesupportauthorizations
(2.49 KB)
š
updateuserdatacache
(2.47 KB)
š
updateuserdomains
(774 B)
š
upgrade_bandwidth_dbs
(2.22 KB)
š
upgrade_subaccount_databases
(2.73 KB)
š
userdata_wildcard_cleanup
(5.74 KB)
š
userdirctl
(5.01 KB)
š
validate_sshkey_passphrase
(1.21 KB)
š
verify_api_spec_files
(757 B)
š
verify_pidfile
(1.96 KB)
š
verify_vhost_includes
(7.34 KB)
š
vps_optimizer
(7.82 KB)
š
vzzo-fixer
(725 B)
š
whmlogin
(2.33 KB)
š
whoowns
(1.13 KB)
š
wwwacct
(27.66 MB)
š
wwwacct2
(88 B)
š
xfer_rcube_schema_migrate.pl
(2.4 KB)
š
xfer_rcube_uid_resolver.pl
(1.8 KB)
š
xferpoint
(3.13 KB)
š
xfertool
(16.23 KB)
š
zonecheck
(91 B)
š
zoneexists
(800 B)
Editing: check_plugin_pkgs
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/check_plugin_pkgs Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited package scripts::check_plugin_pkgs; use cPstrict; use parent qw( Cpanel::HelpfulScript ); use Cpanel::OS (); use Cpanel::Plugins (); =encoding utf-8 =head1 NAME scripts::check_plugin_pkgs =head1 SYNOPSIS check_plugin_pkgs [ --pkg <pkg> --pkg <pkg> | help ] NOTE: The `pkg` argument can be passed 1 or more times =head1 DESCRIPTION This script verifies the integrity of installed plugin packages. If it finds an altered package, the script will replace it with an unaltered version. If the package is not installed, the script will install it. =cut sub _OPTIONS { return qw( pkg=s@ ); } exit( __PACKAGE__->new(@ARGV)->script() // 0 ) unless caller(); sub script ($self) { if ( !Cpanel::OS::supports_plugins_repo() ) { $self->say( "cPanel plugins are not supported for your current distribution: " . Cpanel::OS::display_name() ); return; } $self->ensure_root(); my $pkgs = $self->getopt('pkg') // die "Please specify at least one package to check with --pkg.\n" . $self->help(); my $ok = 1; foreach my $pkg (@$pkgs) { $self->say("* Checking package ā$pkgā"); my $check = eval { $self->check_pkg($pkg); 1 } // 0; my $error = $@; if ($check) { $self->say("Package ā$pkgā is OK."); } else { $self->say( "Issue detected with package ā$pkgā", $error ); } $self->say(''); $ok &= $check; } return !$ok; } sub check_pkg ( $self, $pkg ) { if ( Cpanel::Plugins::is_plugin_installed($pkg) ) { if ( !Cpanel::Plugins::is_pkg_unaltered($pkg) ) { $self->say("Altered files found, attempting to reinstall package ā¦\n"); # Do not use reinstall_plugins here since we need this to work for ubuntu too # and reinstall_plugins is not implemented on ubuntu Cpanel::Plugins::uninstall_and_install_plugins( [$pkg], [$pkg] ); } } else { $self->say("Package '$pkg' is not installed, attempting to install it ā¦\n"); Cpanel::Plugins::install_plugins($pkg); } return; } 1;
Upload File
Create Folder