Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
lve /
modlscapi /
tars /
[ HOME SHELL ]
Name
Size
Permission
Action
apache2_2.patch
486
B
-rw-r--r--
apache2_4.patch
491
B
-rw-r--r--
apache2_4_1.patch
477
B
-rw-r--r--
apache_pm.patch
660
B
-rw-r--r--
lsapi.pm
2.53
KB
-rw-r--r--
lsapi_modfcgid.conf
178
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : lsapi.pm
package Cpanel::WebServer::Supported::apache::Handler::lsapi; # cpanel - Cpanel/WebServer/Supported/apache/Handler/lsapi.pm # Copyright 2017 cPanel, Inc. # All rights Reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited =head1 NAME Cpanel::WebServer::Supported::apache::Handler::lsapi =head1 DESCRIPTION An Apache handler module which supports the mod_lsapi module. mod_lsapi performs security checks on scripts and directories, and sets its execution user/group IDs to that of the script owner. A clearer documentation suite for the base class and an implemented handler can be found in the I<SEE ALSO> section below. =head1 SEE ALSO L<Cpanel::WebServer::Supported::apache::Handler::base>, L<Cpanel::WebServer::Supported::apache::Handler::cgi> =head1 LICENSE AND COPYRIGHT Copyright 2017, cPanel, Inc. All rights reserved. This code is subject to the cPanel license. Unauthorized copying is prohibited. =cut use parent 'Cpanel::WebServer::Supported::apache::Handler::base'; use strict; use warnings; sub new { my ( $class, %args ) = @_; my $self = bless( {}, $class ); $self->init( \%args ); $self->module_check_and( ['mod_lsapi'] ); $self->sapi_check('cgi'); return $self; } sub type { return 'lsapi'; } sub get_config_string { my ($self) = @_; my $package = $self->get_package(); my $type = $self->get_mime_type(); my @exts = sort $self->get_lang_obj()->get_file_extensions(); my $str = <<"EOF"; # lsapi configuration for $package <IfModule lsapi_module> lsapi_engine On AddType $type @exts </IfModule> EOF return $str; } sub get_mime_type { my ($self) = @_; # NOTE: We're overriding the mime header because the lsapi EA4 package # deploys a hard-coded /etc/container/php.handler. # This conf hard-codes the names of the PHP package mime headers # THIS IS BAD, especially if we add a new PHP version. # # So, if you want to use base::get_mime_type (instead of overriding # here), then we'd need to add a set_lang_handler() which updates # /etc/container/php.handler with the correct [handlers] section. return 'application/x-httpd-' . $self->{'lang_obj'}->get_package_name() . "-lsphp"; # Look for '3 underscores' at https://cpanel.wiki/display/EA/Adding+a+PHP+Handler for more details } 1;
Close