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


Viewing file:     pangocairo-simple.py (1.71 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#! /usr/bin/env python
import sys
import math
import pango
import cairo
import pangocairo

RADIUS = 150

def draw_text(cr):
    N_WORDS = 10
    FONT = "Sans Bold 27"

    # Center coordinates on the middle of the region we are drawing
    cr.translate(RADIUS, RADIUS);

    # Create a PangoLayout, set the font and text */
    layout = cr.create_layout()

    layout.set_text("Text")
    layout.set_font_description(pango.FontDescription(FONT))

    # Draw the layout N_WORDS times in a circle
    for i in range(N_WORDS):
        angle = (360 * i) / N_WORDS;
        cr.save()

        # Gradient from red at angle == 60 to blue at angle == 300
        red   = (1 + math.cos((angle - 60)*math.pi/180))/2
        cr.set_source_rgb(red, 0, 1 - red)
        cr.rotate(angle*math.pi/180)

        # Inform Pango to re-layout the text with the new transformation */
        cr.update_layout(layout)

        width, height = layout.get_size()
        cr.move_to(-width/pango.SCALE/2, -RADIUS)
        cr.show_layout(layout)

        cr.restore()

def main(argv):
    if len(argv) != 2:
        print >> sys.stderr, "Usage: cairosimple OUTPUT_BASENAME\n"
        return 1

    filename = argv[1]
    surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 2*RADIUS, 2*RADIUS)
    cr = pangocairo.CairoContext(cairo.Context(surface))
    cr.set_source_rgb(1.0, 1.0, 1.0)
    cr.rectangle(0, 0, 2*RADIUS, 2*RADIUS)
    cr.fill()
    draw_text(cr)

    surface.write_to_png(filename + ".png")

    ## output also a PDF file
    surface = cairo.PDFSurface(filename + ".pdf", 2*RADIUS, 2*RADIUS)
    cr = pangocairo.CairoContext(cairo.Context(surface))
    draw_text(cr)
    cr.show_page()
    surface.finish()


if __name__ == '__main__':
    sys.exit(main(sys.argv))

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