shell bypass 403
<?php
ini_set("memory_limit", '256M');
set_time_limit(0);
// error_reporting(E_ALL);
// error_reporting(0);
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Importación de Inmovilla para Sanfernando</title>
<meta name="robots" content="noindex, follow">
<style>
body { color: black; background-color: gainsboro; }
h1, h2, p { margin: 1px 0 0; }
h1 { color: white; background-color: black; font-size: 20px; text-align: center; padding: 1em; }
h2 { color: black; background-color: white; font-size: 18px; text-align: center; text-transform: uppercase; padding: 1em; }
.error { color: white; background-color: red; font-weight: bold; padding: 1em; }
.aviso { color: black; background-color: orange; font-weight: bold; padding: 1em; }
.aviso em { font-weight: normal; }
.resumen { color: white; background-color: darkgreen; font-weight: bold; text-align: center; text-transform: uppercase; padding: 1em; }
.resumen + .resumen { margin-top: 0; }
.tiempo { color: black; background-color: cyan; font-weight: bold; text-align: center; text-transform: uppercase; padding: 1em; }
</style>
</head>
<body>
<?php
require $_SERVER['DOCUMENT_ROOT'] . '/app/webroot/import/requires/sources/lib/utils.php';
require $_SERVER['DOCUMENT_ROOT'] . '/app/webroot/import/requires/sources/__conf.php';
require $_SERVER['DOCUMENT_ROOT'] . '/app/webroot/import/requires/sources/__bbdd.php';
//define("XML_FILE_ASOCIACION", './inmovilla.xml');
define("XML_FILE_ASOCIACION", 'https://pasarelas.iagestion.com/xml/datos-agencias/v1/50-cv89032lkfsdjflsfdsf-datos.xml');
//define("XML_FILE_ASOCIACION", 'http://altamira21.local/prueba_xml.xml');
define("XML_FILE_ASOCIACION_VIDEOS", './inmovilla-videos.xml');
define("NUM_AGENCIA", 972);
$accion = isset($_GET['action']) ? $_GET['action'] : '';
switch ($accion) {
case 'auxiliaresRun':
require_once $_SERVER['DOCUMENT_ROOT'] . '/app/webroot/import/importador.class.php';
$db = new Database();
$importador = new Importador($db);
$importador->auxiliaresRun(XML_FILE_ASOCIACION);
break;
case 'inmueblesRun':
require_once $_SERVER['DOCUMENT_ROOT'] . '/app/webroot/import/importador.class.php';
$db = new Database();
$importador = new Importador($db);
$importador->inmueblesRun(NUM_AGENCIA, XML_FILE_ASOCIACION);
break;
case 'total':
require_once $_SERVER['DOCUMENT_ROOT'] . '/app/webroot/import/importador.class.php';
$db = new Database();
$importador = new Importador($db);
$importador->auxiliares(XML_FILE_ASOCIACION);
$importador->inmuebles(NUM_AGENCIA, XML_FILE_ASOCIACION);
break;
/*case 'test':
require_once $_SERVER['DOCUMENT_ROOT'] . "/import/test.php";
break;*/
default:
echo '<h1>¿Olvidas algo?</h1>';
echo '<p>Aquí sólo deberías entrar si sabes lo que haces o si estás realmente aburrido...</p>';
break;
}
?>
</body>
</html>