!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/lib/syslinux/   drwxr-xr-x
Free 40.63 GB of 127.8 GB (31.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     sys2ansi.pl (1.44 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# $Id: sys2ansi.pl,v 1.8 2003/07/01 00:49:31 hpa Exp $
#
# Perl script to convert a Syslinux-format screen to PC-ANSI
# to display in a color xterm or on the Linux console
#

@ansicol = (0,4,2,6,1,5,3,7);

$getting_file = 0;
$enable = 1;

while ( read(STDIN, $ch, 1) > 0 ) {
    if ( $ch eq "\x1A" ) {    # <SUB> <Ctrl-Z> EOF
    last;
    } elsif ( $ch eq "\x0C" ) {    # <FF>  <Ctrl-L> Clear screen
    print "\x1b[2J" if ( $enable && !$getting_file );
    } elsif ( $ch eq "\x0F" ) {    # <SI>  <Ctrl-O> Attribute change
    if ( !$getting_file ) {
        if ( read(STDIN, $attr, 2) == 2 ) {
        $attr = hex $attr;
        if ( $enable ) {
            print "\x1b[0;";
            if ( $attr & 0x80 ) {
            print "5;";
            $attr &= ~0x80;
            }
            if ( $attr & 0x08 ) {
            print "1;";
            $attr &= ~0x08;
            }
            printf "%d;%dm",
            $ansicol[$attr >> 4] + 40, $ansicol[$attr & 7] + 30;
        }
        }
    }
    } elsif ( $ch eq "\x18" ) {    # <CAN> <Ctrl-X> Display image
    # We can't display an image; pretend to be a text screen
    # Ignore all input until end of line
    $getting_file = 1;
    } elsif ( (ord($ch) & ~07) == 0x10 ) { # Mode controls
    $enable = (ord($ch) & 0x01); # Emulate the text screen
    } elsif ( $ch eq "\x0D" ) {    # <CR>  <Ctrl-M> Carriage return
    # Ignore
    } elsif ( $ch eq "\x0A" ) { # <LF>  <Ctrl-J> Line feed
    if ( $getting_file ) {
        $getting_file = 0;
    } else {
        print $ch if ( $enable );
    }
    } else {
    print $ch if ( $enable && !$getting_file );
    }
}

:: 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.0154 ]--