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


Viewing file:     testprint.py (1.67 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
## Derived from tests/testprint.c from gtk+ sources

import sys
import math
import cairo
import pango
import gtk

def request_page_setup(operation, context, page_nr, page_setup):
  ## Make the second page landscape mode a5
  if page_nr == 1:
      page_setup.set_orientation(gtk.PAGE_ORIENTATION_LANDSCAPE)
      page_setup.set_paper_size(gtk.PaperSize("iso_a5"))


def draw_page (operation, context, page_nr):
    cr = context.get_cairo()

    ## Draw a red rectangle, as wide as the paper (inside the margins)
    cr.set_source_rgb(1.0, 0, 0)
    cr.rectangle(0, 0, context.get_width(), 50)
  
    cr.fill()

    ## Draw some lines
    cr.move_to(20, 10)
    cr.line_to(40, 20)
    cr.arc(60, 60, 20, 0, math.pi)
    cr.line_to(80, 20)
  
    cr.set_source_rgb(0, 0, 0)
    cr.set_line_width(5)
    cr.set_line_cap(cairo.LINE_CAP_ROUND)
    cr.set_line_join(cairo.LINE_JOIN_ROUND)
  
    cr.stroke()

    ## Draw some text
    layout = context.create_layout()
    layout.set_text("Hello World! Printing is easy")
    layout.set_font_description(pango.FontDescription("sans 28"))

    cr.move_to(30, 20)
    cr.layout_path(layout)

    ## Font Outline
    cr.set_source_rgb(0.93, 1.0, 0.47)
    cr.set_line_width(0.5)
    cr.stroke_preserve()

    ## Font Fill
    cr.set_source_rgb(0, 0.0, 1.0)
    cr.fill()
  

def main(argv):
  ## Test some random drawing, with per-page paper settings
  print_ = gtk.PrintOperation()
  print_.set_nr_of_pages(2)
  print_.set_unit(gtk.UNIT_MM)
  print_.set_pdf_target("test.pdf")
  print_.connect("draw_page", draw_page)
  print_.connect("request_page_setup", request_page_setup)
  res = print_.run()
  return 0

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.0128 ]--