├── csf ├── ui │ ├── ui.ban │ ├── ui.allow │ ├── images │ │ ├── loader.gif │ │ ├── csf_small.png │ │ ├── csf-loader.gif │ │ ├── chosen-sprite.png │ │ ├── chosen-sprite@2x.png │ │ ├── bootstrap │ │ │ └── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── LICENSE.txt │ ├── server.crt │ └── server.key ├── apache.main.txt ├── litespeed.main.txt ├── version.txt ├── csfcron.sh ├── cyberpanel │ └── configservercsf │ │ ├── config │ │ ├── migrations │ │ └── __init__.py │ │ ├── __init__.py │ │ ├── models.py │ │ ├── tests.py │ │ ├── admin.py │ │ ├── urls.py │ │ ├── apps.py │ │ ├── meta.xml │ │ ├── signals.py │ │ ├── templates │ │ └── configservercsf │ │ │ ├── index.html │ │ │ └── menu.html │ │ └── views.py ├── downloadservers ├── csf.div ├── lfdcron.sh ├── csf │ ├── loader.gif │ ├── csf-loader.gif │ ├── csf_small.png │ ├── chosen-sprite.png │ ├── chosen-sprite@2x.png │ ├── bootstrap │ │ └── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ └── LICENSE.txt ├── webmin │ └── csf │ │ ├── module.info │ │ └── images │ │ ├── loader.gif │ │ ├── csf-loader.gif │ │ ├── csf_small.png │ │ ├── chosen-sprite.png │ │ ├── chosen-sprite@2x.png │ │ ├── bootstrap │ │ └── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── LICENSE.txt ├── da │ ├── hooks │ │ ├── admin_txt.html │ │ ├── reseller_txt.html │ │ ├── admin_img.html │ │ └── reseller_img.html │ ├── images │ │ ├── loader.gif │ │ ├── csf_small.png │ │ ├── csf-loader.gif │ │ ├── chosen-sprite.png │ │ ├── chosen-sprite@2x.png │ │ ├── bootstrap │ │ │ └── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── LICENSE.txt │ ├── scripts │ │ ├── update.sh │ │ ├── install.sh │ │ └── uninstall.sh │ ├── plugin.conf │ ├── admin │ │ ├── index.raw │ │ └── index.html │ └── reseller │ │ ├── index.raw │ │ └── index.html ├── lfdcron.directadmin.sh ├── consolealert.txt ├── interworx │ ├── images │ │ ├── loader.gif │ │ ├── csf_small.png │ │ ├── csf-loader.gif │ │ ├── chosen-sprite.png │ │ ├── chosen-sprite@2x.png │ │ ├── bootstrap │ │ │ └── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── LICENSE.txt │ ├── plugin.ini │ ├── templates │ │ ├── admin.tpl │ │ └── reseller.tpl │ └── Ctrl │ │ └── Nodeworx │ │ └── Configservercsf.php ├── logalert.txt ├── queuealert.txt ├── logfloodalert.txt ├── exploitalert.txt ├── portknocking.txt ├── accounttracking.txt ├── recaptcha.txt ├── uialert.txt ├── watchalert.txt ├── forkbombalert.txt ├── filealert.txt ├── uidscan.txt ├── cpanelalert.txt ├── webminalert.txt ├── portscan.txt ├── syslogalert.txt ├── lfd.logrotate ├── reselleralert.txt ├── messenger │ ├── index.text │ └── en.php ├── netblock.txt ├── sualert.txt ├── sudoalert.txt ├── alert.txt ├── usertracking.txt ├── sshalert.txt ├── connectiontracking.txt ├── permblock.txt ├── relayalert.txt ├── modsecipdbalert.txt ├── lfd.service ├── scriptalert.txt ├── resalert.txt ├── csf.service ├── litespeed.http.txt ├── tracking.txt ├── perf.sh ├── cwp │ ├── csfofficial.php │ ├── ajax_csfframe.php │ └── configserver.php ├── integrityalert.txt ├── remove_apf_bfd.sh ├── processtracking.txt ├── cpanel │ ├── csf.tmpl │ ├── upgrade.sh │ ├── csf.conf │ └── Driver │ │ ├── ConfigServercsf │ │ └── META.pm │ │ └── ConfigServercsf.pm ├── vestacp │ ├── frame.php │ └── index.php ├── profiles │ ├── block_all_perm.conf │ ├── block_all_temp.conf │ ├── disable_alerts.conf │ ├── protection_medium.conf │ ├── protection_low.conf │ └── protection_high.conf ├── apache.http.txt ├── csf.suignore ├── csf.signore ├── csf.mignore ├── csf.uidignore ├── apf_stub.pl ├── csf.sips ├── csf.cwp.ignore ├── apache.https.txt ├── csf.generic.ignore ├── csf.interworx.ignore ├── csf.vesta.ignore ├── csf.cyberpanel.ignore ├── csf.directadmin.ignore ├── csf.ignore ├── litespeed.https.txt ├── csf.dirwatch ├── csf.smtpauth ├── x-arf.txt ├── loadalert.txt ├── upgrade.txt ├── csf.rblconf ├── csf.cwp.allow ├── csf.deny ├── csf.generic.allow ├── csf.vesta.allow ├── csf.cyberpanel.allow ├── csf.directadmin.allow ├── csf.interworx.allow ├── csf.allow ├── csf.dyndns ├── csf.logfiles ├── cpanel.ignore ├── csf.fignore ├── cpanel.comodo.ignore ├── uninstall.generic.sh ├── restricted.txt ├── install.sh ├── pt_deleted_action.pl ├── csf.redirect ├── uninstall.directadmin.sh ├── uninstall.vesta.sh ├── csf.rbls ├── uninstall.cwp.sh ├── uninstall.interworx.sh └── uninstall.cyberpanel.sh ├── cmc ├── cmcversion.txt ├── downloadservers ├── cmc │ ├── cmc.png │ ├── minus.png │ ├── plus.png │ └── bootstrap │ │ └── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 ├── cmc.tmpl ├── cmc.conf ├── upgrade.sh ├── INSTALL.txt └── uninstall.sh ├── cmm ├── cmmversion.txt ├── downloadservers ├── cmm │ ├── cmm.png │ └── bootstrap │ │ └── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 ├── upgrade.sh ├── cmm.tmpl ├── INSTALL.txt ├── cmm.conf.old ├── cmm.conf └── uninstall.sh ├── cmq ├── cmqversion.txt ├── downloadservers ├── cmq │ ├── cmq.png │ ├── minus.png │ ├── plus.png │ ├── bootstrap │ │ └── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ └── configserver.css ├── da │ ├── hooks │ │ ├── admin_txt.html │ │ └── admin_img.html │ ├── scripts │ │ ├── update.sh │ │ ├── install.sh │ │ └── uninstall.sh │ ├── plugin.conf │ └── admin │ │ ├── index.raw │ │ └── index.html ├── INSTALL.txt ├── upgrade.sh ├── cpanel │ ├── cmq.tmpl │ └── cmq.conf ├── install.sh ├── cmq.c └── uninstall.sh ├── cse ├── cseversion.txt ├── downloadservers ├── cse │ ├── cse.png │ └── bootstrap │ │ └── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 ├── upgrade.sh ├── cse.tmpl ├── INSTALL.txt ├── cse.conf.old ├── cse.conf └── uninstall.sh ├── cmc.tgz ├── cmm.tgz ├── cmq.tgz ├── cse.tgz ├── csf.tgz ├── README.md ├── uninstallers ├── osm │ ├── uninstall.directadmin.sh │ └── uninstall.cpanel.sh ├── README.md ├── cse │ └── cse_uninstall.sh ├── cmm │ └── cmm_uninstall.sh ├── cmc │ └── cmc_uninstall.sh ├── csf │ ├── uninstall.generic.sh │ ├── uninstall.directadmin.sh │ ├── uninstall.vesta.sh │ ├── uninstall.cwp.sh │ └── uninstall.interworx.sh ├── cxs │ ├── uninstall.generic.sh │ ├── uninstall.directadmin.sh │ ├── uninstall.plesk.sh │ ├── uninstall.vestacp.sh │ ├── uninstall.interworx.sh │ ├── uninstall.cpanel.sh │ └── uninstall.cwp.sh ├── MailScanner │ └── msuninstall.sh └── cmq │ └── cmq_uninstall.sh └── COPYING.md /csf/ui/ui.ban: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /csf/ui/ui.allow: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmc/cmcversion.txt: -------------------------------------------------------------------------------- 1 | 4.00 -------------------------------------------------------------------------------- /cmm/cmmversion.txt: -------------------------------------------------------------------------------- 1 | 3.00 -------------------------------------------------------------------------------- /cmq/cmqversion.txt: -------------------------------------------------------------------------------- 1 | 4.00 -------------------------------------------------------------------------------- /cse/cseversion.txt: -------------------------------------------------------------------------------- 1 | 3.00 -------------------------------------------------------------------------------- /csf/apache.main.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /csf/litespeed.main.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /csf/version.txt: -------------------------------------------------------------------------------- 1 | 15.00 -------------------------------------------------------------------------------- /csf/csfcron.sh: -------------------------------------------------------------------------------- 1 | SHELL=/bin/sh 2 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/config: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmc.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc.tgz -------------------------------------------------------------------------------- /cmm.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmm.tgz -------------------------------------------------------------------------------- /cmq.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq.tgz -------------------------------------------------------------------------------- /cse.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cse.tgz -------------------------------------------------------------------------------- /csf.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf.tgz -------------------------------------------------------------------------------- /cmc/downloadservers: -------------------------------------------------------------------------------- 1 | #download.configserver.com 2 | #download2.configserver.com 3 | -------------------------------------------------------------------------------- /cmm/downloadservers: -------------------------------------------------------------------------------- 1 | #download.configserver.com 2 | #download2.configserver.com 3 | -------------------------------------------------------------------------------- /cmq/downloadservers: -------------------------------------------------------------------------------- 1 | #download.configserver.com 2 | #download2.configserver.com 3 | -------------------------------------------------------------------------------- /cse/downloadservers: -------------------------------------------------------------------------------- 1 | #download.configserver.com 2 | #download2.configserver.com 3 | -------------------------------------------------------------------------------- /csf/downloadservers: -------------------------------------------------------------------------------- 1 | #download.configserver.com 2 | #download2.configserver.com 3 | -------------------------------------------------------------------------------- /csf/csf.div: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf.div -------------------------------------------------------------------------------- /cmc/cmc/cmc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc/cmc/cmc.png -------------------------------------------------------------------------------- /cmc/cmc/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc/cmc/minus.png -------------------------------------------------------------------------------- /cmc/cmc/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc/cmc/plus.png -------------------------------------------------------------------------------- /cmm/cmm/cmm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmm/cmm/cmm.png -------------------------------------------------------------------------------- /cmq/cmq/cmq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq/cmq/cmq.png -------------------------------------------------------------------------------- /cmq/cmq/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq/cmq/minus.png -------------------------------------------------------------------------------- /cmq/cmq/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq/cmq/plus.png -------------------------------------------------------------------------------- /cse/cse/cse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cse/cse/cse.png -------------------------------------------------------------------------------- /csf/lfdcron.sh: -------------------------------------------------------------------------------- 1 | SHELL=/bin/sh 2 | 0 0 * * * root /usr/sbin/csf --lfd restart > /dev/null 2>&1 3 | -------------------------------------------------------------------------------- /cmq/da/hooks/admin_txt.html: -------------------------------------------------------------------------------- 1 | ConfigServer Mail Queues -------------------------------------------------------------------------------- /csf/csf/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/loader.gif -------------------------------------------------------------------------------- /csf/webmin/csf/module.info: -------------------------------------------------------------------------------- 1 | name=csf 2 | desc=ConfigServer Security & Firewall 3 | category=system 4 | -------------------------------------------------------------------------------- /csf/csf/csf-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/csf-loader.gif -------------------------------------------------------------------------------- /csf/csf/csf_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/csf_small.png -------------------------------------------------------------------------------- /csf/da/hooks/admin_txt.html: -------------------------------------------------------------------------------- 1 | ConfigServer Security & Firewall -------------------------------------------------------------------------------- /csf/lfdcron.directadmin.sh: -------------------------------------------------------------------------------- 1 | SHELL=/bin/sh 2 | 0 0 * * * root /usr/sbin/csf --lfd restart > /dev/null 2>&1 3 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/__init__.py: -------------------------------------------------------------------------------- 1 | #default_app_config = 'configservercsf.apps.configservercsfConfig' 2 | -------------------------------------------------------------------------------- /csf/da/hooks/reseller_txt.html: -------------------------------------------------------------------------------- 1 | ConfigServer Security & Firewall -------------------------------------------------------------------------------- /csf/da/images/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/loader.gif -------------------------------------------------------------------------------- /csf/ui/images/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/loader.gif -------------------------------------------------------------------------------- /csf/consolealert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: console login alert 4 | 5 | [line] 6 | -------------------------------------------------------------------------------- /csf/csf/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/chosen-sprite.png -------------------------------------------------------------------------------- /csf/da/images/csf_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/csf_small.png -------------------------------------------------------------------------------- /csf/ui/images/csf_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/csf_small.png -------------------------------------------------------------------------------- /csf/csf/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/chosen-sprite@2x.png -------------------------------------------------------------------------------- /csf/da/images/csf-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/csf-loader.gif -------------------------------------------------------------------------------- /csf/ui/images/csf-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/csf-loader.gif -------------------------------------------------------------------------------- /csf/da/images/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/chosen-sprite.png -------------------------------------------------------------------------------- /csf/interworx/images/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/loader.gif -------------------------------------------------------------------------------- /csf/ui/images/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/chosen-sprite.png -------------------------------------------------------------------------------- /csf/webmin/csf/images/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/loader.gif -------------------------------------------------------------------------------- /cmq/da/scripts/update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "This plugin is updated by updating csf from the root shell" 4 | 5 | exit 0; 6 | -------------------------------------------------------------------------------- /csf/da/images/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/chosen-sprite@2x.png -------------------------------------------------------------------------------- /csf/da/scripts/update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "This plugin is updated by updating csf from the root shell" 4 | 5 | exit 0; 6 | -------------------------------------------------------------------------------- /csf/interworx/images/csf_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/csf_small.png -------------------------------------------------------------------------------- /csf/ui/images/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/chosen-sprite@2x.png -------------------------------------------------------------------------------- /cmq/da/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "This plugin is installed by installing csf from the root shell" 4 | 5 | exit 0; 6 | -------------------------------------------------------------------------------- /csf/da/scripts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "This plugin is installed by installing csf from the root shell" 4 | 5 | exit 0; 6 | -------------------------------------------------------------------------------- /csf/interworx/images/csf-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/csf-loader.gif -------------------------------------------------------------------------------- /csf/webmin/csf/images/csf-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/csf-loader.gif -------------------------------------------------------------------------------- /csf/webmin/csf/images/csf_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/csf_small.png -------------------------------------------------------------------------------- /cmq/da/scripts/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "This plugin is uninstalled by uninstalling csf from the root shell" 4 | 5 | exit 0; 6 | -------------------------------------------------------------------------------- /csf/da/scripts/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "This plugin is uninstalled by uninstalling csf from the root shell" 4 | 5 | exit 0; 6 | -------------------------------------------------------------------------------- /csf/interworx/images/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/chosen-sprite.png -------------------------------------------------------------------------------- /csf/logalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Log Scanner Report for [hour], (lines:[lines]) 4 | 5 | [text] 6 | -------------------------------------------------------------------------------- /csf/queuealert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Email queue size alert 4 | 5 | Time: [time] 6 | 7 | [text] 8 | -------------------------------------------------------------------------------- /csf/webmin/csf/images/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/chosen-sprite.png -------------------------------------------------------------------------------- /csf/interworx/images/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/chosen-sprite@2x.png -------------------------------------------------------------------------------- /csf/logfloodalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Log file flooding 4 | 5 | Time: [time] 6 | Alert: [text] 7 | -------------------------------------------------------------------------------- /csf/webmin/csf/images/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/chosen-sprite@2x.png -------------------------------------------------------------------------------- /csf/da/plugin.conf: -------------------------------------------------------------------------------- 1 | active=yes 2 | author=WTTW 3 | id=csf 4 | installed=yes 5 | name=ConfigServer Firewall 6 | update_url= 7 | version=1.0 8 | version_url= 9 | -------------------------------------------------------------------------------- /cmq/da/plugin.conf: -------------------------------------------------------------------------------- 1 | active=yes 2 | author=WTTW 3 | id=cmq 4 | installed=yes 5 | name=ConfigServer Mail Queues 6 | update_url= 7 | version=1.0 8 | version_url= 9 | -------------------------------------------------------------------------------- /cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /cse/cse/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cse/cse/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /cse/cse/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cse/cse/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /cse/cse/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cse/cse/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /csf/csf/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /csf/csf/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /csf/csf/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /csf/exploitalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: System Exploit checking detected a possible compromise 4 | 5 | Time: [time] 6 | 7 | [text] 8 | -------------------------------------------------------------------------------- /csf/portknocking.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Port Knocking port opened by [ip] 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Port: [port] 8 | -------------------------------------------------------------------------------- /cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmc/cmc/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmm/cmm/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cmq/cmq/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /cse/cse/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/cse/cse/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /csf/csf/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/csf/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/models.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models 5 | 6 | # Create your models here. 7 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/tests.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.test import TestCase 5 | 6 | # Create your tests here. 7 | -------------------------------------------------------------------------------- /csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /csf/accounttracking.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Account modification alert 4 | 5 | Time: [time] 6 | 7 | Reported Modifications: 8 | 9 | [report] 10 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/admin.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.contrib import admin 5 | 6 | # Register your models here. 7 | -------------------------------------------------------------------------------- /csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/da/images/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /csf/recaptcha.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: recaptcha [ip] 4 | 5 | Time: [time] 6 | IP: [ip] 7 | 8 | Recaptcha unblock of [ip] on [host] requested 9 | -------------------------------------------------------------------------------- /csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/ui/images/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /csf/uialert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: UI Alert [ip] [alert] 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Alert: [alert] 8 | 9 | [text] 10 | -------------------------------------------------------------------------------- /cmq/da/hooks/admin_img.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | ConfigServer Mail Queues 4 |
5 | -------------------------------------------------------------------------------- /csf/watchalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: [file] has changed 4 | 5 | Time: [time] 6 | File: [file] has changed 7 | 8 | Output: 9 | 10 | [output] 11 | -------------------------------------------------------------------------------- /cmq/da/admin/index.raw: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | $| = 1; 4 | 5 | print "HTTP/1.1 200 OK\n"; 6 | print "Content-type: text/html\r\n\r\n"; 7 | system ("/usr/local/directadmin/plugins/cmq/exec/cmq"); 8 | -------------------------------------------------------------------------------- /csf/da/admin/index.raw: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | $| = 1; 4 | 5 | print "HTTP/1.1 200 OK\n"; 6 | print "Content-type: text/html\r\n\r\n"; 7 | system ("/usr/local/directadmin/plugins/csf/exec/csf"); 8 | -------------------------------------------------------------------------------- /csf/da/reseller/index.raw: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | $| = 1; 4 | 5 | print "HTTP/1.1 200 OK\n"; 6 | print "Content-type: text/html\r\n\r\n"; 7 | system ("/usr/local/directadmin/plugins/csf/exec/csf"); 8 | -------------------------------------------------------------------------------- /csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /csf/forkbombalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Fork Bomb detected and killed 4 | 5 | Time: [time] 6 | Trigger: [level] 7 | 8 | Processes: 9 | 10 | [text] 11 | -------------------------------------------------------------------------------- /csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/interworx/images/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mxroute/configserver-scripts/main/csf/webmin/csf/images/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /csf/da/hooks/admin_img.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | ConfigServer Security & Firewall 4 |
5 | -------------------------------------------------------------------------------- /csf/filealert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Suspicious File Alert 4 | 5 | Time: [time] 6 | File: [file] 7 | Reason: [reason] 8 | Owner: [owner] 9 | Action: [action] 10 | -------------------------------------------------------------------------------- /csf/uidscan.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: UID [uid] Tracking Hit 4 | 5 | Time: [time] 6 | UID: [uid] 7 | Hits: [count] 8 | 9 | Sample of port hits: 10 | [ports] 11 | -------------------------------------------------------------------------------- /csf/da/hooks/reseller_img.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | ConfigServer Security & Firewall 4 |
5 | -------------------------------------------------------------------------------- /csf/cpanelalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: WHM/cPanel [user] access alert from [ip] 4 | 5 | Time: [time] 6 | IP: [ip] 7 | User: [user] 8 | 9 | Log line: 10 | 11 | [text] 12 | -------------------------------------------------------------------------------- /csf/webminalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Webmin login alert for user [account] from [ip] 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Account: [account] 8 | 9 | Log line: 10 | 11 | [text] 12 | -------------------------------------------------------------------------------- /csf/portscan.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: [ip] blocked for port scanning 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Hits: [count] 8 | Blocked: [temp] 9 | 10 | Sample of block hits: 11 | [blocks] 12 | -------------------------------------------------------------------------------- /csf/syslogalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: SYSLOG Check Failed 4 | 5 | Time: [time] 6 | Error: Failed to detect code [[code]] in SYSLOG_LOG [[log]] 7 | 8 | SYSLOG may not be running correctly on [hostname] 9 | -------------------------------------------------------------------------------- /csf/lfd.logrotate: -------------------------------------------------------------------------------- 1 | /var/log/lfd.log { 2 | weekly 3 | rotate 1 4 | compress 5 | missingok 6 | } 7 | /var/log/lfd_messenger.log { 8 | weekly 9 | rotate 1 10 | compress 11 | missingok 12 | } 13 | -------------------------------------------------------------------------------- /csf/reselleralert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: csf UI on [hostname]: reseller [reseller] - [action] 4 | 5 | Time: [time] 6 | Reseller: [reseller] 7 | Reseller IP: [rip] 8 | Action: [action] [ip] 9 | 10 | [text] 11 | -------------------------------------------------------------------------------- /csf/messenger/index.text: -------------------------------------------------------------------------------- 1 | The firewall on this server is blocking your connection. 2 | You need to contact the server owner or hosting provider for further information. 3 | Your blocked IP address is: [IPADDRESS] 4 | This server's hostname is: [HOSTNAME] 5 | -------------------------------------------------------------------------------- /csf/netblock.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Network class [class] [block] has been blocked 4 | 5 | Time: [time] 6 | Block: [block] 7 | Hits: [count] 8 | 9 | IP addresses that triggered the block 10 | [ips] 11 | -------------------------------------------------------------------------------- /csf/sualert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: SUDO login alert - [status] from [from] to [to] 4 | 5 | Time: [time] 6 | From: [from] 7 | To: [to] 8 | Status: [status] 9 | 10 | Log line: 11 | 12 | [text] 13 | -------------------------------------------------------------------------------- /csf/sudoalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: SUDO login alert - [status] from [from] to [to] 4 | 5 | Time: [time] 6 | From: [from] 7 | To: [to] 8 | Status: [status] 9 | 10 | Log line: 11 | 12 | [text] 13 | -------------------------------------------------------------------------------- /csf/alert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: blocked [ip] 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Failures: [ipcount] 8 | Interval: [iptick] seconds 9 | Blocked: [block] 10 | 11 | Log entries: 12 | 13 | [text] 14 | -------------------------------------------------------------------------------- /csf/usertracking.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Excessive processes running under user [user] 4 | 5 | Time: [time] 6 | Account: [user] 7 | Process Count: [count] 8 | 9 | Process Information: 10 | 11 | [text] 12 | -------------------------------------------------------------------------------- /csf/sshalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: SSH login alert for user [account] from [ip] 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Account: [account] 8 | Method: [method] authentication 9 | 10 | Log line: 11 | 12 | [text] 13 | -------------------------------------------------------------------------------- /csf/connectiontracking.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: [ip] blocked with too many connections 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Connections: [ipcount] 8 | Blocked: [temp] 9 | 10 | Connections: 11 | [iptext] 12 | -------------------------------------------------------------------------------- /csf/permblock.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: [ip] blocked permanently 4 | 5 | Time: [time] 6 | IP: [ip] 7 | Temporary Blocks: [count] 8 | 9 | Temporary blocks that triggered the permanent block: 10 | [blocks] 11 | -------------------------------------------------------------------------------- /csf/relayalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: [check] Alert for [ip] 4 | 5 | Time: [time] 6 | Type: [type] - [ip] 7 | Count: [count] emails relayed 8 | Blocked: [block] 9 | 10 | Sample of the first 10 emails: 11 | 12 | [emails] 13 | -------------------------------------------------------------------------------- /csf/modsecipdbalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: ModSecurity persistent IP database size alert 4 | 5 | Time: [time] 6 | 7 | [text] 8 | 9 | This requires further investigation otherwise it will start to affect server performance. 10 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls import url 2 | from . import views 3 | 4 | urlpatterns = [ 5 | 6 | url(r'^$', views.configservercsf, name='configservercsf'), 7 | url(r'^iframe/$', views.configservercsfiframe, name='configservercsfiframe'), 8 | ] 9 | -------------------------------------------------------------------------------- /csf/lfd.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=ConfigServer Firewall & Security - lfd 3 | After=network.target csf.service 4 | 5 | [Service] 6 | LimitNOFILE=4096 7 | ExecStart=/usr/sbin/lfd 8 | Type=forking 9 | PIDFile=/run/lfd.pid 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /csf/scriptalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Script Alert for [path] 4 | 5 | Time: [time] 6 | Path: [path] 7 | Count: [count] emails sent 8 | 9 | Sample of the first 10 emails: 10 | 11 | [emails] 12 | 13 | Possible Scripts: 14 | 15 | [scripts] 16 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/apps.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.apps import AppConfig 5 | 6 | class configservercsfConfig(AppConfig): 7 | name = 'configservercsf' 8 | 9 | def ready(self): 10 | import signals 11 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/meta.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ConfigServer Security and Firewall 4 | plugin 5 | ConfigServer Security and Firewall 6 | 1.0 7 | 8 | -------------------------------------------------------------------------------- /csf/resalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Excessive resource usage: [user] ([pid]) 4 | 5 | Time: [time] 6 | Account: [user] 7 | Resource: [resource] 8 | Exceeded: [level] 9 | Executable: [exe] 10 | Command Line: [cmd] 11 | PID: [pid] 12 | Killed: [kill] 13 | -------------------------------------------------------------------------------- /csf/csf.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=ConfigServer Firewall & Security - csf 3 | After=network.target 4 | Before=lfd.service 5 | 6 | [Service] 7 | ExecStart=/usr/sbin/csf --initup 8 | ExecStop=/usr/sbin/csf --initdown ; /usr/sbin/csf --stop 9 | RemainAfterExit=yes 10 | Type=oneshot 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /csf/csf/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Fugue Icons 2 | 3 | plus.png 4 | minus.png 5 | perm.png 6 | ip.png 7 | delete.png 8 | 9 | (C) 2013 Yusuke Kamiyamane. All rights reserved. 10 | These icons are licensed under a Creative Commons 11 | Attribution 3.0 License. 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /csf/da/images/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Fugue Icons 2 | 3 | plus.png 4 | minus.png 5 | perm.png 6 | ip.png 7 | delete.png 8 | 9 | (C) 2013 Yusuke Kamiyamane. All rights reserved. 10 | These icons are licensed under a Creative Commons 11 | Attribution 3.0 License. 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /csf/litespeed.http.txt: -------------------------------------------------------------------------------- 1 | listener csf { 2 | map csf * 3 | address *:[PORT] 4 | secure 0 5 | } 6 | 7 | # Virtualhost start - do not remove this line 8 | virtualHost csf { 9 | vhRoot [DIRECTORY] 10 | allowSymbolLink 1 11 | enableScript 1 12 | restrained 1 13 | docRoot [DOCUMENTROOT] 14 | } 15 | # Virtualhost end - do not remove this line 16 | -------------------------------------------------------------------------------- /csf/ui/images/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Fugue Icons 2 | 3 | plus.png 4 | minus.png 5 | perm.png 6 | ip.png 7 | delete.png 8 | 9 | (C) 2013 Yusuke Kamiyamane. All rights reserved. 10 | These icons are licensed under a Creative Commons 11 | Attribution 3.0 License. 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /csf/interworx/images/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Fugue Icons 2 | 3 | plus.png 4 | minus.png 5 | perm.png 6 | ip.png 7 | delete.png 8 | 9 | (C) 2013 Yusuke Kamiyamane. All rights reserved. 10 | These icons are licensed under a Creative Commons 11 | Attribution 3.0 License. 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /csf/webmin/csf/images/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Fugue Icons 2 | 3 | plus.png 4 | minus.png 5 | perm.png 6 | ip.png 7 | delete.png 8 | 9 | (C) 2013 Yusuke Kamiyamane. All rights reserved. 10 | These icons are licensed under a Creative Commons 11 | Attribution 3.0 License. 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /cmq/INSTALL.txt: -------------------------------------------------------------------------------- 1 | # To install or upgrade cmq simply do the following from the root shell via SSH: 2 | 3 | cd /usr/src 4 | rm -fv /usr/src/cmq.tgz 5 | wget http://download.configserver.com/cmq.tgz 6 | tar -xzf cmq.tgz 7 | cd cmq 8 | sh install.sh 9 | rm -Rfv /usr/src/cmq* 10 | 11 | # If you want to uninstall, simply: 12 | 13 | cd /etc/cmq 14 | sh uninstall.sh 15 | -------------------------------------------------------------------------------- /csf/tracking.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: [account] blocked for [app] access 4 | 5 | Time: [time] 6 | Account: [account] 7 | Application: [app] 8 | IP: [ip] 9 | Logins: [logins] 10 | Interval: [timeout] 11 | Allowable: [rate] logins per hour in 3600 second interval 12 | Flushed in: [flush] seconds 13 | -------------------------------------------------------------------------------- /csf/perf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cd /etc/csf 3 | rm -Rf /home/webumake/public_html/nytpro* 4 | /usr/local/cpanel/3rdparty/bin/perl -d:NYTProf /etc/csf/csf.pl -r 5 | /usr/local/cpanel/3rdparty/perl/522/bin/nytprofhtml --open 6 | /bin/cp -avf nytprof /home/webumake/public_html/. 7 | chmod -R 755 /home/webumake/public_html/nytprof 8 | 9 | # browse to http://www.webumake.net/nytprof/etc-csf-csf-pl-1-line.html 10 | -------------------------------------------------------------------------------- /csf/interworx/plugin.ini: -------------------------------------------------------------------------------- 1 | [plugin] 2 | name="ConfigServer Security & Firewall" 3 | description="ConfigServer Security & Firewall is an advanced iptables firewall and login failure detection application. Note: Disabling this plugin does NOT disable csf." 4 | details="This plugin adds a ConfigServer Services Parent menu and a Security & Firewall item to NodeWorx. Note: Disabling this plugin does NOT disable csf." 5 | version="1.0" 6 | -------------------------------------------------------------------------------- /csf/cwp/csfofficial.php: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /csf/integrityalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: System Integrity checking detected a modified system file 4 | 5 | Time: [time] 6 | 7 | The following list of files have FAILED the md5sum comparison test. This means that the file has been changed in some way. This could be a result of an OS update or application upgrade. If the change is unexpected it should be investigated: 8 | 9 | [text] 10 | -------------------------------------------------------------------------------- /csf/interworx/templates/admin.tpl: -------------------------------------------------------------------------------- 1 | 2 | {literal} 3 | 10 | {/literal} 11 | -------------------------------------------------------------------------------- /csf/interworx/templates/reseller.tpl: -------------------------------------------------------------------------------- 1 | 2 | {literal} 3 | 10 | {/literal} 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Way to the Web Limited Scripts 2 | 3 | ### All files within this repository are subject to the [GPL license](LICENSE.txt) as outlined in [COPYING.md](COPYING.md) 4 | 5 | These are the final copies of the scripts. 6 | 7 | There is no intention to update any of these files, so any PR's or other contact will not receive a response. 8 | 9 | For uninstallation of any of our scripts, go to the [uninstallers](uninstallers) directory. 10 | 11 | 12 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/signals.py: -------------------------------------------------------------------------------- 1 | from django.dispatch import receiver 2 | from django.shortcuts import redirect 3 | from firewall.signals import preFirewallHome, preCSF 4 | 5 | @receiver(preFirewallHome) 6 | def csfFirewallHome(sender, **kwargs): 7 | request = kwargs['request'] 8 | return redirect('/configservercsf/') 9 | 10 | @receiver(preCSF) 11 | def csfCSF(sender, **kwargs): 12 | request = kwargs['request'] 13 | return redirect('/configservercsf/') 14 | -------------------------------------------------------------------------------- /csf/remove_apf_bfd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Removing apf and/or bfd..." 3 | echo 4 | 5 | apf -f 6 | rm -fv /etc/cron.daily/fw 7 | rm -fv /etc/cron.daily/apf 8 | rm -fv /etc/cron.d/refresh.apf 9 | rm -fv /etc/logrotate.d/apf 10 | rm -fv /var/log/apf* 11 | /sbin/chkconfig apf off 12 | /sbin/chkconfig apf --del 13 | rm -fv /etc/init.d/apf 14 | rm -Rfv /etc/apf 15 | 16 | rm -fv /etc/cron.d/bfd 17 | rm -fv /etc/logrotate.d/bfd 18 | rm -fv /var/log/bfd* 19 | rm -Rfv /usr/local/bfd 20 | 21 | echo 22 | echo "...Done" 23 | -------------------------------------------------------------------------------- /cmm/upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e "/usr/local/cpanel/bin/register_appconfig" ]; then 4 | if [ -e "/usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi" ]; then 5 | /usr/local/cpanel/bin/register_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm/cmm.conf 6 | 7 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi 8 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/cmmversion.txt 9 | /bin/rm -Rf /usr/local/cpanel/whostmgr/docroot/cgi/cmm 10 | fi 11 | fi 12 | -------------------------------------------------------------------------------- /cmq/upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e "/usr/local/cpanel/bin/register_appconfig" ]; then 4 | if [ -e "/usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi" ]; then 5 | /usr/local/cpanel/bin/register_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmq/cmq.conf 6 | 7 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi 8 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt 9 | /bin/rm -Rf /usr/local/cpanel/whostmgr/docroot/cgi/cmq 10 | fi 11 | fi 12 | -------------------------------------------------------------------------------- /cse/upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e "/usr/local/cpanel/bin/register_appconfig" ]; then 4 | if [ -e "/usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi" ]; then 5 | /usr/local/cpanel/bin/register_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse/cse.conf 6 | 7 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi 8 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/cseversion.txt 9 | /bin/rm -Rf /usr/local/cpanel/whostmgr/docroot/cgi/cse 10 | fi 11 | fi 12 | -------------------------------------------------------------------------------- /csf/cwp/ajax_csfframe.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /csf/processtracking.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: Suspicious process running under user [user] 4 | 5 | Time: [time] 6 | PID: [pid] 7 | Account: [user] 8 | Uptime: [uptime] seconds 9 | 10 | 11 | Executable: 12 | 13 | [exe] 14 | 15 | 16 | Command Line (often faked in exploits): 17 | 18 | [cmdline] 19 | 20 | 21 | Network connections by the process (if any): 22 | 23 | [sockets] 24 | 25 | Files open by the process (if any): 26 | 27 | [files] 28 | 29 | Memory maps by the process (if any): 30 | 31 | [maps] 32 | -------------------------------------------------------------------------------- /cse/cse.tmpl: -------------------------------------------------------------------------------- 1 | [% 2 | USE Whostmgr; 3 | USE JSON; 4 | 5 | WRAPPER 'master_templates/master.tmpl' 6 | header = 'ConfigServer Explorer' 7 | skipsupport = 1 8 | skipheader = 1 9 | hide_license_warnings = 1 10 | theme='bootstrap' 11 | breadcrumbdata = { 12 | previous = [ 13 | { 14 | name = "Home", 15 | url = "/scripts/command?PFILE=main", 16 | }, 17 | { 18 | name = "Plugins", 19 | url = "/scripts/command?PFILE=Plugins", 20 | } 21 | ], 22 | name = 'ConfigServer Explorer', 23 | url = '/cgi/configserver/cse.cgi', 24 | }; 25 | %] 26 | 27 | [% cse_output %] 28 | 29 | [% END %] 30 | -------------------------------------------------------------------------------- /cmm/cmm.tmpl: -------------------------------------------------------------------------------- 1 | [% 2 | USE Whostmgr; 3 | USE JSON; 4 | 5 | WRAPPER 'master_templates/master.tmpl' 6 | header = 'ConfigServer Mail Manage' 7 | skipsupport = 1 8 | skipheader = 1 9 | hide_license_warnings = 1 10 | theme='bootstrap' 11 | breadcrumbdata = { 12 | previous = [ 13 | { 14 | name = "Home", 15 | url = "/scripts/command?PFILE=main", 16 | }, 17 | { 18 | name = "Plugins", 19 | url = "/scripts/command?PFILE=Plugins", 20 | } 21 | ], 22 | name = 'ConfigServer Mail Manage', 23 | url = '/cgi/configserver/cmm.cgi', 24 | }; 25 | %] 26 | 27 | [% cmm_output %] 28 | 29 | [% END %] 30 | -------------------------------------------------------------------------------- /cmm/INSTALL.txt: -------------------------------------------------------------------------------- 1 | To install or upgrade cmm simply do the following from the root shell via SSH: 2 | 3 | cd /usr/src 4 | rm -fv /usr/src/cmm.tgz 5 | wget http://download.configserver.com/cmm.tgz 6 | tar -xzf cmm.tgz 7 | cd cmm 8 | sh install.sh 9 | rm -Rfv /usr/src/cmm* 10 | 11 | Then login to WHM and scroll to the bottom of the left hand menu and you should see "ConfigServer Mail Manage" 12 | 13 | 14 | If you want to uninstall, simply: 15 | 16 | cd /usr/src 17 | rm -fv /usr/src/cmm.tgz 18 | wget http://download.configserver.com/cmm.tgz 19 | tar -xzf cmm.tgz 20 | cd cmm 21 | sh uninstall.sh 22 | rm -Rfv /usr/src/cmm* 23 | -------------------------------------------------------------------------------- /cmq/cpanel/cmq.tmpl: -------------------------------------------------------------------------------- 1 | [% 2 | USE Whostmgr; 3 | USE JSON; 4 | 5 | WRAPPER 'master_templates/master.tmpl' 6 | header = 'ConfigServer Mail Queues' 7 | skipsupport = 1 8 | skipheader = 1 9 | hide_license_warnings = 1 10 | theme='bootstrap' 11 | breadcrumbdata = { 12 | previous = [ 13 | { 14 | name = "Home", 15 | url = "/scripts/command?PFILE=main", 16 | }, 17 | { 18 | name = "Plugins", 19 | url = "/scripts/command?PFILE=Plugins", 20 | } 21 | ], 22 | name = 'ConfigServer Mail Queues', 23 | url = '/cgi/configserver/cmq.cgi', 24 | }; 25 | %] 26 | 27 | [% cmq_output %] 28 | 29 | [% END %] 30 | -------------------------------------------------------------------------------- /cse/INSTALL.txt: -------------------------------------------------------------------------------- 1 | To install or upgrade cse simply do the following from the root shell via SSH: 2 | 3 | cd /usr/src 4 | rm -fv /usr/src/cse.tgz 5 | wget https://download.configserver.com/cse.tgz 6 | tar -xzf cse.tgz 7 | cd cse 8 | sh install.sh 9 | rm -Rfv /usr/src/cse* 10 | 11 | Then login to WHM and scroll to the bottom of the left hand menu and you should see "ConfigServer Explorer" 12 | 13 | 14 | If you want to uninstall, simply: 15 | 16 | cd /usr/src 17 | rm -fv /usr/src/cse.tgz 18 | wget http://download.configserver.com/cse.tgz 19 | tar -xzf cse.tgz 20 | cd cse 21 | sh uninstall.sh 22 | rm -Rfv /usr/src/cse* 23 | -------------------------------------------------------------------------------- /cmc/cmc.tmpl: -------------------------------------------------------------------------------- 1 | [% 2 | USE Whostmgr; 3 | USE JSON; 4 | 5 | WRAPPER 'master_templates/master.tmpl' 6 | header = 'ConfigServer ModSecurity Control' 7 | skipsupport = 1 8 | skipheader = 1 9 | hide_license_warnings = 1 10 | theme='bootstrap' 11 | breadcrumbdata = { 12 | previous = [ 13 | { 14 | name = "Home", 15 | url = "/scripts/command?PFILE=main", 16 | }, 17 | { 18 | name = "Plugins", 19 | url = "/scripts/command?PFILE=Plugins", 20 | } 21 | ], 22 | name = 'ConfigServer ModSecurity Control', 23 | url = '/cgi/configserver/cmc.cgi', 24 | }; 25 | %] 26 | 27 | [% cmc_output %] 28 | 29 | [% END %] 30 | -------------------------------------------------------------------------------- /csf/cpanel/csf.tmpl: -------------------------------------------------------------------------------- 1 | [% 2 | USE Whostmgr; 3 | USE JSON; 4 | 5 | WRAPPER 'master_templates/master.tmpl' 6 | header = 'ConfigServer Security & Firewall' 7 | skipsupport = 1 8 | skipheader = 1 9 | hide_license_warnings = 1 10 | theme='bootstrap' 11 | breadcrumbdata = { 12 | previous = [ 13 | { 14 | name = "Home", 15 | url = "/scripts/command?PFILE=main", 16 | }, 17 | { 18 | name = "Plugins", 19 | url = "/scripts/command?PFILE=Plugins", 20 | } 21 | ], 22 | name = 'ConfigServer Security & Firewall', 23 | url = '/cgi/configserver/csf.cgi', 24 | }; 25 | %] 26 | 27 | [% csf_output %] 28 | 29 | [% END %] 30 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/templates/configservercsf/index.html: -------------------------------------------------------------------------------- 1 | {% extends "baseTemplate/index.html" %} 2 | {% load i18n %} 3 | {% block title %}ConfigServer Security and Firewall{% endblock %} 4 | {% block content %} 5 | 6 | {% load static %} 7 | 8 | 9 | 16 | 17 | {% endblock %} 18 | -------------------------------------------------------------------------------- /cmm/cmm.conf.old: -------------------------------------------------------------------------------- 1 | # name 2 | name=cmm 3 | 4 | # Service that will serve this app 5 | service=whostmgr 6 | 7 | # Physical path: /usr/local/cpanel/3rdparty/Foo.php 8 | # Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php 9 | url=/cgi/addon_cmm.cgi 10 | 11 | # System user to run process as 12 | #user=root 13 | 14 | # Required acls 15 | acls=all 16 | 17 | # Display name as show in the service ui 18 | displayname=ConfigServer Mail Manage 19 | 20 | # Url to show in the service ui (relative to install path for whm this is cgi/) 21 | #entryurl=addon_cmm.cgi 22 | 23 | upgradecall=/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm/upgrade.sh 24 | -------------------------------------------------------------------------------- /cse/cse.conf.old: -------------------------------------------------------------------------------- 1 | # name 2 | name=cse 3 | 4 | # Service that will serve this app 5 | service=whostmgr 6 | 7 | # Physical path: /usr/local/cpanel/3rdparty/Foo.php 8 | # Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php 9 | url=/cgi/addon_cse.cgi 10 | 11 | # System user to run process as 12 | #user=root 13 | 14 | # Required acls 15 | acls=all 16 | 17 | # Display name as show in the service ui 18 | displayname=ConfigServer Explorer 19 | 20 | # Url to show in the service ui (relative to install path for whm this is cgi/) 21 | #entryurl=addon_cse.cgi 22 | 23 | upgradecall=/usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse/upgrade.sh 24 | -------------------------------------------------------------------------------- /cmq/cpanel/cmq.conf: -------------------------------------------------------------------------------- 1 | # name 2 | name=cmq 3 | 4 | # Service that will serve this app 5 | service=whostmgr 6 | 7 | # Physical path: /usr/local/cpanel/3rdparty/Foo.php 8 | # Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php 9 | url=/cgi/configserver/cmq.cgi 10 | 11 | # System user to run process as 12 | user=root 13 | 14 | # Required acls 15 | acls=all 16 | 17 | # Display name as show in the service ui 18 | displayname=ConfigServer Mail Queues 19 | 20 | # Url to show in the service ui (relative to install path for whm this is cgi/) 21 | entryurl=configserver/cmq.cgi 22 | 23 | upgradecall=/etc/cmq/upgrade.sh 24 | 25 | icon=cmq.png 26 | 27 | target=_self 28 | -------------------------------------------------------------------------------- /csf/cpanel/upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e "/usr/local/cpanel/bin/register_appconfig" ]; then 4 | if [ -e "/usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi" ]; then 5 | /bin/cp -af /usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf/Driver/* /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/ 6 | /bin/touch /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver 7 | /usr/local/cpanel/bin/register_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf/csf.conf 8 | 9 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi 10 | /bin/rm -Rf /usr/local/cpanel/whostmgr/docroot/cgi/csf 11 | fi 12 | fi 13 | -------------------------------------------------------------------------------- /csf/vestacp/frame.php: -------------------------------------------------------------------------------- 1 | . 17 | -------------------------------------------------------------------------------- /csf/cpanel/csf.conf: -------------------------------------------------------------------------------- 1 | # name 2 | name=csf 3 | 4 | # Service that will serve this app 5 | service=whostmgr 6 | 7 | # Physical path: /usr/local/cpanel/3rdparty/Foo.php 8 | # Literal URL path: $server:$port/$cpsession/3rdparty/Foo.php 9 | url=/cgi/configserver/csf.cgi 10 | 11 | # System user to run process as 12 | user=root 13 | 14 | # Required acls 15 | acls=software-ConfigServer-csf 16 | 17 | # Display name as show in the service ui 18 | displayname=ConfigServer Security & Firewall 19 | 20 | # Url to show in the service ui (relative to install path for whm this is cgi/) 21 | entryurl=configserver/csf.cgi 22 | 23 | # Path to upgrade script 24 | upgradecall=/usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf/upgrade.sh 25 | 26 | icon=csf_small.png 27 | 28 | target=_self 29 | -------------------------------------------------------------------------------- /cse/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 4 | cd / 5 | /usr/local/cpanel/bin/unregister_appconfig cse 6 | else 7 | if [ ! -e "/var/cpanel/apps/cse.conf" ]; then 8 | /bin/rm -fv /var/cpanel/apps/cse.conf 9 | fi 10 | fi 11 | 12 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi 13 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cseversion.txt 14 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cse 15 | 16 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse.cgi 17 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cseversion.txt 18 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse 19 | 20 | echo "ConfigServer Explorer has been uninstalled." 21 | exit 22 | -------------------------------------------------------------------------------- /cmm/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 4 | cd / 5 | /usr/local/cpanel/bin/unregister_appconfig cmm 6 | else 7 | if [ ! -e "/var/cpanel/apps/cmm.conf" ]; then 8 | /bin/rm -fv /var/cpanel/apps/cmm.conf 9 | fi 10 | fi 11 | 12 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi 13 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmmversion.txt 14 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmm 15 | 16 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm.cgi 17 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmmversion.txt 18 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm 19 | 20 | echo "ConfigServer Mail Manage has been uninstalled." 21 | exit 22 | -------------------------------------------------------------------------------- /csf/profiles/block_all_perm.conf: -------------------------------------------------------------------------------- 1 | # Profile: This provides a configuration where all blocks are configured to be 2 | # permanent 3 | CT_BLOCK_TIME = "0" 4 | CT_PERMANENT = "1" 5 | DENY_IP_LIMIT = "400" 6 | LF_APACHE_403_PERM = "1" 7 | LF_APACHE_404_PERM = "1" 8 | LF_BIND_PERM = "1" 9 | LF_CPANEL_PERM = "1" 10 | LF_CXS_PERM = "1" 11 | LF_DISTFTP_PERM = "1" 12 | LF_DISTSMTP_PERM = "1" 13 | LF_EXIMSYNTAX_PERM = "1" 14 | LF_FTPD_PERM = "1" 15 | LF_HTACCESS_PERM = "1" 16 | LF_IMAPD_PERM = "1" 17 | LF_MODSEC_PERM = "1" 18 | LF_NETBLOCK = "1" 19 | LF_PERMBLOCK = "1" 20 | LF_POP3D_PERM = "1" 21 | LF_QOS_PERM = "1" 22 | LF_SMTPAUTH_PERM = "1" 23 | LF_SSHD_PERM = "1" 24 | LF_SUHOSIN_PERM = "1" 25 | LF_SYMLINK_PERM = "1" 26 | LF_TRIGGER_PERM = "1" 27 | LF_WEBMIN_PERM = "1" 28 | PS_BLOCK_TIME = "0" 29 | PS_PERMANENT = "1" 30 | RT_AUTHRELAY_BLOCK = "1" 31 | RT_POPRELAY_BLOCK = "1" 32 | RT_RELAY_BLOCK = "1" 33 | -------------------------------------------------------------------------------- /csf/apache.http.txt: -------------------------------------------------------------------------------- 1 | Listen 0.0.0.0:[PORT] 2 | Listen [::]:[PORT] 3 | 4 | # Virtualhost start - do not remove this line 5 | 6 | ServerName [SERVERNAME] 7 | DocumentRoot [DOCUMENTROOT] 8 | KeepAlive Off 9 | 10 | AllowOverride All 11 | 12 | 13 | suPHP_Engine On 14 | suPHP_UserGroup [USER] [USER] 15 | 16 | 17 | 18 | SuexecUserGroup [USER] [USER] 19 | 20 | 21 | 22 | RMode config 23 | RUidGid [USER] [USER] 24 | 25 | 26 | AssignUserID [USER] [USER] 27 | 28 | 29 | lsapi_user_group [USER] [USER] 30 | 31 | 32 | [PHPHANDLER] 33 | 34 | 35 | # Virtualhost end - do not remove this line 36 | -------------------------------------------------------------------------------- /csf/cwp/configserver.php: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /csf/profiles/block_all_temp.conf: -------------------------------------------------------------------------------- 1 | # Profile: This provides a configuration where all blocks are configured to be 2 | # temporary for a duration of one hour 3 | CT_BLOCK_TIME = "3600" 4 | CT_PERMANENT = "0" 5 | DENY_TEMP_IP_LIMIT = "200" 6 | LF_APACHE_403_PERM = "3600" 7 | LF_APACHE_404_PERM = "3600" 8 | LF_BIND_PERM = "3600" 9 | LF_CPANEL_PERM = "3600" 10 | LF_CXS_PERM = "3600" 11 | LF_DISTFTP_PERM = "3600" 12 | LF_DISTSMTP_PERM = "3600" 13 | LF_EXIMSYNTAX_PERM = "3600" 14 | LF_FTPD_PERM = "3600" 15 | LF_HTACCESS_PERM = "3600" 16 | LF_IMAPD_PERM = "3600" 17 | LF_MODSEC_PERM = "3600" 18 | LF_NETBLOCK = "0" 19 | LF_PERMBLOCK = "0" 20 | LF_POP3D_PERM = "3600" 21 | LF_QOS_PERM = "3600" 22 | LF_SMTPAUTH_PERM = "3600" 23 | LF_SSHD_PERM = "3600" 24 | LF_SUHOSIN_PERM = "3600" 25 | LF_SYMLINK_PERM = "3600" 26 | LF_TRIGGER_PERM = "3600" 27 | LF_WEBMIN_PERM = "3600" 28 | PS_BLOCK_TIME = "3600" 29 | PS_PERMANENT = "0" 30 | RT_AUTHRELAY_BLOCK = "3600" 31 | RT_POPRELAY_BLOCK = "3600" 32 | RT_RELAY_BLOCK = "3600" 33 | -------------------------------------------------------------------------------- /uninstallers/osm/uninstall.cpanel.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling osm..." 3 | echo 4 | 5 | rm -fv /var/run/chkservd/osmd 6 | sed -i '/^osmd:/d' /etc/chkserv.d/chkservd.conf 7 | /scripts/restartsrv_chkservd 8 | 9 | if test `cat /proc/1/comm` = "systemd" 10 | then 11 | systemctl disable osmd.service 12 | systemctl stop osmd.service 13 | rm -fv /usr/lib/systemd/system/osmd.service 14 | systemctl daemon-reload 15 | else 16 | /etc/init.d/osmd stop 17 | /sbin/chkconfig osmd off 18 | /sbin/chkconfig osmd --del 19 | rm -fv /etc/init.d/osmd 20 | fi 21 | 22 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 23 | cd / 24 | /usr/local/cpanel/bin/unregister_appconfig osm 25 | fi 26 | 27 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/osm 28 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/osm.cgi 29 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/osm 30 | 31 | rm -Rfv /etc/osm 32 | cd 33 | 34 | echo 35 | echo "...Done" 36 | -------------------------------------------------------------------------------- /csf/csf.suignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following is a list of usernames that are ignored during the LF_EXPLOIT 20 | # SUPERUSER check 21 | -------------------------------------------------------------------------------- /csf/csf.signore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following is a list of files that LF_SCRIPT_ALERT will ignore. You must 20 | # specify the full path to the directory containing the script 21 | -------------------------------------------------------------------------------- /csf/csf.mignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following is a list of usernames and local IP addresses that 20 | # RT_LOCALRELAY_ALERT will ignore 21 | # 22 | # Add only one username per line 23 | -------------------------------------------------------------------------------- /csf/vestacp/index.php: -------------------------------------------------------------------------------- 1 | 16 |
17 | 18 |
19 | 20 | 28 |
29 | . 18 | ############################################################################### 19 | # The following is a list of user ID's (UID) that are ignored by the User ID 20 | # Tracking feature - UID_INTERVAL 21 | # 22 | # For example, to ignore all root connections add 0 on a line by itself 23 | -------------------------------------------------------------------------------- /csf/apf_stub.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | use strict; 3 | use warnings; 4 | 5 | my @cmd = @ARGV; 6 | 7 | if ($cmd[0] eq "-a" or $cmd[0] eq "--allow") { 8 | $cmd[0] = "--add"; 9 | system("csf",@cmd); 10 | } 11 | elsif ($cmd[0] eq "-d" or $cmd[0] eq "--deny") { 12 | $cmd[0] = "--deny"; 13 | system("csf",@cmd); 14 | } 15 | elsif ($cmd[0] eq "-u" or $cmd[0] eq "--remove" or $cmd[0] eq "--unban") { 16 | $cmd[1] =~ s/\^|\$//g; 17 | $cmd[0] = "--addrm"; 18 | system("csf",@cmd); 19 | $cmd[0] = "--denyrm"; 20 | system("csf",@cmd); 21 | $cmd[0] = "--temprm"; 22 | system("csf",@cmd); 23 | } 24 | elsif ($cmd[0] eq "-s" or $cmd[0] eq "--start") { 25 | $cmd[0] = "--start"; 26 | system("csf",@cmd); 27 | } 28 | elsif ($cmd[0] eq "-f" or $cmd[0] eq "--flush" or $cmd[0] eq "--stop") { 29 | $cmd[0] = "--stop"; 30 | system("csf",@cmd); 31 | } 32 | elsif ($cmd[0] eq "-r" or $cmd[0] eq "--restart") { 33 | $cmd[0] = "--restart"; 34 | system("csf",@cmd); 35 | } 36 | elsif ($cmd[0] eq "-l" or $cmd[0] eq "--list") { 37 | $cmd[0] = "--status"; 38 | system("csf",@cmd); 39 | } else { 40 | print "Unknown command, please use csf directly instead of this apf stub\n"; 41 | } 42 | 43 | exit; 44 | -------------------------------------------------------------------------------- /csf/messenger/en.php: -------------------------------------------------------------------------------- 1 | "The firewall on this server is blocking your connection.", 4 | "contact" => "You need to contact the server owner or hosting provider for further information.", 5 | "blocked ip" => "Your blocked IP address is:", 6 | "hostname" => "The hostname of this server is:", 7 | "recaptcha title" => "You can try to unblock yourself using ReCAPTCHA:", 8 | "recaptcha note" => "Please note: Not all unblock requests will be successful as it is dependent on how your IP address is being blocked. If the unblock fails you will need to contact the server owner or hosting provider for further information.", 9 | "recaptcha success" => "Passed human test. Please wait a few seconds and your IP address should be unblocked and you can return to the website:", 10 | "recaptcha failure" => "Failed to pass ReCAPTCHA test. Please try again.", 11 | "recaptcha hostfail" => "There has been a problem verifying the hostname:", 12 | "recaptcha error" => "There has been a problem. Please click on the reCAPTCHA box.", 13 | "unblock submit" => "Unblock", 14 | ); 15 | ?> 16 | -------------------------------------------------------------------------------- /csf/cpanel/Driver/ConfigServercsf/META.pm: -------------------------------------------------------------------------------- 1 | package Cpanel::Config::ConfigObj::Driver::ConfigServercsf::META; 2 | 3 | use strict; 4 | 5 | our $VERSION = 1.1; 6 | 7 | #use parent qw(Cpanel::Config::ConfigObj::Interface::Config::Version::v1); 8 | sub spec_version { 9 | return 1; 10 | } 11 | 12 | sub meta_version { 13 | return 1; 14 | } 15 | 16 | sub get_driver_name { 17 | return 'ConfigServercsf_driver'; 18 | } 19 | 20 | sub content { 21 | my ($locale_handle) = @_; 22 | 23 | my $content = { 24 | 'vendor' => 'Jonathan Michaelson', 25 | 'url' => 'www.configserver.com', 26 | 'name' => { 27 | 'short' => 'ConfigServercsf Driver', 28 | 'long' => 'ConfigServercsf Driver', 29 | 'driver' => get_driver_name(), 30 | }, 31 | 'since' => 'cPanel 11.38.1', 32 | 'abstract' => "A ConfigServercsf driver", 33 | 'version' => $VERSION, 34 | }; 35 | 36 | if ($locale_handle) { 37 | $content->{'abstract'} = $locale_handle->maketext("ConfigServer csf driver"); 38 | } 39 | 40 | return $content; 41 | } 42 | 43 | sub showcase { 44 | return; 45 | } 46 | 1; 47 | -------------------------------------------------------------------------------- /csf/csf.sips: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The purpose of this file is to list any server configured IP addresses for 20 | # which you don't want to allow any incoming or outgoing traffic. This is 21 | # useful if you have IP addresses setup but do not yet wish to allow traffic 22 | # on them 23 | -------------------------------------------------------------------------------- /csf/csf.cwp.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be ignored by all lfd checks 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | 25 | 127.0.0.1 26 | -------------------------------------------------------------------------------- /csf/apache.https.txt: -------------------------------------------------------------------------------- 1 | Listen 0.0.0.0:[SSLPORT] 2 | Listen [::]:[SSLPORT] 3 | 4 | # Virtualhost start - do not remove this line 5 | 6 | ServerName [SERVERNAME] 7 | ServerAlias [SERVERALIAS] 8 | DocumentRoot [DOCUMENTROOT] 9 | UseCanonicalName Off 10 | KeepAlive Off 11 | 12 | AllowOverride All 13 | 14 | 15 | suPHP_Engine On 16 | suPHP_UserGroup [USER] [USER] 17 | 18 | 19 | 20 | SuexecUserGroup [USER] [USER] 21 | 22 | 23 | 24 | RMode config 25 | RUidGid [USER] [USER] 26 | 27 | 28 | AssignUserID [USER] [USER] 29 | 30 | 31 | lsapi_user_group [USER] [USER] 32 | 33 | ScriptAlias /local-bin /usr/bin 34 | 35 | [PHPHANDLER] 36 | 37 | SSLEngine on 38 | SSLCertificateFile [SSLCERTIFICATEFILE] 39 | SSLCertificateKeyFile [SSLCERTIFICATEKEYFILE] 40 | SSLCACertificateFile [SSLCACERTIFICATEFILE] 41 | SSLUseStapling off 42 | 43 | # Virtualhost end - do not remove this line 44 | -------------------------------------------------------------------------------- /csf/csf.generic.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be ignored by all lfd checks 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | 25 | 127.0.0.1 26 | -------------------------------------------------------------------------------- /csf/csf.interworx.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be ignored by all lfd checks 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | 25 | 127.0.0.1 26 | -------------------------------------------------------------------------------- /csf/csf.vesta.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be ignored by all lfd checks 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | 25 | 127.0.0.1 26 | -------------------------------------------------------------------------------- /csf/csf.cyberpanel.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be ignored by all lfd checks 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | 25 | 127.0.0.1 26 | -------------------------------------------------------------------------------- /csf/csf.directadmin.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be ignored by all lfd checks 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | 25 | 127.0.0.1 26 | -------------------------------------------------------------------------------- /csf/profiles/disable_alerts.conf: -------------------------------------------------------------------------------- 1 | # Profile: This profile disables all options that will send email alerts. This 2 | # profile is not recommended as the alerts often provide essential information 3 | # about blocks and hacking activity on a server and if disabled that 4 | # information will be lost. Additionally, some of these options disable 5 | # functionality. 6 | AT_ALERT = "0" 7 | CT_EMAIL_ALERT = "0" 8 | LF_CONSOLE_EMAIL_ALERT = "0" 9 | LF_CPANEL_ALERT = "0" 10 | LF_DIRWATCH = "0" 11 | LF_EMAIL_ALERT = "0" 12 | LF_INTEGRITY = "0" 13 | LF_NETBLOCK_ALERT = "0" 14 | LF_PERMBLOCK_ALERT = "0" 15 | LF_QUEUE_ALERT = "0" 16 | LF_SCRIPT_ALERT = "0" 17 | LF_SSH_EMAIL_ALERT = "0" 18 | LF_SU_EMAIL_ALERT = "0" 19 | LF_WEBMIN_EMAIL_ALERT = "0" 20 | LOGFLOOD_ALERT = "0" 21 | LOGSCANNER = "0" 22 | LT_EMAIL_ALERT = "0" 23 | PORTKNOCKING_ALERT = "0" 24 | PS_EMAIL_ALERT = "0" 25 | PT_INTERVAL = "0" 26 | PT_LOAD = "0" 27 | PT_USERKILL_ALERT = "0" 28 | RT_AUTHRELAY_ALERT = "0" 29 | RT_LOCALHOSTRELAY_ALERT = "0" 30 | RT_LOCALRELAY_ALERT = "0" 31 | RT_POPRELAY_ALERT = "0" 32 | RT_RELAY_ALERT = "0" 33 | SYSLOG_CHECK = "0" 34 | UID_INTERVAL = "0" 35 | RECAPTCHA_ALERT = "0" 36 | LF_DISTSMTP_ALERT = "0" 37 | LF_DISTFTP_ALERT = "0" 38 | LF_MODSECIPDB_ALERT = "0" 39 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/templates/configservercsf/menu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | ConfigServer Services 4 | 5 | 23 | 24 | 25 |
  • 26 | -------------------------------------------------------------------------------- /csf/ui/server.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDVzCCAj+gAwIBAgIJAMYKO803G9mwMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNV 3 | BAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxHDAaBgNVBAoME0RlZmF1bHQg 4 | Q29tcGFueSBMdGQwHhcNMjAwNjE3MDg0MjQ2WhcNMjAwNzE3MDg0MjQ2WjBCMQsw 5 | CQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRwwGgYDVQQKDBNEZWZh 6 | dWx0IENvbXBhbnkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA 7 | qJ3N4s6mOK/XuZCLXYj0kKGuEwfguTKCP1SVVS4bHl2W7fWqZ8x9aWSqDwAsJ6/l 8 | HvhiF7Gdt9EMbs28b1+/Kpv7ghcDV84hPXxpqL4hmX0mExPhCRVW9hEg+FRtyYc1 9 | 2zXT3idTsb4ZJ6v3ORgULjYcFP8YbXgHzHYB4lYw3nhFn8hbdvjDM+ulq+/BFJqW 10 | px61HQyr70Ws4dwz+HJckIwVFoJtaL0Bgw7WFCJLSfz18SsFfjZDVcDVVr+jn/6T 11 | evfuXDAoZCA5ndF/9K0T8zTF4QnbLSgOQD2JW0lAECVaPAJt0s9716sQP8OzuXw8 12 | sxgqVhv/r6p+hLkA3kbjgwIDAQABo1AwTjAdBgNVHQ4EFgQUvDFm5aZHtvwJsy1I 13 | TndBpqfApGMwHwYDVR0jBBgwFoAUvDFm5aZHtvwJsy1ITndBpqfApGMwDAYDVR0T 14 | BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAoJn8cYxJccyilnnQRw7VTyrT9N/s 15 | Qe7tScnN5zApbqx1q7/2PhVeENnsLZn8vQlQKhrG0lf2POv7CreJfScEcwnN023L 16 | nk9hHd5U1DUAbFr+divtZqYbVXIzhEnUyn2C8fhboP8V47xvEx4/UuC3EWKQ/Eoi 17 | k90h32125svFbA6o3ag1AR/6bV4Wv/Qk9+Yz5R7dgJRU/OA6OmSsjseRM/Aom8Au 18 | xLoFFUHoHpkQyZ8f42m1NVRsV2ill88D/7g9Hh+RrF5NOOlKot7X5hDFhN273qiu 19 | NTfuCxgqd2vt4QaGxBtkxDreSDc1oiB45SRN7B/L3L+mNpWRfKmm0pPoJA== 20 | -----END CERTIFICATE----- 21 | -------------------------------------------------------------------------------- /uninstallers/README.md: -------------------------------------------------------------------------------- 1 | # Scripts for former Way to the Web Limited Products 2 | 3 | ### The scripts in this repository will uninstall each product 4 | 5 | ## MailScanner and MSFE (MailScanner Front-End): 6 | 7 | ``` 8 | curl -sL -o msuninstall.pl https://github.com/waytotheweb/scripts/blob/main/uninstallers/MailScanner/msuninstall.pl?raw=true 9 | curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/MailScanner/msuninstall.sh?raw=true | bash 10 | ``` 11 | 12 | ## cxs: 13 | 14 | ``` 15 | bash /etc/cxs/uninstall.sh 16 | ``` 17 | 18 | ## osm: 19 | 20 | ``` 21 | bash /etc/osm/uninstall.sh 22 | ``` 23 | 24 | ## csf: 25 | 26 | ``` 27 | bash /etc/csf/uninstall.sh 28 | ``` 29 | 30 | ## cmc: 31 | 32 | ``` 33 | curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cmc/cmc_uninstall.sh?raw=true | bash 34 | ``` 35 | 36 | ## cmm: 37 | 38 | ``` 39 | curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cmm/cmm_uninstall.sh?raw=true | bash 40 | ``` 41 | 42 | ## cmq: 43 | 44 | ``` 45 | curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cmq/cmq_uninstall.sh?raw=true | bash 46 | ``` 47 | 48 | ## cse: 49 | 50 | ``` 51 | curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cse/cse_uninstall.sh?raw=true | bash 52 | ``` 53 | -------------------------------------------------------------------------------- /csf/csf.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be ignored by all lfd checks 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | 25 | 127.0.0.1 26 | 27 | Include /etc/csf/cpanel.comodo.ignore 28 | Include /etc/csf/cpanel.ignore 29 | -------------------------------------------------------------------------------- /cmq/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 21 | 22 | if [ -e "/usr/local/cpanel/version" ]; then 23 | echo "Running cmq cPanel installer" 24 | echo 25 | sh install.cpanel.sh 26 | elif [ -e "/usr/local/directadmin/directadmin" ]; then 27 | echo "Running cmq DirectAdmin installer" 28 | echo 29 | sh install.directadmin.sh 30 | fi 31 | -------------------------------------------------------------------------------- /cmq/da/admin/index.html: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | print "\n"; 4 | print "\n"; 32 | -------------------------------------------------------------------------------- /csf/da/admin/index.html: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | print "\n"; 4 | print "\n"; 32 | -------------------------------------------------------------------------------- /csf/litespeed.https.txt: -------------------------------------------------------------------------------- 1 | listener csfSSL { 2 | [MAPS] 3 | address *:[SSLPORT] 4 | secure 1 5 | keyFile [SSLCERTIFICATEKEYFILE] 6 | certFile [SSLCERTIFICATEFILE] 7 | } 8 | 9 | # Virtualhost start - do not remove this line 10 | virtualHost csfssl.[SERVERNAME] { 11 | vhRoot [DIRECTORY] 12 | allowSymbolLink 1 13 | enableScript 1 14 | restrained 1 15 | docRoot [DOCUMENTROOT] 16 | vhDomain [SERVERNAME] 17 | vhAliases [SERVERALIAS] 18 | vhssl { 19 | keyFile [SSLCERTIFICATEKEYFILE] 20 | certFile [SSLCERTIFICATEFILE] 21 | certChain 1 22 | sslProtocol 24 23 | ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES128-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA128:DHE-RSA-AES128-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA128:ECDHE-RSA-AES128-SHA384:ECDHE-RSA-AES128-SHA128:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA384:AES128-GCM-SHA128:AES128-SHA128:AES128-SHA128:AES128-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4 24 | enableECDHE 1 25 | renegProtection 1 26 | sslSessionCache 1 27 | enableSpdy 15 28 | enableStapling 1 29 | ocspRespMaxAge 86400 30 | } 31 | } 32 | # Virtualhost end - do not remove this line 33 | -------------------------------------------------------------------------------- /csf/da/reseller/index.html: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | print "\n"; 4 | print "\n"; 32 | -------------------------------------------------------------------------------- /csf/csf.dirwatch: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following should be a list of directories and files that you want to be 20 | # alerted when they change. You must specify full paths for each entry. 21 | # 22 | # lfd uses a simple md5sum match from the output of: 23 | # ls --full-time -lARt [dir] 24 | # on the entry and so will traverse directories if specified. 25 | # 26 | # An example where you might want to use this is /var/spool/cron 27 | # -------------------------------------------------------------------------------- /csf/csf.smtpauth: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will allow EXIM to advertise SMTP AUTH 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # You need to enable SMTPAUTH_RESTRICT and modify the exim configuration to use 25 | # this file. CC_ALLOW_SMTPAUTH can also be used to allow whole Country Codes 26 | -------------------------------------------------------------------------------- /csf/x-arf.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Auto-Submitted: auto-generated 4 | X-XARF: PLAIN 5 | Content-Type: multipart/mixed; 6 | boundary="csf-[boundary]" 7 | MIME-Version: 1.0 8 | Subject: abuse report about [ip] - [RFC3339] 9 | 10 | This is a multi-part message in MIME format. 11 | --csf-[boundary] 12 | Content-Transfer-Encoding: 7bit 13 | Content-Type: text/plain; charset=utf-8 14 | 15 | The IP address [tip] was found attacking [service] on [hostname] [ipcount] times in the last [iptick] seconds. 16 | 17 | Attached is an X-ARF report (see http://www.xarf.org/specification.html) and the original log report that triggered this block. 18 | 19 | [abuseip] 20 | 21 | --csf-[boundary] 22 | Content-Transfer-Encoding: 7bit 23 | Content-Disposition: attachment; filename="report.txt" 24 | Content-Type: text/plain; charset=utf8; name="report.txt"; 25 | 26 | Reported-From: [reportedfrom] 27 | Report-ID: [reportedid] 28 | Category: abuse 29 | Report-Type: login-attack 30 | Service: [service] 31 | User-Agent: csf v[csfversion] 32 | Date: [RFC3339] 33 | Source: [ip] 34 | Source-Type: [iptype] 35 | Attachment: text/plain 36 | Schema-URL: https://download.configserver.com/abuse_login-attack_0.2.json 37 | 38 | --csf-[boundary] 39 | Content-Transfer-Encoding: 7bit 40 | Content-Disposition: attachment; filename="logfile.log" 41 | Content-Type: text/plain; charset=utf8; name="logfile.log"; 42 | 43 | [text] 44 | 45 | --csf-[boundary]-- 46 | -------------------------------------------------------------------------------- /csf/loadalert.txt: -------------------------------------------------------------------------------- 1 | From: root 2 | To: root 3 | Subject: lfd on [hostname]: High [loadavg] minute load average alert - [reportload] 4 | MIME-Version: 1.0 5 | Content-Type: multipart/mixed; 6 | boundary="------------[boundary]" 7 | 8 | This is a multi-part message in MIME format. 9 | --------------[boundary] 10 | Content-Type: text/plain; 11 | Content-Transfer-Encoding: 7bit 12 | 13 | Time: [time] 14 | 1 Min Load Avg: [loadavg1] 15 | 5 Min Load Avg: [loadavg5] 16 | 15 Min Load Avg: [loadavg15] 17 | Running/Total Processes: [totprocs] 18 | 19 | --------------[boundary] 20 | Content-Type: text/plain; 21 | Content-Transfer-Encoding: 7bit 22 | Content-Disposition: attachment; 23 | filename="ps.txt" 24 | 25 | Output from ps: 26 | [processlist] 27 | 28 | --------------[boundary] 29 | Content-Type: text/plain; 30 | Content-Transfer-Encoding: 7bit 31 | Content-Disposition: attachment; 32 | filename="vmstat.txt" 33 | 34 | Output from vmstat: 35 | [vmstat] 36 | 37 | --------------[boundary] 38 | Content-Type: text/plain; 39 | Content-Transfer-Encoding: 7bit 40 | Content-Disposition: attachment; 41 | filename="netstat.txt" 42 | 43 | Output from netstat: 44 | [netstat] 45 | 46 | --------------[boundary] 47 | Content-Type: text/html; 48 | name="apachestatus.html" 49 | Content-Transfer-Encoding: 7bit 50 | Content-Disposition: attachment; 51 | filename="apachestatus.html" 52 | 53 | [apache] 54 | 55 | --------------[boundary]-- 56 | -------------------------------------------------------------------------------- /cmc/upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | 21 | if [ -e "/usr/local/cpanel/bin/register_appconfig" ]; then 22 | if [ -e "/usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi" ]; then 23 | /usr/local/cpanel/bin/register_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc/cmc.conf 24 | 25 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi 26 | /bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/cmcversion.txt 27 | /bin/rm -Rf /usr/local/cpanel/whostmgr/docroot/cgi/cmc 28 | fi 29 | fi 30 | -------------------------------------------------------------------------------- /csf/upgrade.txt: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | 20 | 21 | Upgrade 22 | ======= 23 | 24 | Upgrading is just a matter of following the installation instructions which are 25 | non-destructive, i.e. it won't overwrite any configuration files and will 26 | automagically add any new parameters to csf.conf for you. There is no need to 27 | uninstall csf first. 28 | 29 | Once done you should restart csf and lfd either in WHM, or: 30 | 31 | csf -r 32 | service lfd restart 33 | 34 | The installation will not overwrite any of your current configuration settings 35 | files. 36 | -------------------------------------------------------------------------------- /csf/csf.rblconf: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # This file configures optional entries for the IP checking against RBLs within 20 | # csf 21 | # 22 | # There are 4 options available to enable/disable RBLs and IPs: 23 | # 24 | # To disable inbuilt RBLs or to enable other RBLs, e.g.: 25 | # 26 | # enablerbl:my.dnsrbl.net 27 | # disablerbl:bl.spamcop.net 28 | # 29 | # To disable local IPs or to enable other IPs, e.g.: 30 | # 31 | # enableip:11.22.33.44 32 | # disableip:10.10.10.10 33 | # 34 | # There should be no spaces on any of the configuration lines. Lines beginning 35 | # with # are comments 36 | -------------------------------------------------------------------------------- /csf/csf.cwp.allow: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables. 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Advanced port+ip filtering allowed with the following format 25 | # tcp/udp|in/out|s/d=port|s/d=ip 26 | # See readme.txt for more information 27 | # 28 | # Note: IP addressess listed in this file will NOT be ignored by lfd, so they 29 | # can still be blocked. If you do not want lfd to block an IP address you must 30 | # add it to csf.ignore 31 | -------------------------------------------------------------------------------- /csf/csf.deny: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be blocked in iptables 20 | # One IP address per line 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24) 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Note: If you add the text "do not delete" to the comments of an entry then 25 | # DENY_IP_LIMIT will ignore those entries and not remove them 26 | # 27 | # Advanced port+ip filtering allowed with the following format 28 | # tcp/udp|in/out|s/d=port,port,...|s/d=ip 29 | # 30 | # See readme.txt for more information regarding advanced port filtering 31 | # 32 | -------------------------------------------------------------------------------- /csf/csf.generic.allow: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables. 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Advanced port+ip filtering allowed with the following format 25 | # tcp/udp|in/out|s/d=port|s/d=ip 26 | # See readme.txt for more information 27 | # 28 | # Note: IP addressess listed in this file will NOT be ignored by lfd, so they 29 | # can still be blocked. If you do not want lfd to block an IP address you must 30 | # add it to csf.ignore 31 | -------------------------------------------------------------------------------- /csf/csf.vesta.allow: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables. 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Advanced port+ip filtering allowed with the following format 25 | # tcp/udp|in/out|s/d=port|s/d=ip 26 | # See readme.txt for more information 27 | # 28 | # Note: IP addressess listed in this file will NOT be ignored by lfd, so they 29 | # can still be blocked. If you do not want lfd to block an IP address you must 30 | # add it to csf.ignore 31 | -------------------------------------------------------------------------------- /csf/csf.cyberpanel.allow: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables. 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Advanced port+ip filtering allowed with the following format 25 | # tcp/udp|in/out|s/d=port|s/d=ip 26 | # See readme.txt for more information 27 | # 28 | # Note: IP addressess listed in this file will NOT be ignored by lfd, so they 29 | # can still be blocked. If you do not want lfd to block an IP address you must 30 | # add it to csf.ignore 31 | -------------------------------------------------------------------------------- /csf/csf.directadmin.allow: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables. 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Advanced port+ip filtering allowed with the following format 25 | # tcp/udp|in/out|s/d=port|s/d=ip 26 | # See readme.txt for more information 27 | # 28 | # Note: IP addressess listed in this file will NOT be ignored by lfd, so they 29 | # can still be blocked. If you do not want lfd to block an IP address you must 30 | # add it to csf.ignore 31 | -------------------------------------------------------------------------------- /csf/csf.interworx.allow: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables. 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Advanced port+ip filtering allowed with the following format 25 | # tcp/udp|in/out|s/d=port|s/d=ip 26 | # See readme.txt for more information 27 | # 28 | # Note: IP addressess listed in this file will NOT be ignored by lfd, so they 29 | # can still be blocked. If you do not want lfd to block an IP address you must 30 | # add it to csf.ignore 31 | -------------------------------------------------------------------------------- /csf/cpanel/Driver/ConfigServercsf.pm: -------------------------------------------------------------------------------- 1 | package Cpanel::Config::ConfigObj::Driver::ConfigServercsf; 2 | 3 | use strict; 4 | use Cpanel::Config::ConfigObj::Driver::ConfigServercsf::META (); 5 | *VERSION = \$Cpanel::Config::ConfigObj::Driver::ConfigServercsf::META::VERSION; 6 | 7 | #use parent qw(Cpanel::Config::ConfigObj::Interface::Config::v1); 8 | our @ISA = qw(Cpanel::Config::ConfigObj::Interface::Config::v1); 9 | 10 | sub init { 11 | my ( $class, $software_obj ) = @_; 12 | 13 | my $ConfigServercsf_defaults = { 14 | 'thirdparty_ns' => "ConfigServercsf", 15 | 'meta' => {}, 16 | }; 17 | my $self = $class->SUPER::base( $ConfigServercsf_defaults, $software_obj ); 18 | 19 | return $self; 20 | } 21 | 22 | sub enable { 23 | my ( $self, $input ) = @_; 24 | return 1; 25 | } 26 | 27 | sub disable { 28 | my ( $self, $input ) = @_; 29 | return 1; 30 | } 31 | 32 | sub info { 33 | my ($self) = @_; 34 | my $meta_obj = $self->meta(); 35 | my $abstract = $meta_obj->abstract(); 36 | return $abstract; 37 | } 38 | 39 | sub acl_desc { 40 | return [ 41 | { 42 | 'acl' => 'software-ConfigServer-csf', #this should be "software-$key" 43 | 'default_value' => 0, 44 | 'default_ui_value' => 0, # NOTE: this is for ui; first time setting reseller privs 45 | 'name' => 'ConfigServer Security & Firewall (Reseller UI)', 46 | 'acl_subcat' => 'Third Party Services', 47 | }, 48 | ]; 49 | } 50 | 51 | 1; 52 | -------------------------------------------------------------------------------- /uninstallers/cse/cse_uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | 19 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 20 | cd / 21 | /usr/local/cpanel/bin/unregister_appconfig cse 22 | else 23 | if [ ! -e "/var/cpanel/apps/cse.conf" ]; then 24 | /bin/rm -fv /var/cpanel/apps/cse.conf 25 | fi 26 | fi 27 | 28 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi 29 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cseversion.txt 30 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cse 31 | 32 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse.cgi 33 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cseversion.txt 34 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse 35 | 36 | echo "ConfigServer Explorer has been uninstalled." 37 | exit 38 | -------------------------------------------------------------------------------- /uninstallers/cmm/cmm_uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | 19 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 20 | cd / 21 | /usr/local/cpanel/bin/unregister_appconfig cmm 22 | else 23 | if [ ! -e "/var/cpanel/apps/cmm.conf" ]; then 24 | /bin/rm -fv /var/cpanel/apps/cmm.conf 25 | fi 26 | fi 27 | 28 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi 29 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmmversion.txt 30 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmm 31 | 32 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm.cgi 33 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmmversion.txt 34 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm 35 | 36 | echo "ConfigServer Mail Manage has been uninstalled." 37 | exit 38 | -------------------------------------------------------------------------------- /csf/profiles/protection_medium.conf: -------------------------------------------------------------------------------- 1 | # Profile: This provides a medium security level configuration that sets medium 2 | # levels for login failure blocking and minimises false-positives. It is a 3 | # slightly higher level than the default installation 4 | AT_ALERT = "2" 5 | AUTO_UPDATES = "1" 6 | CONNLIMIT = "" 7 | CT_LIMIT = "300" 8 | ICMP_IN = "1" 9 | ICMP_IN_RATE = "1/s" 10 | ICMP_OUT = "1" 11 | ICMP_OUT_RATE = "0" 12 | LF_APACHE_403 = "0" 13 | LF_APACHE_404 = "0" 14 | LF_BIND = "0" 15 | LF_BLOCKINONLY = "0" 16 | LF_CONSOLE_EMAIL_ALERT = "0" 17 | LF_CPANEL = "5" 18 | LF_CPANEL_ALERT = "1" 19 | LF_CXS = "1" 20 | LF_DIRWATCH = "300" 21 | LF_DISTATTACK = "1" 22 | LF_EXIMSYNTAX = "10" 23 | LF_FTPD = "10" 24 | LF_HTACCESS = "5" 25 | LF_IMAPD = "10" 26 | LF_INTEGRITY = "3600" 27 | LF_MODSEC = "5" 28 | LF_NETBLOCK = "0" 29 | LF_PERMBLOCK = "1" 30 | LF_POP3D = "10" 31 | LF_QOS = "0" 32 | LF_QUEUE_ALERT = "2000" 33 | LF_SCRIPT_ALERT = "1" 34 | LF_SMTPAUTH = "5" 35 | LF_SSHD = "5" 36 | LF_SUHOSIN = "0" 37 | LF_SYMLINK = "0" 38 | LF_WEBMIN = "0" 39 | LF_WEBMIN_EMAIL_ALERT = "0" 40 | LOGSCANNER = "0" 41 | LT_IMAPD = "0" 42 | LT_POP3D = "0" 43 | PACKET_FILTER = "1" 44 | PORTFLOOD = "" 45 | PS_INTERVAL = "0" 46 | PT_ALL_USERS = "1" 47 | PT_LIMIT = "60" 48 | RELAYHOSTS = "0" 49 | RESTRICT_SYSLOG = "3" 50 | RESTRICT_UI = "1" 51 | RT_AUTHRELAY_ALERT = "1" 52 | RT_LOCALHOSTRELAY_ALERT = "1" 53 | RT_LOCALRELAY_ALERT = "1" 54 | RT_POPRELAY_ALERT = "1" 55 | RT_RELAY_ALERT = "1" 56 | SMTP_ALLOWLOCAL = "1" 57 | SMTP_BLOCK = "1" 58 | ST_ENABLE = "1" 59 | SYNFLOOD = "0" 60 | SYSLOG_CHECK = "300" 61 | UDPFLOOD = "0" 62 | UID_INTERVAL = "0" 63 | -------------------------------------------------------------------------------- /csf/csf.allow: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables. 20 | # One IP address per line. 21 | # CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24). 22 | # Only list IP addresses, not domain names (they will be ignored) 23 | # 24 | # Advanced port+ip filtering allowed with the following format 25 | # tcp/udp|in/out|s/d=port,port,...|s/d=ip 26 | # See readme.txt for more information 27 | # 28 | # Note: IP addressess listed in this file will NOT be ignored by lfd, so they 29 | # can still be blocked. If you do not want lfd to block an IP address you must 30 | # add it to csf.ignore 31 | 32 | Include /etc/csf/cpanel.comodo.allow 33 | Include /etc/csf/cpanel.allow 34 | -------------------------------------------------------------------------------- /cmc/INSTALL.txt: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | 20 | 1. Download and install cmc: 21 | 22 | cd /usr/src 23 | rm -fv /usr/src/cmc.tgz 24 | wget http://download.configserver.com/cmc.tgz 25 | tar -xzf cmc.tgz 26 | cd cmc 27 | sh install.sh 28 | rm -Rfv /usr/src/cmc* 29 | 30 | 2. Login to WHM and scroll to the bottom of the left hand menu and you should see "ConfigServer ModSecurity Control" 31 | 32 | 33 | If you want to uninstall, simply: 34 | 35 | cd /usr/src 36 | rm -fv /usr/src/cmc.tgz 37 | wget http://download.configserver.com/cmc.tgz 38 | tar -xzf cmc.tgz 39 | cd cmc 40 | sh uninstall.sh 41 | rm -Rfv /usr/src/cmc* 42 | 43 | Note: This won't remove the mod_security files and rules which you will need to do manually within /usr/local/apache/conf/ 44 | -------------------------------------------------------------------------------- /csf/csf.dyndns: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following FQDN's will be allowed through the firewall. This is controlled 20 | # by lfd which checks the DNS resolution of the FQDN and adds the ip address 21 | # into the ALLOWDYNIN and ALLOWDYNOUT iptables chains. lfd will check for IP 22 | # updates every DYNDNS seconds if set. 23 | # 24 | # If the FQDN has multiple A records then all of the IP addresses will be 25 | # processed. If IPV6 is enabled and the perl module Socket6 from cpan.org is 26 | # installed, then all IPv6 AAAA IP address records will also be allowed. 27 | # 28 | # Only list fully qualified domain names (FQDN's) in this file, either on their 29 | # own to allow full access, or using Advanced Allow/Deny Filters (see 30 | # readme.txt) 31 | # 32 | -------------------------------------------------------------------------------- /csf/csf.logfiles: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following is a list of log files for the LOGSCANNER feature 20 | 21 | # All: 22 | /var/log/messages 23 | /var/log/lfd.log 24 | /var/log/cxswatch.log 25 | 26 | # RedHat: 27 | /var/log/secure 28 | 29 | # Debian/Ubuntu: 30 | /var/log/auth.log 31 | /var/log/daemon.log 32 | /var/log/syslog 33 | 34 | # cPanel: 35 | /usr/local/cpanel/logs/error_log 36 | /var/log/exim_paniclog 37 | 38 | # DirectAdmin: 39 | /var/log/directadmin/error.log 40 | /var/log/directadmin/security.log 41 | /var/log/exim/paniclog 42 | 43 | # InterWorx 44 | /usr/local/interworx/var/log/error.log 45 | 46 | # CyberPanel 47 | /home/cyberpanel/error-logs.txt 48 | /usr/local/lscp/cyberpanel/logs/error.log 49 | /usr/local/lscp/cyberpanel/logs/stderr.log 50 | -------------------------------------------------------------------------------- /csf/profiles/protection_low.conf: -------------------------------------------------------------------------------- 1 | # Profile: This provides a low security level configuration that sets high 2 | # levels for login failure blocking and disables some of the more advanced 3 | # features to provide a more simple configuration. It also disables a large 4 | # number of alert emails. This profile can decrease the rate of false-positive 5 | # blocks and reduced the load lfd places on the server, but is much less secure 6 | AT_ALERT = "0" 7 | AUTO_UPDATES = "0" 8 | CONNLIMIT = "" 9 | CT_LIMIT = "0" 10 | ICMP_IN = "1" 11 | ICMP_IN_RATE = "0" 12 | ICMP_OUT = "1" 13 | ICMP_OUT_RATE = "0" 14 | LF_APACHE_403 = "0" 15 | LF_APACHE_404 = "0" 16 | LF_BIND = "0" 17 | LF_BLOCKINONLY = "0" 18 | LF_CONSOLE_EMAIL_ALERT = "0" 19 | LF_CPANEL = "20" 20 | LF_CPANEL_ALERT = "0" 21 | LF_CXS = "0" 22 | LF_DIRWATCH = "0" 23 | LF_EXIMSYNTAX = "20" 24 | LF_FTPD = "20" 25 | LF_HTACCESS = "20" 26 | LF_IMAPD = "20" 27 | LF_INTEGRITY = "0" 28 | LF_MODSEC = "20" 29 | LF_NETBLOCK = "0" 30 | LF_PERMBLOCK = "0" 31 | LF_POP3D = "20" 32 | LF_QOS = "0" 33 | LF_QUEUE_ALERT = "0" 34 | LF_SCRIPT_ALERT = "0" 35 | LF_SMTPAUTH = "20" 36 | LF_SSHD = "20" 37 | LF_SUHOSIN = "0" 38 | LF_SYMLINK = "0" 39 | LF_WEBMIN = "0" 40 | LF_WEBMIN_EMAIL_ALERT = "0" 41 | LOGSCANNER = "0" 42 | LT_IMAPD = "0" 43 | LT_POP3D = "0" 44 | PACKET_FILTER = "0" 45 | PORTFLOOD = "" 46 | PS_INTERVAL = "0" 47 | PT_LIMIT = "0" 48 | RELAYHOSTS = "0" 49 | RESTRICT_SYSLOG = "2" 50 | RESTRICT_UI = "0" 51 | RT_AUTHRELAY_ALERT = "0" 52 | RT_LOCALHOSTRELAY_ALERT = "0" 53 | RT_LOCALRELAY_ALERT = "0" 54 | RT_POPRELAY_ALERT = "0" 55 | RT_RELAY_ALERT = "0" 56 | SMTP_BLOCK = "0" 57 | ST_ENABLE = "0" 58 | SYNFLOOD = "0" 59 | UDPFLOOD = "0" 60 | UID_INTERVAL = "0" 61 | -------------------------------------------------------------------------------- /csf/cpanel.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables and ignored by 20 | # lfd to allow for unimpeded access to the cPanel license service 21 | # 22 | # Each IP address belongs to cPanel and is responsibly for authenticating 23 | # cPanel licenses 24 | # 25 | # Note: This file will be replaced when csf is upgraded - do NOT make any 26 | # changes to this file. If you do not want to whitelist these IP addresses you 27 | # need to remove the Include line from csf.ignore as this is only added there 28 | # once 29 | 30 | 208.74.123.2 # cPanel Auth Server 31 | 208.74.123.3 # cPanel Auth Server 32 | 208.74.121.82 # cPanel Auth Server 33 | 208.74.121.83 # cPanel Auth Server 34 | 208.74.121.85 # cPanel Auth Server 35 | 208.74.121.86 # cPanel Auth Server 36 | -------------------------------------------------------------------------------- /csf/profiles/protection_high.conf: -------------------------------------------------------------------------------- 1 | # Profile: This provides a high security level configuration that sets low 2 | # levels for failure blocking and enables some of the more advanced features to 3 | # provide a more secure configuration. It also enables a large number of alert 4 | # emails. This profile can increase the rate of false-positive blocks 5 | AT_ALERT = "1" 6 | AUTO_UPDATES = "1" 7 | CT_LIMIT = "300" 8 | DROP_LOGGING = "1" 9 | DROP_ONLYRES = "0" 10 | ICMP_IN_RATE = "1/s" 11 | IGNORE_ALLOW = "0" 12 | LF_BLOCKINONLY = "0" 13 | LF_CONSOLE_EMAIL_ALERT = "1" 14 | LF_CPANEL = "3" 15 | LF_CPANEL_ALERT = "1" 16 | LF_CSF = "1" 17 | LF_CXS = "1" 18 | LF_DIRWATCH = "300" 19 | LF_DISTATTACK = "1" 20 | LF_DISTFTP = "5" 21 | LF_DISTSMTP = "5" 22 | LF_EXIMSYNTAX = "10" 23 | LF_FTPD = "5" 24 | LF_HTACCESS = "5" 25 | LF_IMAPD = "5" 26 | LF_INTEGRITY = "3600" 27 | LF_MODSEC = "3" 28 | LF_NETBLOCK = "1" 29 | LF_PERMBLOCK = "1" 30 | LF_POP3D = "5" 31 | LF_QUEUE_ALERT = "2000" 32 | LF_SCRIPT_ALERT = "1" 33 | LF_SMTPAUTH = "5" 34 | LF_SSH_EMAIL_ALERT = "1" 35 | LF_SSHD = "3" 36 | LF_SU_EMAIL_ALERT = "1" 37 | LF_SYMLINK = "5" 38 | LF_WEBMIN = "3" 39 | LF_WEBMIN_EMAIL_ALERT = "1" 40 | LOGSCANNER = "1" 41 | LOGSCANNER_INTERVAL = "hourly" 42 | PACKET_FILTER = "1" 43 | PS_EMAIL_ALERT = "1" 44 | PS_INTERVAL = "300" 45 | PT_ALL_USERS = "1" 46 | PT_DELETED = "1" 47 | PT_FORKBOMB = "250" 48 | PT_LIMIT = "60" 49 | PT_SKIP_HTTP = "0" 50 | RELAYHOSTS = "0" 51 | RESTRICT_SYSLOG = "3" 52 | RESTRICT_UI = "1" 53 | RT_AUTHRELAY_ALERT = "1" 54 | RT_LOCALHOSTRELAY_ALERT = "1" 55 | RT_POPRELAY_ALERT = "1" 56 | RT_RELAY_ALERT = "1" 57 | SMTP_BLOCK = "1" 58 | SYSLOG_CHECK = "300" 59 | UDPFLOOD = "1" 60 | UDPFLOOD_LOGGING = "1" 61 | UID_INTERVAL = "600" 62 | -------------------------------------------------------------------------------- /cmc/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | 21 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 22 | cd / 23 | /usr/local/cpanel/bin/unregister_appconfig cmc 24 | else 25 | if [ ! -e "/var/cpanel/apps/cmc.conf" ]; then 26 | /bin/rm -fv /var/cpanel/apps/cmc.conf 27 | fi 28 | fi 29 | 30 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi 31 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmcversion.txt 32 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmc 33 | 34 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc.cgi 35 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmcversion.txt 36 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc 37 | 38 | echo "ConfigServer Mod Security has been uninstalled." 39 | exit 40 | -------------------------------------------------------------------------------- /cmq/cmq.c: -------------------------------------------------------------------------------- 1 | /* 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | */ 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | main () 25 | { 26 | FILE *adminFile; 27 | uid_t ruid; 28 | char name[100]; 29 | struct passwd *pw; 30 | int admin = 0; 31 | 32 | ruid = getuid(); 33 | pw = getpwuid(ruid); 34 | 35 | adminFile=fopen ("/usr/local/directadmin/data/admin/admin.list","r"); 36 | if (adminFile!=NULL) 37 | { 38 | while(fgets(name,100,adminFile) != NULL) 39 | { 40 | int end = strlen(name) - 1; 41 | if (end >= 0 && name[end] == '\n') name[end] = '\0'; 42 | //printf("Name [%s]\n", name); 43 | if (strcmp(pw->pw_name, name) == 0) admin = 1; 44 | } 45 | fclose(adminFile); 46 | } 47 | if (admin == 1) 48 | { 49 | setuid(0); 50 | setgid(0); 51 | 52 | execv("/usr/local/directadmin/plugins/cmq/exec/da_cmq.cgi", NULL); 53 | } else { 54 | printf("Permission denied [User:%s UID:%d]\n", pw->pw_name, ruid); 55 | } 56 | return 0; 57 | } 58 | -------------------------------------------------------------------------------- /csf/csf.fignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following is a list of files that lfd directory watching will ignore. You 20 | # must specify the full path to the file 21 | # 22 | # You can also use perl regular expression pattern matching, for example: 23 | # /tmp/clamav.* 24 | # /tmp/.*\.wrk 25 | # 26 | # Remember that you will need to escape special characters (precede them with a 27 | # backslash) such as \. \? 28 | # 29 | # Pattern matching will only occur with strings containing an asterix (*), 30 | # otherwise full file path matching will be applied 31 | # 32 | # You can also add entries to ignore files owner by a particular user by 33 | # preceding it with user:, for example: 34 | # user:bob 35 | # 36 | # Note: files owned by root are ignored 37 | 38 | #/tmp/\.horde 39 | #/tmp/\.horde/.* 40 | #/tmp/yarn--[\d\-\.]+/(node|yarn) 41 | #/tmp/\.spamassassin.* 42 | -------------------------------------------------------------------------------- /uninstallers/cmc/cmc_uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | 21 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 22 | cd / 23 | /usr/local/cpanel/bin/unregister_appconfig cmc 24 | else 25 | if [ ! -e "/var/cpanel/apps/cmc.conf" ]; then 26 | /bin/rm -fv /var/cpanel/apps/cmc.conf 27 | fi 28 | fi 29 | 30 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi 31 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmcversion.txt 32 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmc 33 | 34 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc.cgi 35 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmcversion.txt 36 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc 37 | 38 | echo "ConfigServer Mod Security has been uninstalled." 39 | exit 40 | -------------------------------------------------------------------------------- /csf/cpanel.comodo.ignore: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following IP addresses will be allowed through iptables and ignored by 20 | # lfd to allow for unimpeded access to cPanels free SSL certificate service 21 | # available in cPanel v58+ 22 | # 23 | # Each IP address belongs to the Sectigo SSL provider (formerly Comodo) 24 | # 25 | # Note: This file will be replaced when csf is upgraded - do NOT make any 26 | # changes to this file. If you do not want to whitelist these IP addresses you 27 | # need to remove the Include line from csf.ignore as this is only added there 28 | # once 29 | 30 | 178.255.81.12 # Sectigo SSL Resolver 31 | 178.255.81.13 # Sectigo SSL Resolver 32 | 91.199.212.52 # Sectigo DCV Server 33 | 91.199.212.132 # Sectigo DCV Server 34 | 199.66.201.132 # Sectigo DCV Backup Server 35 | 2a02:1788:400:1ce4::/64 # Sectigo DCV Server 36 | 2a02:1788:400:1ce4::/64 # Sectigo DCV Server 37 | -------------------------------------------------------------------------------- /csf/ui/server.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQConc3izqY4r9e5 3 | kItdiPSQoa4TB+C5MoI/VJVVLhseXZbt9apnzH1pZKoPACwnr+Ue+GIXsZ230Qxu 4 | zbxvX78qm/uCFwNXziE9fGmoviGZfSYTE+EJFVb2ESD4VG3JhzXbNdPeJ1Oxvhkn 5 | q/c5GBQuNhwU/xhteAfMdgHiVjDeeEWfyFt2+MMz66Wr78EUmpanHrUdDKvvRazh 6 | 3DP4clyQjBUWgm1ovQGDDtYUIktJ/PXxKwV+NkNVwNVWv6Of/pN69+5cMChkIDmd 7 | 0X/0rRPzNMXhCdstKA5APYlbSUAQJVo8Am3Sz3vXqxA/w7O5fDyzGCpWG/+vqn6E 8 | uQDeRuODAgMBAAECggEBAIF5y2Lh89mLjUc8qweD5ug4foa2geUz17fxp0nlQYWr 9 | r/3BqrxR1etcFQm3xDAlbPa/G/O9u7IuoDFlYdDT4ONDK3nVWgfOjM+9/RRKC1rl 10 | MptrpF1pOYFx3bNSgYtCfCR7zNjFsgrGQmKoNgptZvGlMyMcTxGgHbzu0LuQG653 11 | xL12mA4vhTS1ndtWPBSDmipxzwJmWwxxcGvAj+VOAQcyk4z2VJcyzByuZCPZ7fHC 12 | zaoXDQTIWl0KC54i94BuJZ4GGdR1DiZrzaCm/j9RFO164sD+AHdoJTBsXySC+eSP 13 | yS/uRGszZPm00+GkPGWPshTOQLuT5XPwytdEOH/5nKECgYEA3F4kvV+xlQr/ffql 14 | V/aqpMCDXQs00u3yPAb/on2hXmWBKDFTAPY4BHNaieBzodDRRNw5Yv0hTWut/MAW 15 | vz5SETKP9Nv0b7gfGkDVWPzd3qv5ae/yMWziE8mUC8LjF0b6Jx0SzbhJcNdTVn6q 16 | Hyp6rcCNIyAvgxZXnTVdpU1KP38CgYEAw+F6KSA2ieNbsMXsWBeHe/kQDbdt7Z+7 17 | 17/ax4kHsneIinQKPVqdEFqiPqN8G6suvzLpvoZDgEuE0AqXHq6aECYzzX7GHb5o 18 | 1jWWemdsIbsixwOqnCa+Vak4IiA7hIm29lJwoYAKnDhu70xNDP15xuwxWJgKEVMH 19 | o42WFWerXf0CgYEA2MKBwQTv2HsI9RImsW+gSo5SqKLtQs1rCECaE2sf34pYkQBz 20 | dO68CySsWhK9qt2L+v/kMspqh4zzhzorJdJXRzNFBsWUmo+xiFFdijqwwubGXr32 21 | rUc82dneFfONDMh0JyUh6djr5GLpRpsxG5bdNSvBqFtwYLEJXUmw43gzIGECgYBf 22 | +y8x0bAHttlp8EHUFIt1yt/76KK76iZQHJlmZpXX9Ex6k0ulLq6BofeYO+GHaUT5 23 | uUfh7MZMqjSFAHt2NFYXjbCahAEt9+xE8nMuvVi12o26+OfzpeRj8wwnZKXlVtnJ 24 | LzIzYJtSWzC4nymuMNIoD/pKEA322TmIAcvF50uIPQKBgAjh0LwV2or502Z02rjb 25 | jPB/8tFa0i+vHIr3Pmewn1Y1zF+4JHz4GAtZBAyxA89RmbDISBc1pNCS/8IAV6g2 26 | 1JIi983nPNQlxl55z7Wp3FZiPc/XKVPPcFvLfxZY6dfQTnNhOWNMLN9L0Nc8/496 27 | 5VFdA8n2Xi46eV7FcuAIUogd 28 | -----END PRIVATE KEY----- 29 | -------------------------------------------------------------------------------- /csf/uninstall.generic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | rm -Rfv /etc/csf /usr/local/csf /var/lib/csf 56 | 57 | echo 58 | echo "...Done" 59 | -------------------------------------------------------------------------------- /csf/restricted.txt: -------------------------------------------------------------------------------- 1 | BIND_LOG 2 | BLOCK_REPORT 3 | CHATTR 4 | CLUSTER_KEY 5 | CLUSTER_LOCALADDR 6 | CLUSTER_MASTER 7 | CLUSTER_PORT 8 | CLUSTER_RECVFROM 9 | CLUSTER_SENDTO 10 | CPANEL_ACCESSLOG 11 | CPANEL_LOG 12 | CURL 13 | CUSTOM1_LOG 14 | CUSTOM2_LOG 15 | CUSTOM3_LOG 16 | CUSTOM4_LOG 17 | CUSTOM5_LOG 18 | CUSTOM6_LOG 19 | CUSTOM7_LOG 20 | CUSTOM8_LOG 21 | CUSTOM9_LOG 22 | DD 23 | DEBUG 24 | DIRECTADMIN 25 | DIRECTADMIN_LOG 26 | DIRECTADMIN_LOG_P 27 | DIRECTADMIN_LOG_R 28 | DIRECTADMIN_LOG_S 29 | FTPD_LOG 30 | GENERIC 31 | GREP 32 | GUNZIP 33 | HOST 34 | HTACCESS_LOG 35 | IFCONFIG 36 | IMAPD_LOG 37 | IP 38 | IP6TABLES 39 | IP6TABLES_RESTORE 40 | IP6TABLES_SAVE 41 | IPSET 42 | IPTABLES 43 | IPTABLES_LOG 44 | IPTABLES_RESTORE 45 | IPTABLES_SAVE 46 | LF_CPANEL_ALERT_ACTION 47 | LF_DIST_ACTION 48 | LF_SCRIPT_ACTION 49 | LS 50 | MD5SUM 51 | MESSENGERV3PHPHANDLER 52 | MESSENGERV3RESTART 53 | MESSENGERV3TEST 54 | MODPROBE 55 | MODSEC_LOG 56 | NETSTAT 57 | OLD_REAPER 58 | POP3D_LOG 59 | PORTS_bind 60 | PORTS_cpanel 61 | PORTS_cxs 62 | PORTS_directadmin 63 | PORTS_eximsyntax 64 | PORTS_ftpd 65 | PORTS_htpasswd 66 | PORTS_imapd 67 | PORTS_mod_qos 68 | PORTS_mod_security 69 | PORTS_pop3d 70 | PORTS_smtpauth 71 | PORTS_sshd 72 | PORTS_suhosin 73 | PORTS_symlink 74 | PORTS_webmin 75 | PS 76 | PT_DELETED_ACTION 77 | PT_LOAD_ACTION 78 | PT_USER_ACTION 79 | RESTRICT_UI 80 | RT_ACTION 81 | SCRIPT_LOG 82 | SENDMAIL 83 | SMTPAUTH_LOG 84 | SMTPRELAY_LOG 85 | SSHD_LOG 86 | ST_DISKW_DD 87 | ST_MYSQL_HOST 88 | ST_MYSQL_PASS 89 | ST_MYSQL_USER 90 | SU_LOG 91 | SUHOSIN_LOG 92 | SYSLOG_LOG 93 | SYSTEMCTL 94 | TAIL 95 | TAR 96 | UI_CSE 97 | UI_CXS 98 | UI_PASS 99 | UI_USER 100 | UNBLOCK_REPORT 101 | UNZIP 102 | VMSTAT 103 | WEBMIN_LOG 104 | WGET 105 | ZGREP 106 | -------------------------------------------------------------------------------- /uninstallers/csf/uninstall.generic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | rm -Rfv /etc/csf /usr/local/csf /var/lib/csf 56 | 57 | echo 58 | echo "...Done" 59 | -------------------------------------------------------------------------------- /uninstallers/cxs/uninstall.generic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling cxs..." 3 | echo 4 | 5 | if test `cat /proc/1/comm` = "systemd" 6 | then 7 | systemctl disable cxswatch.service 8 | systemctl disable pure-uploadscript.service 9 | systemctl stop cxswatch.service 10 | systemctl stop pure-uploadscript.service 11 | rm -fv /usr/lib/systemd/system/cxswatch.service 12 | rm -fv /usr/lib/systemd/system/pure-uploadscript.service 13 | systemctl daemon-reload 14 | else 15 | if [ -f /etc/redhat-release ]; then 16 | /etc/init.d/pure-uploadscript stop 17 | chkconfig pure-uploadscript off 18 | chkconfig pure-uploadscript --del 19 | rm -fv /etc/init.d/pure-uploadscript 20 | 21 | /etc/init.d/cxswatch stop 22 | /sbin/chkconfig cxswatch off 23 | /sbin/chkconfig cxswatch --del 24 | rm -fv /etc/init.d/cxswatch 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | /etc/init.d/pure-uploadscript stop 27 | update-rc.d -f pure-uploadscript remove 28 | rm -fv /etc/init.d/pure-uploadscript 29 | elif [ -f /etc/gentoo-release ]; then 30 | /etc/init.d/pure-uploadscript stop 31 | rc-update del pure-uploadscript default 32 | rm -fv /etc/init.d/pure-uploadscript 33 | else 34 | /etc/init.d/pure-uploadscript stop 35 | chkconfig pure-uploadscript off 36 | chkconfig pure-uploadscript --del 37 | rm -fv /etc/init.d/pure-uploadscript 38 | 39 | /etc/init.d/cxswatch stop 40 | /sbin/chkconfig cxswatch off 41 | /sbin/chkconfig cxswatch --del 42 | rm -fv /etc/init.d/cxswatch 43 | fi 44 | fi 45 | 46 | rm -fv /usr/sbin/cxs 47 | rm -fv /etc/cron.d/cxs-cron 48 | rm -fv /etc/cron.d/cxsdb-cron 49 | rm -Rfv /etc/cxs 50 | rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm 51 | cd 52 | 53 | echo 54 | echo "...Done" 55 | -------------------------------------------------------------------------------- /csf/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | 21 | echo 22 | echo "Selecting installer..." 23 | echo 24 | 25 | if [ -e "/usr/local/cpanel/version" ]; then 26 | echo "Running csf cPanel installer" 27 | echo 28 | sh install.cpanel.sh 29 | elif [ -e "/usr/local/directadmin/directadmin" ]; then 30 | echo "Running csf DirectAdmin installer" 31 | echo 32 | sh install.directadmin.sh 33 | elif [ -e "/usr/local/interworx" ]; then 34 | echo "Running csf InterWorx installer" 35 | echo 36 | sh install.interworx.sh 37 | elif [ -e "/usr/local/cwpsrv" ]; then 38 | echo "Running csf CentOS Web Panel installer" 39 | echo 40 | sh install.cwp.sh 41 | elif [ -e "/usr/local/vesta" ]; then 42 | echo "Running csf VestaCP installer" 43 | echo 44 | sh install.vesta.sh 45 | elif [ -e "/usr/local/CyberCP" ]; then 46 | echo "Running csf CyberPanel installer" 47 | echo 48 | sh install.cyberpanel.sh 49 | else 50 | echo "Running csf generic installer" 51 | echo 52 | sh install.generic.sh 53 | fi 54 | -------------------------------------------------------------------------------- /csf/pt_deleted_action.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | # Example PT_DELETED_ACTION script 21 | use strict; 22 | 23 | my $exe = $ARGV[0]; 24 | my $pid = $ARGV[1]; 25 | my $user = $ARGV[2]; 26 | my $ppid = $ARGV[3]; 27 | 28 | if ($exe =~ m[^/usr/libexec/dovecot/imap-login]) {exec("/etc/init.d/dovecot restart")} 29 | elsif ($exe =~ m[^/usr/libexec/dovecot/pop3-login]) {exec("/etc/init.d/dovecot restart")} 30 | elsif ($exe =~ m[^/usr/sbin/pure-ftpd]) {exec("/etc/init.d/pure-ftpd restart")} 31 | elsif ($exe =~ m[^/usr/sbin/pure-authd]) {exec("/etc/init.d/pure-ftpd restart")} 32 | elsif ($exe =~ m[^/bin/dbus-daemon]) {exec("/etc/init.d/messagebus restart")} 33 | elsif ($exe =~ m[^/usr/sbin/hald]) {exec("/etc/init.d/haldaemon restart")} 34 | elsif ($exe =~ m[^/usr/sbin/mysqld]) {exec("/etc/init.d/mysql restart")} 35 | elsif ($exe =~ m[^/usr/sbin/exim]) {exec("/etc/init.d/exim restart")} 36 | 37 | exit; 38 | 39 | ############################################################################### 40 | -------------------------------------------------------------------------------- /csf/interworx/Ctrl/Nodeworx/Configservercsf.php: -------------------------------------------------------------------------------- 1 | . 20 | ############################################################################### 21 | */ 22 | 23 | class Ctrl_Nodeworx_Configservercsf extends Ctrl_Nodeworx_Plugin 24 | { 25 | 26 | protected function _init() 27 | { 28 | chmod('/usr/local/interworx/plugins/configservercsf', 0711); 29 | chmod('/usr/local/interworx/plugins/configservercsf/lib', 0711); 30 | chmod('/usr/local/interworx/plugins/configservercsf/lib/index.pl', 0711); 31 | chmod('/usr/local/interworx/plugins/configservercsf/lib/reseller.pl', 0711); 32 | } 33 | 34 | public function launchAction() 35 | { 36 | $this->getView()->assign('title', 'Configservercsf Services'); 37 | $this->getView()->assign('template', 'admin'); 38 | } 39 | 40 | public function indexAction() 41 | { 42 | if (IW::NW()->isReseller()) { 43 | $this->_getPlugin()->runReseller(); 44 | } else { 45 | $this->_getPlugin()->runAdmin(); 46 | } 47 | exit; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /cmq/cmq/configserver.css: -------------------------------------------------------------------------------- 1 | .icon-configserver { 2 | color: #990000; 3 | } 4 | .btn-default:active, 5 | .btn-default:visited, 6 | .btn-default:focus, 7 | .btn-default { 8 | background:#FFFFFF; 9 | border-radius:3px; 10 | border:1px solid #A6C150; 11 | color:#990000 !important; 12 | } 13 | .btn-default:hover { 14 | border:1px solid #A6C150; 15 | background: #F5F5F5; 16 | } 17 | input[type=text], select { 18 | -webkit-transition: all 0.30s ease-in-out; 19 | -moz-transition: all 0.30s ease-in-out; 20 | -ms-transition: all 0.30s ease-in-out; 21 | -o-transition: all 0.30s ease-in-out; 22 | transition: all 0.30s ease-in-out; 23 | border-radius:3px; 24 | outline: none; 25 | padding: 3px 0px 3px 3px; 26 | margin: 5px 1px 3px 0px; 27 | border: 1px solid #990000; 28 | } 29 | input[type=text]:focus, select:focus { 30 | box-shadow: 0 0 5px #CC0000; 31 | padding: 3px 0px 3px 3px; 32 | margin: 5px 1px 3px 0px; 33 | border: 1px solid #990000; 34 | } 35 | .td-btn { 36 | width: 200px; 37 | } 38 | .td-text { 39 | } 40 | th { 41 | background: #F4F4EA; 42 | } 43 | .table tbody>tr>td { 44 | vertical-align: middle; 45 | } 46 | .panel-default > .panel-heading-cxs { 47 | font-weight: bold; 48 | background: #F4F4EA; 49 | } 50 | .panel-default > .panel-footer-cxs { 51 | font-weight: bold; 52 | background: #F4F4EA; 53 | } 54 | #loader { 55 | position: absolute; 56 | left: 50%; 57 | top: 50%; 58 | z-index: 1; 59 | margin: -75px 0 0 -75px; 60 | border: 16px solid #F4F4EA; 61 | border-radius: 50%; 62 | border-top: 16px solid #990000; 63 | border-bottom: 16px solid #990000; 64 | width: 120px; 65 | height: 120px; 66 | -webkit-animation: spin 2s linear infinite; 67 | animation: spin 2s linear infinite; 68 | } 69 | @-webkit-keyframes spin { 70 | 0% { -webkit-transform: rotate(0deg); } 71 | 100% { -webkit-transform: rotate(360deg); } 72 | } 73 | @keyframes spin { 74 | 0% { transform: rotate(0deg); } 75 | 100% { transform: rotate(360deg); } 76 | } 77 | -------------------------------------------------------------------------------- /csf/csf.redirect: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (C) 2006-2025 Jonathan Michaelson 3 | # 4 | # https://github.com/waytotheweb/scripts 5 | # 6 | # This program is free software; you can redistribute it and/or modify it under 7 | # the terms of the GNU General Public License as published by the Free Software 8 | # Foundation; either version 3 of the License, or (at your option) any later 9 | # version. 10 | # 11 | # This program is distributed in the hope that it will be useful, but WITHOUT 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 | # details. 15 | # 16 | # You should have received a copy of the GNU General Public License along with 17 | # this program; if not, see . 18 | ############################################################################### 19 | # The following is a list of port and/or IP address assignments to direct 20 | # traffic to alternative ports/IP addresses 21 | # 22 | # Requirements: 23 | # nat tables 24 | # ipt_DNAT iptables module 25 | # ipt_SNAT iptables module 26 | # ipt_REDIRECT iptables module 27 | # 28 | # The following are the allowed redirection formats 29 | # 30 | # DNAT (redirect from one IP address to a different one): 31 | # IPx|*|IPy|*|tcp/udp - To IPx redirects to IPy 32 | # IPx|portA|IPy|portB|tcp/udp - To IPx to portA redirects to IPy portB 33 | # 34 | # DNAT examples: 35 | # 192.168.254.62|*|10.0.0.1|*|tcp 36 | # 192.168.254.62|666|10.0.0.1|25|tcp 37 | # 38 | # REDIRECT (redirect from port to a different one): 39 | # IPx|portA|*|portB|tcp/udp - To IPx to portA redirects to portB 40 | # *|portA|*|portB|tcp/udp - To portA redirects to portB 41 | # 42 | # REDIRECT examples: 43 | # 192.168.254.60|666|*|25|tcp 44 | # *|666|*|25|tcp 45 | # 46 | # See readme.txt for more information 47 | # 48 | -------------------------------------------------------------------------------- /uninstallers/cxs/uninstall.directadmin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling cxs..." 3 | echo 4 | 5 | if test `cat /proc/1/comm` = "systemd" 6 | then 7 | systemctl disable cxswatch.service 8 | systemctl disable pure-uploadscript.service 9 | systemctl stop cxswatch.service 10 | systemctl stop pure-uploadscript.service 11 | rm -fv /usr/lib/systemd/system/cxswatch.service 12 | rm -fv /usr/lib/systemd/system/pure-uploadscript.service 13 | systemctl daemon-reload 14 | else 15 | if [ -f /etc/redhat-release ]; then 16 | /etc/init.d/pure-uploadscript stop 17 | chkconfig pure-uploadscript off 18 | chkconfig pure-uploadscript --del 19 | rm -fv /etc/init.d/pure-uploadscript 20 | 21 | /etc/init.d/cxswatch stop 22 | /sbin/chkconfig cxswatch off 23 | /sbin/chkconfig cxswatch --del 24 | rm -fv /etc/init.d/cxswatch 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | /etc/init.d/pure-uploadscript stop 27 | update-rc.d -f pure-uploadscript remove 28 | rm -fv /etc/init.d/pure-uploadscript 29 | elif [ -f /etc/gentoo-release ]; then 30 | /etc/init.d/pure-uploadscript stop 31 | rc-update del pure-uploadscript default 32 | rm -fv /etc/init.d/pure-uploadscript 33 | else 34 | /etc/init.d/pure-uploadscript stop 35 | chkconfig pure-uploadscript off 36 | chkconfig pure-uploadscript --del 37 | rm -fv /etc/init.d/pure-uploadscript 38 | 39 | /etc/init.d/cxswatch stop 40 | /sbin/chkconfig cxswatch off 41 | /sbin/chkconfig cxswatch --del 42 | rm -fv /etc/init.d/cxswatch 43 | fi 44 | fi 45 | 46 | rm -fv /usr/sbin/cxs 47 | rm -Rfv /usr/local/directadmin/plugins/cxs 48 | rm -fv /etc/cron.d/cxs-cron 49 | rm -fv /etc/cron.d/cxsdb-cron 50 | rm -Rfv /etc/cxs 51 | rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm 52 | cd 53 | 54 | echo 55 | echo "...Done" 56 | -------------------------------------------------------------------------------- /csf/uninstall.directadmin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | sed -i 's/lfd=ON/lfd=OFF/' /usr/local/directadmin/data/admin/services.status 6 | 7 | /usr/sbin/csf -f 8 | 9 | if test `cat /proc/1/comm` = "systemd" 10 | then 11 | systemctl disable csf.service 12 | systemctl disable lfd.service 13 | systemctl stop lfd.service 14 | systemctl stop csf.service 15 | 16 | rm -fv /usr/lib/systemd/system/csf.service 17 | rm -fv /usr/lib/systemd/system/lfd.service 18 | systemctl daemon-reload 19 | else 20 | if [ -f /etc/redhat-release ]; then 21 | /sbin/chkconfig csf off 22 | /sbin/chkconfig lfd off 23 | /sbin/chkconfig csf --del 24 | /sbin/chkconfig lfd --del 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | update-rc.d -f lfd remove 27 | update-rc.d -f csf remove 28 | elif [ -f /etc/gentoo-release ]; then 29 | rc-update del lfd default 30 | rc-update del csf default 31 | elif [ -f /etc/slackware-version ]; then 32 | rm -vf /etc/rc.d/rc3.d/S80csf 33 | rm -vf /etc/rc.d/rc4.d/S80csf 34 | rm -vf /etc/rc.d/rc5.d/S80csf 35 | rm -vf /etc/rc.d/rc3.d/S85lfd 36 | rm -vf /etc/rc.d/rc4.d/S85lfd 37 | rm -vf /etc/rc.d/rc5.d/S85lfd 38 | else 39 | /sbin/chkconfig csf off 40 | /sbin/chkconfig lfd off 41 | /sbin/chkconfig csf --del 42 | /sbin/chkconfig lfd --del 43 | fi 44 | rm -fv /etc/init.d/csf 45 | rm -fv /etc/init.d/lfd 46 | fi 47 | 48 | rm -fv /etc/chkserv.d/lfd 49 | rm -fv /usr/sbin/csf 50 | rm -fv /usr/sbin/lfd 51 | rm -fv /etc/cron.d/csf_update 52 | rm -fv /etc/cron.d/lfd-cron 53 | rm -fv /etc/cron.d/csf-cron 54 | rm -Rfv /usr/local/directadmin/plugins/csf 55 | rm -fv /etc/logrotate.d/lfd 56 | rm -fv /usr/local/man/man1/csf.man.1 57 | 58 | rm -Rfv /etc/csf /usr/local/csf /var/lib/csf 59 | 60 | echo 61 | echo "...Done" 62 | -------------------------------------------------------------------------------- /uninstallers/csf/uninstall.directadmin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | sed -i 's/lfd=ON/lfd=OFF/' /usr/local/directadmin/data/admin/services.status 6 | 7 | /usr/sbin/csf -f 8 | 9 | if test `cat /proc/1/comm` = "systemd" 10 | then 11 | systemctl disable csf.service 12 | systemctl disable lfd.service 13 | systemctl stop lfd.service 14 | systemctl stop csf.service 15 | 16 | rm -fv /usr/lib/systemd/system/csf.service 17 | rm -fv /usr/lib/systemd/system/lfd.service 18 | systemctl daemon-reload 19 | else 20 | if [ -f /etc/redhat-release ]; then 21 | /sbin/chkconfig csf off 22 | /sbin/chkconfig lfd off 23 | /sbin/chkconfig csf --del 24 | /sbin/chkconfig lfd --del 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | update-rc.d -f lfd remove 27 | update-rc.d -f csf remove 28 | elif [ -f /etc/gentoo-release ]; then 29 | rc-update del lfd default 30 | rc-update del csf default 31 | elif [ -f /etc/slackware-version ]; then 32 | rm -vf /etc/rc.d/rc3.d/S80csf 33 | rm -vf /etc/rc.d/rc4.d/S80csf 34 | rm -vf /etc/rc.d/rc5.d/S80csf 35 | rm -vf /etc/rc.d/rc3.d/S85lfd 36 | rm -vf /etc/rc.d/rc4.d/S85lfd 37 | rm -vf /etc/rc.d/rc5.d/S85lfd 38 | else 39 | /sbin/chkconfig csf off 40 | /sbin/chkconfig lfd off 41 | /sbin/chkconfig csf --del 42 | /sbin/chkconfig lfd --del 43 | fi 44 | rm -fv /etc/init.d/csf 45 | rm -fv /etc/init.d/lfd 46 | fi 47 | 48 | rm -fv /etc/chkserv.d/lfd 49 | rm -fv /usr/sbin/csf 50 | rm -fv /usr/sbin/lfd 51 | rm -fv /etc/cron.d/csf_update 52 | rm -fv /etc/cron.d/lfd-cron 53 | rm -fv /etc/cron.d/csf-cron 54 | rm -Rfv /usr/local/directadmin/plugins/csf 55 | rm -fv /etc/logrotate.d/lfd 56 | rm -fv /usr/local/man/man1/csf.man.1 57 | 58 | rm -Rfv /etc/csf /usr/local/csf /var/lib/csf 59 | 60 | echo 61 | echo "...Done" 62 | -------------------------------------------------------------------------------- /csf/uninstall.vesta.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | rm -fv /usr/sbin/csf /usr/local/vesta/bin/csf.pl 56 | rm -Rfv /etc/csf /usr/local/vesta/web/list/csf/ 57 | rm -fv /usr/local/csf/lib/ConfigServer/csf.pm 58 | sed -i "/CSF/d" /usr/local/vesta/web/templates/admin/panel.html 59 | 60 | echo 61 | echo "...Done" 62 | -------------------------------------------------------------------------------- /uninstallers/csf/uninstall.vesta.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | rm -fv /usr/sbin/csf /usr/local/vesta/bin/csf.pl 56 | rm -Rfv /etc/csf /usr/local/vesta/web/list/csf/ 57 | rm -fv /usr/local/csf/lib/ConfigServer/csf.pm 58 | sed -i "/CSF/d" /usr/local/vesta/web/templates/admin/panel.html 59 | 60 | echo 61 | echo "...Done" 62 | -------------------------------------------------------------------------------- /uninstallers/cxs/uninstall.plesk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling cxs..." 3 | echo 4 | 5 | if test `cat /proc/1/comm` = "systemd" 6 | then 7 | systemctl disable cxswatch.service 8 | systemctl disable pure-uploadscript.service 9 | systemctl stop cxswatch.service 10 | systemctl stop pure-uploadscript.service 11 | rm -fv /usr/lib/systemd/system/cxswatch.service 12 | rm -fv /usr/lib/systemd/system/pure-uploadscript.service 13 | systemctl daemon-reload 14 | else 15 | if [ -f /etc/redhat-release ]; then 16 | /etc/init.d/pure-uploadscript stop 17 | chkconfig pure-uploadscript off 18 | chkconfig pure-uploadscript --del 19 | rm -fv /etc/init.d/pure-uploadscript 20 | 21 | /etc/init.d/cxswatch stop 22 | /sbin/chkconfig cxswatch off 23 | /sbin/chkconfig cxswatch --del 24 | rm -fv /etc/init.d/cxswatch 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | /etc/init.d/pure-uploadscript stop 27 | update-rc.d -f pure-uploadscript remove 28 | rm -fv /etc/init.d/pure-uploadscript 29 | elif [ -f /etc/gentoo-release ]; then 30 | /etc/init.d/pure-uploadscript stop 31 | rc-update del pure-uploadscript default 32 | rm -fv /etc/init.d/pure-uploadscript 33 | else 34 | /etc/init.d/pure-uploadscript stop 35 | chkconfig pure-uploadscript off 36 | chkconfig pure-uploadscript --del 37 | rm -fv /etc/init.d/pure-uploadscript 38 | 39 | /etc/init.d/cxswatch stop 40 | /sbin/chkconfig cxswatch off 41 | /sbin/chkconfig cxswatch --del 42 | rm -fv /etc/init.d/cxswatch 43 | fi 44 | fi 45 | 46 | rm -fv /usr/sbin/cxs 47 | rm -fv /etc/cron.d/cxs-cron 48 | rm -fv /etc/cron.d/cxsdb-cron 49 | rm -Rfv /etc/cxs 50 | rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm 51 | 52 | /usr/sbin/plesk bin extension -u cxs 53 | rm -fv /usr/local/psa/admin/bin/cxs.pl /usr/local/psa/admin/sbin/cxs.pl 54 | 55 | echo 56 | echo "...Done" 57 | -------------------------------------------------------------------------------- /uninstallers/cxs/uninstall.vestacp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling cxs..." 3 | echo 4 | 5 | if test `cat /proc/1/comm` = "systemd" 6 | then 7 | systemctl disable cxswatch.service 8 | systemctl disable pure-uploadscript.service 9 | systemctl stop cxswatch.service 10 | systemctl stop pure-uploadscript.service 11 | rm -fv /usr/lib/systemd/system/cxswatch.service 12 | rm -fv /usr/lib/systemd/system/pure-uploadscript.service 13 | systemctl daemon-reload 14 | else 15 | if [ -f /etc/redhat-release ]; then 16 | /etc/init.d/pure-uploadscript stop 17 | chkconfig pure-uploadscript off 18 | chkconfig pure-uploadscript --del 19 | rm -fv /etc/init.d/pure-uploadscript 20 | 21 | /etc/init.d/cxswatch stop 22 | /sbin/chkconfig cxswatch off 23 | /sbin/chkconfig cxswatch --del 24 | rm -fv /etc/init.d/cxswatch 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | /etc/init.d/pure-uploadscript stop 27 | update-rc.d -f pure-uploadscript remove 28 | rm -fv /etc/init.d/pure-uploadscript 29 | elif [ -f /etc/gentoo-release ]; then 30 | /etc/init.d/pure-uploadscript stop 31 | rc-update del pure-uploadscript default 32 | rm -fv /etc/init.d/pure-uploadscript 33 | else 34 | /etc/init.d/pure-uploadscript stop 35 | chkconfig pure-uploadscript off 36 | chkconfig pure-uploadscript --del 37 | rm -fv /etc/init.d/pure-uploadscript 38 | 39 | /etc/init.d/cxswatch stop 40 | /sbin/chkconfig cxswatch off 41 | /sbin/chkconfig cxswatch --del 42 | rm -fv /etc/init.d/cxswatch 43 | fi 44 | fi 45 | 46 | rm -fv /usr/sbin/cxs /usr/local/vesta/bin/cxs.pl 47 | rm -fv /etc/cron.d/cxs-cron 48 | rm -fv /etc/cron.d/cxsdb-cron 49 | rm -Rfv /etc/cxs /usr/local/vesta/web/list/cxs/ 50 | rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm 51 | sed -i "/CXS/d" /usr/local/vesta/web/templates/admin/panel.html 52 | 53 | echo 54 | echo "...Done" 55 | -------------------------------------------------------------------------------- /csf/csf.rbls: -------------------------------------------------------------------------------- 1 | all.s5h.net:http://www.usenix.org.uk/content/rbl.html 2 | b.barracudacentral.org:http://www.barracudacentral.org/rbl 3 | cbl.abuseat.org:http://abuseat.org/ 4 | csi.cloudmark.com:https://csi.cloudmark.com/en/reset/ 5 | db.wpbl.info:http://www.wpbl.info/ 6 | dnsbl-1.uceprotect.net:http://www.uceprotect.net/ 7 | dnsbl-2.uceprotect.net:http://www.uceprotect.net/ 8 | dnsbl-3.uceprotect.net:http://www.uceprotect.net/ 9 | dnsbl.dronebl.org:https://dronebl.org/ 10 | dnsbl.inps.de:http://dnsbl.inps.de/?lang=en 11 | dnsbl.sorbs.net:http://www.sorbs.net/ 12 | drone.abuse.ch:https://www.abuse.ch/ 13 | dul.dnsbl.sorbs.net:http://www.sorbs.net/ 14 | dyna.spamrats.com:http://www.spamrats.com/rats-dyna.php 15 | http.dnsbl.sorbs.net:http://www.sorbs.net/ 16 | httpbl.abuse.ch:https://www.abuse.ch/ 17 | ips.backscatterer.org:http://www.backscatterer.org/ 18 | ix.dnsbl.manitu.net:http://www.dnsbl.manitu.net/ 19 | misc.dnsbl.sorbs.net:http://www.sorbs.net/ 20 | multi.surbl.org:http://www.surbl.org/ 21 | noptr.spamrats.com:http://www.spamrats.com/rats-noptr.php 22 | opm.tornevall.org:https://dnsbl.tornevall.org/ 23 | pbl.spamhaus.org:https://www.spamhaus.org/pbl/ 24 | psbl.surriel.com:http://psbl.org/ 25 | query.senderbase.org:https://www.senderbase.org/lookup/ 26 | rbl.efnetrbl.org:http://efnetrbl.org/ 27 | rbl.interserver.net:http://rbldata.interserver.net/index.php 28 | sbl.spamhaus.org:https://www.spamhaus.org/sbl/ 29 | smtp.dnsbl.sorbs.net:http://www.sorbs.net/ 30 | socks.dnsbl.sorbs.net:http://www.sorbs.net/ 31 | spam.dnsbl.sorbs.net:http://www.sorbs.net/ 32 | spam.spamrats.com:http://www.spamrats.com/rats-spam.php 33 | spamrbl.imp.ch:http://antispam.imp.ch 34 | tor.dan.me.uk:https://www.dan.me.uk/dnsbl 35 | ubl.unsubscore.com:http://blacklist.lashback.com/ 36 | virbl.bit.nl:https://virbl.bit.nl/ 37 | web.dnsbl.sorbs.net:http://www.sorbs.net/ 38 | wormrbl.imp.ch:http://antispam.imp.ch 39 | xbl.spamhaus.org:https://www.spamhaus.org/xbl/ 40 | zen.spamhaus.org:https://www.spamhaus.org/zen/ 41 | zombie.dnsbl.sorbs.net:http://www.sorbs.net/ 42 | -------------------------------------------------------------------------------- /csf/uninstall.cwp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/csfofficial.php 56 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/csf.pl 57 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_csfframe.php 58 | rm -Rfv /usr/local/cwpsrv/htdocs/admin/design/csf/ 59 | 60 | echo 61 | echo "...Done" 62 | -------------------------------------------------------------------------------- /uninstallers/csf/uninstall.cwp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/csfofficial.php 56 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/csf.pl 57 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_csfframe.php 58 | rm -Rfv /usr/local/cwpsrv/htdocs/admin/design/csf/ 59 | 60 | echo 61 | echo "...Done" 62 | -------------------------------------------------------------------------------- /csf/cyberpanel/configservercsf/views.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | import os 5 | import os.path 6 | import sys 7 | import django 8 | sys.path.append('/usr/local/CyberCP') 9 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings") 10 | django.setup() 11 | import json 12 | from plogical.acl import ACLManager 13 | import plogical.CyberCPLogFileWriter as logging 14 | import subprocess 15 | from django.shortcuts import HttpResponse, render 16 | from plogical.processUtilities import ProcessUtilities 17 | from django.views.decorators.csrf import csrf_exempt 18 | import tempfile 19 | from django.http import HttpResponse 20 | from django.views.decorators.clickjacking import xframe_options_exempt 21 | 22 | def configservercsf(request): 23 | userID = request.session['userID'] 24 | currentACL = ACLManager.loadedACL(userID) 25 | 26 | if currentACL['admin'] == 1: 27 | pass 28 | else: 29 | return ACLManager.loadError() 30 | 31 | return render(request,'configservercsf/index.html') 32 | 33 | @csrf_exempt 34 | @xframe_options_exempt 35 | def configservercsfiframe(request): 36 | userID = request.session['userID'] 37 | currentACL = ACLManager.loadedACL(userID) 38 | 39 | if currentACL['admin'] == 1: 40 | pass 41 | else: 42 | return ACLManager.loadError() 43 | 44 | if request.method == 'GET': 45 | qs = request.GET.urlencode() 46 | elif request.method == 'POST': 47 | qs = request.POST.urlencode() 48 | 49 | try: 50 | tmp = tempfile.NamedTemporaryFile(mode = "w", delete=False) 51 | tmp.write(qs) 52 | tmp.close() 53 | command = "/usr/local/csf/bin/cyberpanel.pl '" + tmp.name + "'" 54 | 55 | try: 56 | output = ProcessUtilities.outputExecutioner(command) 57 | except: 58 | output = "Output Error from csf UI script" 59 | 60 | os.unlink(tmp.name) 61 | except: 62 | output = "Unable to create csf UI temp file" 63 | 64 | return HttpResponse(output) 65 | -------------------------------------------------------------------------------- /uninstallers/cxs/uninstall.interworx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling cxs..." 3 | echo 4 | 5 | if test `cat /proc/1/comm` = "systemd" 6 | then 7 | systemctl disable cxswatch.service 8 | systemctl disable pure-uploadscript.service 9 | systemctl stop cxswatch.service 10 | systemctl stop pure-uploadscript.service 11 | rm -fv /usr/lib/systemd/system/cxswatch.service 12 | rm -fv /usr/lib/systemd/system/pure-uploadscript.service 13 | systemctl daemon-reload 14 | else 15 | if [ -f /etc/redhat-release ]; then 16 | /etc/init.d/pure-uploadscript stop 17 | chkconfig pure-uploadscript off 18 | chkconfig pure-uploadscript --del 19 | rm -fv /etc/init.d/pure-uploadscript 20 | 21 | /etc/init.d/cxswatch stop 22 | /sbin/chkconfig cxswatch off 23 | /sbin/chkconfig cxswatch --del 24 | rm -fv /etc/init.d/cxswatch 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | /etc/init.d/pure-uploadscript stop 27 | update-rc.d -f pure-uploadscript remove 28 | rm -fv /etc/init.d/pure-uploadscript 29 | elif [ -f /etc/gentoo-release ]; then 30 | /etc/init.d/pure-uploadscript stop 31 | rc-update del pure-uploadscript default 32 | rm -fv /etc/init.d/pure-uploadscript 33 | else 34 | /etc/init.d/pure-uploadscript stop 35 | chkconfig pure-uploadscript off 36 | chkconfig pure-uploadscript --del 37 | rm -fv /etc/init.d/pure-uploadscript 38 | 39 | /etc/init.d/cxswatch stop 40 | /sbin/chkconfig cxswatch off 41 | /sbin/chkconfig cxswatch --del 42 | rm -fv /etc/init.d/cxswatch 43 | fi 44 | fi 45 | 46 | /usr/local/interworx/bin/nodeworx.pex -u --controller Plugins --action edit --plugin_name configservercxs --status 0 -n 47 | rm -fv /usr/sbin/cxs 48 | rm -fv /etc/cron.d/cxs-cron 49 | rm -fv /etc/cron.d/cxsdb-cron 50 | rm -Rfv /etc/cxs 51 | rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm 52 | rm -Rfv /usr/local/interworx/plugins/configservercxs /usr/local/interworx/html/configserver/cxs 53 | 54 | cd 55 | 56 | echo 57 | echo "...Done" 58 | -------------------------------------------------------------------------------- /uninstallers/cxs/uninstall.cpanel.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling cxs..." 3 | echo 4 | 5 | rm -fv /var/run/chkservd/cxswatch 6 | sed -i '/^cxswatch:/d' /etc/chkserv.d/chkservd.conf 7 | /scripts/restartsrv_chkservd 8 | 9 | if test `cat /proc/1/comm` = "systemd" 10 | then 11 | systemctl disable cxswatch.service 12 | systemctl disable pure-uploadscript.service 13 | systemctl stop cxswatch.service 14 | systemctl stop pure-uploadscript.service 15 | rm -fv /usr/lib/systemd/system/cxswatch.service 16 | rm -fv /usr/lib/systemd/system/pure-uploadscript.service 17 | systemctl daemon-reload 18 | else 19 | /etc/init.d/cxswatch stop 20 | /sbin/chkconfig cxswatch off 21 | /sbin/chkconfig cxswatch --del 22 | rm -fv /etc/init.d/cxswatch 23 | 24 | /etc/init.d/pure-uploadscript stop 25 | chkconfig pure-uploadscript off 26 | chkconfig pure-uploadscript --del 27 | rm -fv /etc/init.d/pure-uploadscript 28 | fi 29 | 30 | sed -i "s/^CallUploadScript/\#CallUploadScript/" /etc/pure-ftpd.conf 31 | sed -i "/^CallUploadScript/d" /var/cpanel/conf/pureftpd/main 32 | sed -i "/^CallUploadScript/d" /var/cpanel/conf/pureftpd/local 33 | /scripts/restartsrv_ftpserver 34 | 35 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 36 | cd / 37 | /usr/local/cpanel/bin/unregister_appconfig cxs 38 | fi 39 | 40 | rm -fv /usr/sbin/cxs 41 | rm -fv /etc/cron.d/cxs-cron 42 | rm -fv /etc/cron.d/cxsdb-cron 43 | rm -fv /etc/cron.daily/cxsdaily.sh 44 | rm -fv /scripts/postftpup 45 | 46 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cxs.cgi 47 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cxs 48 | 49 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cxs.cgi 50 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cxs 51 | 52 | /scripts/modsec_vendor remove configserver 53 | /usr/local/cpanel/bin/manage_hooks delete module ConfigServer::CXS::FTPHook > /dev/null 2>&1 54 | /usr/local/cpanel/bin/manage_hooks delete module ConfigServer::CXS::AccountHook > /dev/null 2>&1 55 | 56 | rm -Rfv /etc/cxs 57 | rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm 58 | cd 59 | 60 | echo 61 | echo "...Done" 62 | -------------------------------------------------------------------------------- /csf/uninstall.interworx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | /usr/local/interworx/bin/nodeworx.pex -u --controller Plugins --action edit --plugin_name configservercsf --status 0 -n 56 | rm -Rfv /etc/csf /usr/local/csf /var/lib/csf /usr/local/interworx/plugins/configservercsf /usr/local/interworx/html/configserver/csf 57 | chattr -ia /etc/apf/apf 58 | if [ -e "/etc/apf/apf.old" ]; then 59 | cp -avf /etc/apf/apf.old /etc/apf/apf 60 | chmod 750 /etc/apf/apf 61 | fi 62 | 63 | echo 64 | echo "...Done" 65 | -------------------------------------------------------------------------------- /uninstallers/csf/uninstall.interworx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | /usr/local/interworx/bin/nodeworx.pex -u --controller Plugins --action edit --plugin_name configservercsf --status 0 -n 56 | rm -Rfv /etc/csf /usr/local/csf /var/lib/csf /usr/local/interworx/plugins/configservercsf /usr/local/interworx/html/configserver/csf 57 | chattr -ia /etc/apf/apf 58 | if [ -e "/etc/apf/apf.old" ]; then 59 | cp -avf /etc/apf/apf.old /etc/apf/apf 60 | chmod 750 /etc/apf/apf 61 | fi 62 | 63 | echo 64 | echo "...Done" 65 | -------------------------------------------------------------------------------- /uninstallers/cxs/uninstall.cwp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling cxs..." 3 | echo 4 | 5 | if test `cat /proc/1/comm` = "systemd" 6 | then 7 | systemctl disable cxswatch.service 8 | systemctl disable pure-uploadscript.service 9 | systemctl stop cxswatch.service 10 | systemctl stop pure-uploadscript.service 11 | rm -fv /usr/lib/systemd/system/cxswatch.service 12 | rm -fv /usr/lib/systemd/system/pure-uploadscript.service 13 | systemctl daemon-reload 14 | else 15 | if [ -f /etc/redhat-release ]; then 16 | /etc/init.d/pure-uploadscript stop 17 | chkconfig pure-uploadscript off 18 | chkconfig pure-uploadscript --del 19 | rm -fv /etc/init.d/pure-uploadscript 20 | 21 | /etc/init.d/cxswatch stop 22 | /sbin/chkconfig cxswatch off 23 | /sbin/chkconfig cxswatch --del 24 | rm -fv /etc/init.d/cxswatch 25 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 26 | /etc/init.d/pure-uploadscript stop 27 | update-rc.d -f pure-uploadscript remove 28 | rm -fv /etc/init.d/pure-uploadscript 29 | elif [ -f /etc/gentoo-release ]; then 30 | /etc/init.d/pure-uploadscript stop 31 | rc-update del pure-uploadscript default 32 | rm -fv /etc/init.d/pure-uploadscript 33 | else 34 | /etc/init.d/pure-uploadscript stop 35 | chkconfig pure-uploadscript off 36 | chkconfig pure-uploadscript --del 37 | rm -fv /etc/init.d/pure-uploadscript 38 | 39 | /etc/init.d/cxswatch stop 40 | /sbin/chkconfig cxswatch off 41 | /sbin/chkconfig cxswatch --del 42 | rm -fv /etc/init.d/cxswatch 43 | fi 44 | fi 45 | 46 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/cxs.php 47 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/cxs.pl 48 | rm -fv /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_cxsframe.php 49 | rm -Rfv /etc/cxs /usr/local/cwpsrv/htdocs/admin/design/cxs/ 50 | #sed -i "/configserver/d" /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php 51 | 52 | rm -fv /etc/cron.d/cxs-cron 53 | rm -fv /etc/cron.d/cxsdb-cron 54 | rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm 55 | 56 | echo 57 | echo "...Done" 58 | -------------------------------------------------------------------------------- /cmq/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 21 | 22 | if [ -e "/usr/local/cpanel/version" ]; then 23 | 24 | echo "Running cmq cPanel uninstaller" 25 | echo 26 | 27 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 28 | cd / 29 | /usr/local/cpanel/bin/unregister_appconfig cmq 30 | else 31 | if [ ! -e "/var/cpanel/apps/cmq.conf" ]; then 32 | /bin/rm -fv /var/cpanel/apps/cmq.conf 33 | fi 34 | fi 35 | 36 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi 37 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt 38 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmq 39 | 40 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmq.cgi 41 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmqversion.txt 42 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmq 43 | 44 | elif [ -e "/usr/local/directadmin/directadmin" ]; then 45 | 46 | echo "Running cmq DirectAdmin uninstaller" 47 | echo 48 | 49 | /bin/rm -Rfv /usr/local/directadmin/plugins/cmq 50 | 51 | fi 52 | 53 | /bin/rm -Rfv /etc/cmq 54 | 55 | echo "ConfigServer Mail Queues has been uninstalled." 56 | exit 57 | -------------------------------------------------------------------------------- /uninstallers/MailScanner/msuninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 21 | 22 | if [ ! -e "msuninstall.pl" ]; then 23 | echo "Download msuninstall.pl here first" 24 | exit 25 | fi 26 | 27 | if [ -e "/usr/local/cpanel/version" ]; then 28 | sed -i 's%/usr/bin/perl%/usr/local/cpanel/3rdparty/bin/perl%' msuninstall.pl 29 | else 30 | sed -i 's%/usr/local/cpanel/3rdparty/bin/perl%/usr/bin/perl%' msuninstall.pl 31 | fi 32 | 33 | if [ -e "/usr/msfe/uninstall.msfe.sh" ]; then 34 | sh /usr/msfe/uninstall.msfe.sh 35 | fi 36 | 37 | rm -Rfv /usr/msfe 38 | rm -f /etc/cron.daily/mailscanner_daily.cron 39 | 40 | if test `cat /proc/1/comm` = "systemd" 41 | then 42 | systemctl disable MailScanner.service 43 | systemctl stop MailScanner.service 44 | 45 | rm -f /usr/lib/systemd/system/MailScanner.service 46 | systemctl daemon-reload 47 | else 48 | service MailScanner stop 49 | chkconfig MailScanner off 50 | chkconfig MailScanner --del 51 | rm -f /etc/init.d/MailScanner 52 | fi 53 | 54 | if [ -e "/usr/local/cpanel/version" ]; then 55 | rm -f /etc/chkservd.d/mailscanner 56 | rm -f /var/run/chkservd/mailscanner 57 | fi 58 | 59 | chmod +x msuninstall.pl 60 | ./msuninstall.pl 3 61 | 62 | echo 63 | echo "All done." 64 | -------------------------------------------------------------------------------- /uninstallers/cmq/cmq_uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ############################################################################### 3 | # Copyright (C) 2006-2025 Jonathan Michaelson 4 | # 5 | # https://github.com/waytotheweb/scripts 6 | # 7 | # This program is free software; you can redistribute it and/or modify it under 8 | # the terms of the GNU General Public License as published by the Free Software 9 | # Foundation; either version 3 of the License, or (at your option) any later 10 | # version. 11 | # 12 | # This program is distributed in the hope that it will be useful, but WITHOUT 13 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 | # details. 16 | # 17 | # You should have received a copy of the GNU General Public License along with 18 | # this program; if not, see . 19 | ############################################################################### 20 | PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 21 | 22 | if [ -e "/usr/local/cpanel/version" ]; then 23 | 24 | echo "Running cmq cPanel uninstaller" 25 | echo 26 | 27 | if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then 28 | cd / 29 | /usr/local/cpanel/bin/unregister_appconfig cmq 30 | else 31 | if [ ! -e "/var/cpanel/apps/cmq.conf" ]; then 32 | /bin/rm -fv /var/cpanel/apps/cmq.conf 33 | fi 34 | fi 35 | 36 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi 37 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt 38 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmq 39 | 40 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmq.cgi 41 | /bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmqversion.txt 42 | /bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmq 43 | 44 | elif [ -e "/usr/local/directadmin/directadmin" ]; then 45 | 46 | echo "Running cmq DirectAdmin uninstaller" 47 | echo 48 | 49 | /bin/rm -Rfv /usr/local/directadmin/plugins/cmq 50 | 51 | fi 52 | 53 | /bin/rm -Rfv /etc/cmq 54 | 55 | echo "ConfigServer Mail Queues has been uninstalled." 56 | exit 57 | -------------------------------------------------------------------------------- /csf/uninstall.cyberpanel.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Uninstalling csf and lfd..." 3 | echo 4 | 5 | /usr/sbin/csf -f 6 | 7 | if test `cat /proc/1/comm` = "systemd" 8 | then 9 | systemctl disable csf.service 10 | systemctl disable lfd.service 11 | systemctl stop lfd.service 12 | systemctl stop csf.service 13 | 14 | rm -fv /usr/lib/systemd/system/csf.service 15 | rm -fv /usr/lib/systemd/system/lfd.service 16 | systemctl daemon-reload 17 | else 18 | if [ -f /etc/redhat-release ]; then 19 | /sbin/chkconfig csf off 20 | /sbin/chkconfig lfd off 21 | /sbin/chkconfig csf --del 22 | /sbin/chkconfig lfd --del 23 | elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then 24 | update-rc.d -f lfd remove 25 | update-rc.d -f csf remove 26 | elif [ -f /etc/gentoo-release ]; then 27 | rc-update del lfd default 28 | rc-update del csf default 29 | elif [ -f /etc/slackware-version ]; then 30 | rm -vf /etc/rc.d/rc3.d/S80csf 31 | rm -vf /etc/rc.d/rc4.d/S80csf 32 | rm -vf /etc/rc.d/rc5.d/S80csf 33 | rm -vf /etc/rc.d/rc3.d/S85lfd 34 | rm -vf /etc/rc.d/rc4.d/S85lfd 35 | rm -vf /etc/rc.d/rc5.d/S85lfd 36 | else 37 | /sbin/chkconfig csf off 38 | /sbin/chkconfig lfd off 39 | /sbin/chkconfig csf --del 40 | /sbin/chkconfig lfd --del 41 | fi 42 | rm -fv /etc/init.d/csf 43 | rm -fv /etc/init.d/lfd 44 | fi 45 | 46 | rm -fv /etc/chkserv.d/lfd 47 | rm -fv /usr/sbin/csf 48 | rm -fv /usr/sbin/lfd 49 | rm -fv /etc/cron.d/csf_update 50 | rm -fv /etc/cron.d/lfd-cron 51 | rm -fv /etc/cron.d/csf-cron 52 | rm -fv /etc/logrotate.d/lfd 53 | rm -fv /usr/local/man/man1/csf.man.1 54 | 55 | rm -Rfv /usr/local/CyberCP/configservercsf 56 | rm -fv /home/cyberpanel/plugins/configservercsf 57 | rm -Rfv /usr/local/CyberCP/public/static/configservercsf 58 | 59 | sed -i "/configservercsf/d" /usr/local/CyberCP/CyberCP/settings.py 60 | sed -i "/configservercsf/d" /usr/local/CyberCP/CyberCP/urls.py 61 | if [ ! -e /etc/cxs/cxs.pl ]; then 62 | sed -i "/configserver/d" /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html 63 | fi 64 | 65 | service lscpd restart 66 | 67 | rm -Rfv /etc/csf /usr/local/csf /var/lib/csf 68 | 69 | echo 70 | echo "...Done" 71 | --------------------------------------------------------------------------------