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


Viewing file:     lss16toppm (2.48 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
## $Id: lss16toppm,v 1.6 2004/12/14 23:03:28 hpa Exp $
## -----------------------------------------------------------------------
##   
##   Copyright 2001-2004 H. Peter Anvin - All Rights Reserved
##
##   This program is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License as published by
##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
##   Boston MA 02111-1307, USA; either version 2 of the License, or
##   (at your option) any later version; incorporated herein by reference.
##
## -----------------------------------------------------------------------

##
## lss16toppm:
## Convert an LSS-16 image to PPM
##
## Usage:
##
##	lss16toppm [-map] < file.lss > file.ppm
##
## The -map causes the color map to be output on stderr.
##

eval { use bytes; };
eval { binmode STDIN; };
eval { binmode STDOUT; };

$map = 0;
foreach $arg ( @ARGV ) {
    if ( $arg eq '-map' ) {
	$map = 1;
    } else {
	print STDERR "$0: Unknown option: $arg\n";
	exit 127;
    }
}

if ( read(STDIN, $header, 56) != 56 ) {
    print STDERR "$0: Short file\n";
    exit 1;
}

($magic, $xsize, $ysize, @colorset) = unpack("Vvvc48", $header);

if ( $magic != 0x1413f33d ) {
    print STDERR "$0: Invalid file format\n";
    exit 1;
}

%color = ();
for ( $i = 0 ; $i < 16 ; $i++ ) {
    $r = int((shift @colorset) * 255 / 63 + 0.5);
    $g = int((shift @colorset) * 255 / 63 + 0.5);
    $b = int((shift @colorset) * 255 / 63 + 0.5);

    $color{$i} = pack("ccc", $r, $g, $b);

    if ( $map ) {
	printf STDERR "#%02x%02x%02x=%d\n", $r, $g, $b, $i;
    }
}

sub get_nybble() {
    my($ch,$n);
    if ( defined($nybble_buf) ) {
	$n = $nybble_buf;
	undef $nybble_buf;
    } else {
	if ( read(STDIN, $ch, 1) != 1 ) {
	    print STDERR "$0: Short read on input (file corrupt)\n";
	    exit 1;
	}
	$ch = ord($ch);
	$nybble_buf = $ch >> 4;
	$n = $ch & 0xF;
    }
    return $n;
}

print "P6\n";
print "$xsize $ysize\n";
print "255\n";

for ( $y = 0 ; $y < $ysize ; $y++ ) {
    $x = 0;
    $last = 0;
    undef $nybble_buf;		# Nybble buffer starts clear on each line
    while ( $x < $xsize ) {
	$n = get_nybble();

	if ( $n != $last ) {
	    print $color{$n};
	    $last = $n;
	    $x++;
	} else {
	    $c = get_nybble();
	    if ( $c == 0 ) {
		# Double-nybble run
		$c = get_nybble();
		$c += get_nybble() << 4;
		$c += 16;
	    }
	    # Truncate overlong runs
	    $c = $xsize-$x if ( $c > $xsize-$x );
	    # Output run
	    print $color{$n} x $c;
	    $x += $c;
	}
    }
}

bool(false)

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