shell bypass 403

GrazzMean-Shell Shell

Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 3.15.190.254
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : User.js
const mongoose = require('mongoose');
const { Schema } = mongoose;
const notificationSchema = require('./notificationSchema')

const passwordRegex = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*]).{8,}$/;
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

const providerSchema = new Schema({
    id: {
        type: String,
    },
    type: {
        type: String
    }
});

const personalDocumentsSchema = new Schema({
    title: {
        type: String,
    },
    fileUrl: {
        type: String
    }
});

const experienceSchema = new Schema({
    title: {
        type: String,
        required: true
    },
    employementType: {
        type: String,
        required: true
    },
    companyName: {
        type: String,
        required: true
    },
    location: {
        type: String,
        required: true
    },
    locationType: {
        type: String,
        required: true
    },
    currentlyWorking: {
        type: Boolean,
        default: false
    },
    startingDate: {
        type: Date,
        required: true
    },
    endingDate: {
        type: Date
    },
    description: {
        type: String
    },
    fileUrl: {
        type: String
    }
});
const volunteerExperiencesSchema = new Schema({
    title: {
        type: String,
        required: true
    },
    companyName: {
        type: String,
        required: true
    },
    cause: {
        type: String,
        required: true
    },
    currentlyWorking: {
        type: Boolean,
        default: false
    },
    startingDate: {
        type: Date,
        required: true
    },
    endingDate: {
        type: Date
    },
    fileUrl: {
        type: String
    }
});

const educationSchema = new Schema({
    institute: {
        type: String,
        required: true
    },
    degree: {
        type: String,
        required: true
    },
    startingDate: {
        type: Date,
        required: true
    },
    endingDate: {
        type: Date
    },
    fileUrl: {
        type: String
    }
})
const licenseCertificationsSchema = new Schema({
    title: {
        type: String,
        required: true
    },
    organization: {
        type: String,
        required: true
    },
    issueDate: {
        type: Date,
        required: true
    },
    credentialUrl: {
        type: String
    },
    fileUrl: {
        type: String
    }
})

const SocialSchema = new Schema({
    platform: {
        type: String,
    },
    username: {
        type: String
    },
    baseUrl: {
        type: String
    }
});

const profileVideoSchema = new Schema({
    poster: {
        type: String,
    },
    url: {
        type: String,
        required: true
    }
});

const emailSchema = new Schema({
    email: {
        type: String,
        unique: true,
        validate: {
            validator: function (value) {
                return emailRegex.test(value);
            },
            message: 'Please provide a valid email address.'
        }
    },
    verified: {
        type: Boolean,
        default: false
    },
    provider: [{
        type: providerSchema
    }]
});

const userSchema = new Schema({
    fullName: {
        type: String,
        required: true
    },
    subHeading: {
        type: String,
    },
    jobTitle: {
        type: String,
    },
    location: {
        type: String,
    },
    primaryEmail: {
        type: emailSchema,
        required: true,
    },
    role: {
        type: String,
        enum: ['user', 'admin'],
        default: 'user'
    },
    password: {
        type: String,
        validate: {
            validator: function (value) {
                return passwordRegex.test(value);
            },
            message: 'Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one digit, and one special character.'
        }
    },
    profilePic: {
        type: String,
    },
    // resume: {
    //     type: String,
    // },
    // coverLetter: {
    //     type: String,
    // },
    personalDocuments: [{
        type: personalDocumentsSchema
}],
    coverPhoto: {
        type: String,
    },
    profileVideo: {
        type: profileVideoSchema,
    },
    phone: {
        type: String,
    },
    suburb: {
        type: String,
    },
    about: {
        type: String,
    },
    address: {
        type: String,
    },
    portfolio: {
        type: String,
    },
    socialLinks: [{
        type: SocialSchema
    }],
    educationLevel: {
        type: String,
    },
    skills: [{
        type: String,
    }],
    industryInterest: {
        type: String,
    },
    weeksOfAvailablity: {
        type: String,
    },
    workType: {
        type: String,
    },
    workClassification: {
        type: String,
    },
    preferredJobLocation: [{
        type: String,
    }],
    positionTypeInterest: {
        type: String,
    },
    experience: {
        type: Number,
    },
    salaryExpectation: {
        type: Number,
    },
    infoRequired: {
        type: Boolean,
        default: true
    },
    projects: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'project'
    }],
    connection: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'connection'
    }],
    experiences: [{
        type: experienceSchema,
    }],
    volunteerExperiences: [{
        type: volunteerExperiencesSchema,
    }],
    licenseCertification: [{
        type: licenseCertificationsSchema,
    }],
    educations: [{
        type: educationSchema,
    }],
    notifications: [notificationSchema]
}, { timestamps: true });

// Pre-save middleware to add baseUrl to socialLinks in the User schema
userSchema.pre('save', function (next) {
    const platformBaseUrls = {
        facebook: 'https://www.facebook.com/',
        instagram: 'https://www.instagram.com/',
        twitter: 'https://www.twitter.com/',
        linkedin: 'https://www.linkedin.com/in/',
        behance: 'https://www.behance.net/',
        pinterest: 'https://www.pinterest.com/',
        dribbble: 'https://dribbble.com/',
        linktree: 'https://linktr.ee/',
    };

    // Iterate over socialLinks and set the baseUrl
    if (this.socialLinks && this.socialLinks.length > 0) {
        this.socialLinks.forEach(link => {
            link.baseUrl = platformBaseUrls[link.platform.toLowerCase()] || null;
        });
    }

    next();
});

const User = mongoose.model('user', userSchema);
module.exports = User;
© 2025 GrazzMean-Shell