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


Viewing file:     getnotincomps.py (1.47 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/python
#
# Get a list of packages which are in the header list but aren't in the
# comps file explicitly or for dependencies
#
# Jeremy Katz <katzj@redhat.com>
#
# Copyright 2002, Red Hat, Inc.
#
# GPL blurb here

import os,sys,string
import rhpl.comps
import rpm

def usage():
    print "Usage: %s /path/to/tree arch [basepath]" % (sys.argv[0],)

def main():
    if len(sys.argv) < 3:
        usage()
        sys.exit(0)

    treedir = sys.argv[1]
    arch = sys.argv[2]
    if len(sys.argv) > 3:
        prod = sys.argv[3]
    else:
        prod = "RedHat/base"
    basedir = "%s/%s/%s/" % (treedir, arch, prod)

    hdlist = rpm.readHeaderListFromFile("%s/hdlist" %(basedir,))
    comps = rhpl.comps.Comps("%s/comps.xml" % (basedir,))
    usedpkgs = {}
    for group in comps.groups.values():
        new = group.packages
        while len(new) > 0:
            pkgs = new
            new = []
            for name in pkgs:
                if usedpkgs.has_key(name):
                    continue

                # if we don't have the key, go ahead and check it
                # and add its deps to new
                usedpkgs[name] = 1
                for pkg in comps.packages[name].dependencies:
                    if not usedpkgs.has_key(pkg) and pkg not in new:
                        new.append(pkg)

    for pkg in hdlist:
        if pkg[rpm.RPMTAG_NAME] not in usedpkgs.keys():
            print pkg[rpm.RPMTAG_NAME]
            
    

if __name__ == "__main__":
    main()

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