Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
softaculous /
apps /
csf /
Delete
Unzip
Name
Size
Permission
Date
Action
3
[ DIR ]
drwxr-xr-x
2025-12-17 12:44
images
[ DIR ]
drwxr-xr-x
2025-12-17 12:44
admin_locations_csf.conf
299
B
-rw-r--r--
2022-01-31 06:42
csf-x86_64.tar.gz
2.19
MB
-rw-r--r--
2025-12-17 12:44
csf.conf
114.65
KB
-rw-r--r--
2025-12-05 07:02
hooks.php
59.15
KB
-rw-r--r--
2025-12-10 07:37
index.php
1.39
KB
-rw-r--r--
2023-02-03 05:56
index.pl
6.04
KB
-rw-r--r--
2022-02-08 06:54
info.xml
5.68
KB
-rw-r--r--
2025-12-05 07:02
install.php
18.59
KB
-rw-r--r--
2025-12-10 07:37
md5
839
B
-rw-r--r--
2025-12-10 07:37
remove.php
5.25
KB
-rw-r--r--
2025-12-10 07:37
reseller.pl
6.67
KB
-rw-r--r--
2023-02-01 09:04
rev
4
B
-rw-r--r--
2025-12-10 07:37
update.php
8.93
KB
-rw-r--r--
2025-12-10 07:37
Save
Rename
#!/usr/bin/perl ############################################################################### # Copyright 2006-2019, Way to the Web Limited # URL: http://www.configserver.com # Email: sales@waytotheweb.com ############################################################################### # start main use strict; use File::Find; use Fcntl qw(:DEFAULT :flock); use Sys::Hostname qw(hostname); use IPC::Open3; use lib '/usr/local/csf/lib'; use ConfigServer::DisplayUI; use ConfigServer::Config; our ($script, $images, $myv, %FORM, %in); my $config = ConfigServer::Config->loadconfig(); my %config = $config->config; open (my $IN, "<", "/etc/csf/version.txt") or die $!; $myv = <$IN>; close ($IN); chomp $myv; $script = "./index.php"; $images = "./images"; my $buffer = $ENV{'QUERY_STRING'}; if ($buffer eq "") {$buffer = $ENV{POST}} my @pairs = split(/&/, $buffer); foreach my $pair (@pairs) { my ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $FORM{$name} = $value; } print "content-type: text/html\n\n"; #foreach my $key (keys %ENV) { # print "$key = [$ENV{$key}]<br>\n"; #} my $bootstrapcss = "<link rel='stylesheet' href='$images/bootstrap/css/bootstrap.min.css'>"; my $jqueryjs = "<script src='$images/jquery.min.js'></script>"; my $bootstrapjs = "<script src='$images/bootstrap/js/bootstrap.min.js'></script>"; my @header; my @footer; my $bodytag; my $htmltag = " data-post='$FORM{action}' "; if (-e "/etc/csf/csf.header") { open (my $HEADER, "<", "/etc/csf/csf.header"); flock ($HEADER, LOCK_SH); @header = <$HEADER>; close ($HEADER); } if (-e "/etc/csf/csf.footer") { open (my $FOOTER, "<", "/etc/csf/csf.footer"); flock ($FOOTER, LOCK_SH); @footer = <$FOOTER>; close ($FOOTER); } if (-e "/etc/csf/csf.htmltag") { open (my $HTMLTAG, "<", "/etc/csf/csf.htmltag"); flock ($HTMLTAG, LOCK_SH); $htmltag .= <$HTMLTAG>; chomp $htmltag; close ($HTMLTAG); } if (-e "/etc/csf/csf.bodytag") { open (my $BODYTAG, "<", "/etc/csf/csf.bodytag"); flock ($BODYTAG, LOCK_SH); $bodytag = <$BODYTAG>; chomp $bodytag; close ($BODYTAG); } unless ($config{STYLE_CUSTOM}) { undef @header; undef @footer; $htmltag = ""; $bodytag = ""; } unless ($FORM{action} eq "tailcmd" or $FORM{action} =~ /^cf/ or $FORM{action} eq "logtailcmd" or $FORM{action} eq "loggrepcmd") { print <<EOF; <!doctype html> <html lang='en' $htmltag> <head> <title>ConfigServer Security & Firewall</title> <meta charset='utf-8'> <meta name='viewport' content='width=device-width, initial-scale=1'> $bootstrapcss <link href='$images/configserver.css' rel='stylesheet' type='text/css'> $jqueryjs $bootstrapjs <style> .mobilecontainer { display:none; } .normalcontainer { display:block; } EOF if ($config{STYLE_MOBILE}) { print <<EOF; \@media (max-width: 600px) { .mobilecontainer { display:block; } .normalcontainer { display:none; } } EOF } print "</style>\n"; print @header; print <<EOF; </head> <body $bodytag> <div id="loader"></div> <a id='toplink' class='toplink' title='Go to bottom'><span class='glyphicon glyphicon-hand-down'></span></a> <div class='container-fluid'> <br> <div class='panel panel-default'> <h4><img src='$images/csf_small.png' style='padding-left: 10px'> ConfigServer Security & Firewall - csf v$myv</h4> </div> EOF } my $templatehtml; open (my $SCRIPTOUT, '>', \$templatehtml); select $SCRIPTOUT; ConfigServer::DisplayUI::main(\%FORM, $script, $script, $images, $myv); close ($SCRIPTOUT); select STDOUT; print $templatehtml; unless ($FORM{action} eq "tailcmd" or $FORM{action} =~ /^cf/ or $FORM{action} eq "logtailcmd" or $FORM{action} eq "loggrepcmd") { print <<EOF; <a class='botlink' id='botlink' title='Go to top'><span class='glyphicon glyphicon-hand-up'></span></a> <script> function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i <ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length,c.length); } } return ""; } \$("#loader").hide(); \$.fn.scrollBottom = function() { return \$(document).height() - this.scrollTop() - this.height(); }; \$('#botlink').on("click",function(){ \$('html,body').animate({ scrollTop: 0 }, 'slow', function () {}); }); \$('#toplink').on("click",function() { var window_height = \$(window).height(); var document_height = \$(document).height(); \$('html,body').animate({ scrollTop: window_height + document_height }, 'slow', function () {}); }); \$('#tabAll').click(function(){ \$('#tabAll').addClass('active'); \$('.tab-pane').each(function(i,t){ \$('#myTabs li').removeClass('active'); \$(this).addClass('active'); }); }); \$(document).ready(function(){ \$('[data-tooltip="tooltip"]').tooltip(); \$(window).scroll(function () { if (\$(this).scrollTop() > 500) { \$('#botlink').fadeIn(); } else { \$('#botlink').fadeOut(); } if (\$(this).scrollBottom() > 500) { \$('#toplink').fadeIn(); } else { \$('#toplink').fadeOut(); } }); EOF if ($config{STYLE_MOBILE}) { print <<EOF; var csfview = getCookie('csfview'); if (csfview == 'mobile') { \$(".mobilecontainer").css('display','block'); \$(".normalcontainer").css('display','none'); \$("#csfreturn").addClass('btn-primary btn-lg btn-block').removeClass('btn-default'); } else if (csfview == 'desktop') { \$(".mobilecontainer").css('display','none'); \$(".normalcontainer").css('display','block'); \$("#csfreturn").removeClass('btn-primary btn-lg btn-block').addClass('btn-default'); } EOF } print "});\n"; if ($config{STYLE_MOBILE}) { print <<EOF; \$("#NormalView").click(function(){ document.cookie = "csfview=desktop; path=/"; \$(".mobilecontainer").css('display','none'); \$(".normalcontainer").css('display','block'); }); \$("#MobileView").click(function(){ document.cookie = "csfview=mobile; path=/"; \$(".mobilecontainer").css('display','block'); \$(".normalcontainer").css('display','none'); }); EOF } print "</script>\n"; print "</body>\n"; print "</html>\n"; } 1;