shell bypass 403

GrazzMean Shell

Uname: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Software: Apache
PHP version: 5.6.40 [ PHP INFO ] PHP os: Linux
Server Ip: 217.160.0.194
Your Ip: 216.73.217.65
User: u72294154 (9179942) | Group: ftpusers (600)
Safe Mode: OFF
Disable Function:
NONE

name : PrivateContactosController.php
<?

App::uses('PrivateController', 'Controller');

class PrivateContactosController extends PrivateController {

    public function beforeFilter() {
        parent::beforeFilter();

        array_push($this->uses, 'Contacto');
    }

    public function home() {
        $this->getListado('Contacto', 20, $this->App->getOrden('Contacto'));
        $this->getOrigenes($this->listado);

        $this->renderView();
    }

    public function show() {
        $this->Contacto->id = $this->params->id;
        if (!$this->Contacto->exists()) {
            $this->Session->setFlash('Contacto no encontrado.' . $this->btnClose, 'default', array('class' => 'alert alert-danger'));
            $this->redirect(array('controller' => 'private_contactos', 'action' => 'home'));
        }

        $contacto = $this->Contacto->findById($this->Contacto->id);

        //Marcamos el contacto como leído
        $this->Contacto->updateAll(array('leido' => true), array('Contacto.id' => $contacto['Contacto']['id']));

        $this->set('contacto', $contacto);
        $this->getOrigenes(array($contacto));
        $this->renderView();
    }

    //Método que prepara los orígenes de los contactos
    private function getOrigenes($contactos) {
        $origenes = array();

        $entidades = array();
        foreach ($contactos as $c) {
            if (!empty($c['Contacto']['entidad']) && !empty($c['Contacto']['entidad_id'])) {
                if (!array_key_exists($c['Contacto']['entidad'], $entidades)) {
                    $entidades[$c['Contacto']['entidad']] = array();
                }

                if (!in_array($c['Contacto']['entidad_id'], $entidades[$c['Contacto']['entidad']])) {
                    $entidades[$c['Contacto']['entidad']][] = $c['Contacto']['entidad_id'];
                }
            }
        }

        foreach ($entidades as $k => $v) {
            $entidad = Inflector::camelize($k);
            array_push($this->uses, $entidad);
            foreach ($this->{$entidad}->find('all', array('conditions' => array("$entidad.id" => $v), 'recursive' => false)) as $e) {
                $origenes[$k][(int) $e[$entidad]['id']] = $e;
            }
        }

        $this->set('origenes', $origenes);
    }

}
© 2026 GrazzMean