shell bypass 403

GrazzMean Shell

Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : director.controller.js
const Director = require('../models/director.model.js');

// Create and Save a new admin
exports.create = (req, res) => {
    // Validate request
    if (!req.body.cin) {
        return res.status(400).send({
            message: "director content can not be empty"
        });
    }

    // Create a admin
    const director = new Director({
        cin: req.body.cin || "Untitled coordinator",
        nomPrenom: req.body.nomPrenom,
        idDepartement: req.body.idDepartement,
        numTelephone: req.body.numTelephone,
        email: req.body.email,
        login: req.body.login,
        password: req.body.password,
    });

    // Save admin in the database
    director.save()
        .then(data => {
            res.send(data);
        }).catch(err => {
            res.status(500).send({
                message: err.message || "Some error occurred while creating the director."
            });
        });
};

// Retrieve and return all admin from the database.
exports.findAll = (req, res) => {
    Director.find()
        .then(directors => {
            res.send(directors);
        }).catch(err => {
            res.status(500).send({
                message: err.message || "Some error occurred while retrieving directors."
            });
        });
};

// Find a single admin with a adminId
exports.findOne = (req, res) => {
    Director.findById(req.params.directorId)
        .then(director => {
            if (!director) {
                return res.status(404).send({
                    message: "director not found with id " + req.params.directorId
                });
            }
            res.send(director);
        }).catch(err => {
            if (err.kind === 'ObjectId') {
                return res.status(404).send({
                    message: "director not found with id " + req.params.directorId
                });
            }
            return res.status(500).send({
                message: "Error retrieving director with id " + req.params.directorId
            });
        });
};

// Update a admin identified by the adminId in the request
exports.update = (req, res) => {
    // Validate Request
    if (!req.body.cin) {
        return res.status(400).send({
            message: "director content can not be empty"
        });
    }

    // Find admin and update it with the request body
    Director.findByIdAndUpdate(req.params.directorId, {
        cin: req.body.cin || "Untitled director",
        nomPrenom: req.body.nomPrenom,
        idDepartement: req.body.idDepartement,
        numTelephone: req.body.numTelephone,
        email: req.body.email,
        login: req.body.login,
        password: req.body.password,
    }, { new: true })
        .then(director => {
            if (!director) {
                return res.status(404).send({
                    message: "director not found with id " + req.params.directorId
                });
            }
            res.send(director);
        }).catch(err => {
            if (err.kind === 'ObjectId') {
                return res.status(404).send({
                    message: "director not found with id " + req.params.directorId
                });
            }
            return res.status(500).send({
                message: "Error updating director with id " + req.params.directorId
            });
        });
};

// Delete a admin with the specified adminId in the request
exports.delete = (req, res) => {
    Director.findByIdAndRemove(req.params.directorId)
        .then(director => {
            if (!director) {
                return res.status(404).send({
                    message: "director not found with id " + req.params.directorId
                });
            }
            res.send({ message: "director deleted successfully!" });
        }).catch(err => {
            if (err.kind === 'ObjectId' || err.name === 'NotFound') {
                return res.status(404).send({
                    message: "director not found with id " + req.params.directorId
                });
            }
            return res.status(500).send({
                message: "Could not delete director with id " + req.params.directorId
            });
        });
};
© 2026 GrazzMean