403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/laragon/www/app/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/laragon/www/app/index.php
<?php
require_once __DIR__ . '/apps-catalog.php';

$request = $_GET['p'] ?? '';
$path = trim($_GET['path'] ?? '', '/');
$homeUrl = 'https://quillacollo.gob.bo/';
$aliases = [
    'mataderos' => 'matadero',
];
$request = $aliases[$request] ?? $request;

if ($request === 'odeco') {
    $tipo = $_GET['tipo'] ?? '';
    $odeco = gamq_app_by_id('odeco');
    $odecoUrl = $odeco['url'] ?? '';

    if ($odecoUrl === '') {
        header("Location: $homeUrl");
        exit;
    }

    if ($path !== '') {
        $target = rtrim($odecoUrl, '/') . '/' . $path;
        $queryParams = $_GET;
        unset($queryParams['p'], $queryParams['path']);

        if ($queryParams) {
            $target .= '?' . http_build_query($queryParams);
        }

        header("Location: $target", true, 302);
        exit;
    }

    if ($tipo === "DENUNCIA" || $tipo === "RECLAMO") {
        header("Location: " . rtrim($odecoUrl, '/') . "/solicitud?tipo=" . rawurlencode($tipo));
        exit;
    }
    if ($tipo === "SEGUIMIENTO") {
        header("Location: " . rtrim($odecoUrl, '/') . "/seguimiento");
        exit;
    }

    header("Location: $odecoUrl");
    exit;
}

$app = gamq_app_by_id($request);

if (!$app || empty($app['url'])) {
    header("Location: $homeUrl");
    exit;
}

$target = $app['url'];
$path = trim($path, '/');
if ($path !== '') {
    $target = rtrim($target, '/') . '/' . $path;
}

$queryParams = $_GET;
unset($queryParams['p'], $queryParams['path']);

if ($queryParams) {
    $target .= (str_contains($target, '?') ? '&' : '?') . http_build_query($queryParams);
}

header("Location: $target", true, 302);
exit;

Youez - 2016 - github.com/yon3zu
LinuXploit