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


Viewing file:     headers.py (1.79 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/python

# class defination for the HeaderList and maybe Header objects?
#
#  Ideally, this will include it's own memory and disk caching, so
#  that the retrieveal classes can be made more generic
#
# $Id: headers.py,v 1.9 2003/10/08 02:35:22 alikins Exp $

import sys
import rpcServer
import repoDirector
import rpmSource



# we do all the list to tuple munging here. I dont want
# to have to force it at a higher level, and I dont want
# headerCache to have to care
class HeaderList:
    _cache = rpmSource.HeaderCache()
    def __init__(self):
        self.repos = repoDirector.initRepoDirector()
        
        pass

    def cache(self):
        return id(self._cache)

    # items are in the format of a tuple of format
    # (name, version, release, epoch, arch)
    def __getitem__(self,item):
        itemtuple = tuple(item[:5])
        if self._cache.has_key(itemtuple):
            return self._cache[itemtuple]
        else:
            self.__retrievePackage(item)
            return self._cache[itemtuple]

    def __retrievePackage(self,item):
        # need to make sure headerSource isnt populating the cache as well
        hdr, sourceType = rpcServer.doCall(self.repos.getHeader, item)
        # always populate the cache when we fetch a package
        self._cache[tuple(item[:5])] = hdr

    def __setitem__(self,item,value):
        self._cache[tuple(item[:5])] = value

    def getLite(self, item):
        return self._cache.getLite(tuple(item[:5]))

    def keys(self):
        return self._cache.keys()

    def values(self):
        return self._cache.values()

    def __delitem__(self, item):
        del self._cache[tuple(item[:5])]

def initHeaderList():
    global hdlist

    try:
        hdlist = hdlist
    except NameError:
        hdlist = HeaderList()

    return hdlist

    

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