!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/bin/X11/./../../lib/evolution-openldap/../python2.4/site-packages/Ft/Lib/DistExt/   drwxr-xr-x
Free 5.03 GB of 27.03 GB (18.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     InstallDocs.py (2.31 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import os
from distutils.core import Command

class InstallDocs(Command):

    command_name = 'install_docs'

    description = "install documentation"

    user_options = [
        ('install-dir=', 'd', "directory to install documentation to"),
        ('build-dir=','b', "build directory (where to install from)"),
        ('force', 'f', "force installation (overwrite existing files)"),
        ('skip-build', None, "skip the build steps"),
        ]

    boolean_options = ['force', 'skip-build']

    def initialize_options(self):
        self.install_dir = None
        self.force = None
        self.build_dir = None
        self.skip_build = None
        self.outfiles = []
        self.html_dir = None
        return

    def finalize_options(self):
        self.set_undefined_options('build', ('build_docs', 'build_dir'))
        self.set_undefined_options('build_docs', ('html_dir', 'html_dir'))
        self.set_undefined_options('install',
                                   ('install_docs', 'install_dir'),
                                   ('skip_build', 'skip_build'),
                                   ('force', 'force'),
                                   )
        return

    def get_inputs(self):
        inputs = []
        build_docs = self.get_finalized_command('build_docs')
        inputs.extend(build_docs.get_outputs())
        return inputs

    def get_outputs(self):
        return self.outfiles

    def run(self):
        if not self.skip_build:
            self.run_command('build_docs')

        if os.path.isdir(self.build_dir):
            self.mkpath(self.install_dir)
            for src_name in self.get_inputs():
                # Find the size of the build path prefix
                common_size = len(self.build_dir)
                if self.build_dir and self.build_dir[-1] != os.sep:
                    common_size = common_size + 1

                # Trim off the build directory
                base_name = src_name[common_size:]
                dst_name = os.path.join(self.install_dir, base_name)
                self.mkpath(os.path.dirname(dst_name))

                # Copy it
                self.copy_file(src_name, dst_name)
                self.outfiles.append(dst_name)
        else:
            self.warn("'%s' does not exist -- no documents to install" %
                      self.build_dir)
        return

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0046 ]--