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.54
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 /
buildlsphp /
[ HOME SHELL ]
Name
Size
Permission
Action
WhmMod_LiteSpeed_BuildPHP.php
6.25
KB
-rw-r--r--
cmd_buildmatchingphp.php
2.24
KB
-rw-r--r--
php.ini
37.2
KB
-rw-r--r--
php_build.template
7.05
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cmd_buildmatchingphp.php
<?php /****************************** * cmd_buildmatchingphp.php * * Options: * -f force build even it is matched * -v verify version and config options, no actual build * default no option: build the matching php if there is difference. * * Command line tool to build Apache matching PHP. * This requires that existing php has been successfully built by whm EasyApache tool. * You can make this as part of your automated server installation script after EasyApache build done. * ******************************/ ini_set('max_execution_time', 7200); require_once('WhmMod_LiteSpeed_BuildPHP.php'); define ('PHP_AP_LOC', '/usr/local/bin/php'); // Apache PHP location define ('LSWS_HOME', '/usr/local/lsws'); define( 'CGI_DIR', '/usr/local/cpanel/whostmgr/docroot/cgi/lsws' ); define( 'WGET_TEMP', '/usr/src/lsws' ); $path_to_bld = ""; $buildtool = new WhmMod_LiteSpeed_BuildPHP(); $next = $buildtool->PrecheckPHPVersion(PHP_AP_LOC, $msg); echo "$msg \n"; // return 0: same, 1 different; 2 error stop; $do_build = FALSE; if ($next == 2) { echo "Please make sure PHP exists, you can specify a different location by editing variable definition PHP_AP_LOC \n"; } elseif (isset($argv[1]) && $argv[1] == '-v') { echo "Verify only - Exit!\n"; } elseif ($next == 0) { if (isset($argv[1]) && $argv[1] == '-f') { echo "Config option is same, will do force rebuild matching php"; $do_build = TRUE; } else { echo "No need to rebuild. Aborted! If you want to do force rebuid, add parameter -f \n"; } } else { // next == 1 $do_build = TRUE; } if ((isset($argv[1])) && ($argv[1] != '-f') && ($argv[1] != '-v')) { $path_to_bld = trim($argv[1]); } if (!$do_build) exit; echo "Next will build lsphp using the same configuration as Apache's php. This will download the source code and build php binary. The whole process may take more than 10 minutes, please be patient.\n"; $curdir = getcwd(); if ($curdir != CGI_DIR) { echo "change current directory to " . CGI_DIR . "\n"; chdir(CGI_DIR); } $result = $buildtool->GenerateBuildScript(PHP_AP_LOC, $path_to_bld); if (isset($result['error'])) { echo "{$result['error']} \n Aborted!\n"; return false; } $build_script = $result['file']; echo "build script generated at $build_script \n"; system($build_script);
Close