!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/doc/gnome-python2-libegg-2.14.2/recent/   drwxr-xr-x
Free 51.98 GB of 127.8 GB (40.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     populate-recent.py (1.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import egg.recent
import sys
import os

def populate_from_directory(model, dirname, level):
    for root, dirs, files in os.walk(dirname):
        for name in files:
            model.add("file://%s" % os.path.join(root, name))
        level -= 1
        if level == 0:
            break

## unfortunately, we need a main loop to trigger notifications, so any
## modifications done through this tool won't be known to other apps

def main(argv):
    if len(argv) < 3:
        print "Usage:\n"
        print "populate-recent --add <URI>"
        print "populate-recent --delete <URI>"
        print "populate-recent --recurse-dir <directory> [<level>]"
        sys.exit(1)

    model = egg.recent.RecentModel(egg.recent.RECENT_MODEL_SORT_NONE)
    model.set_limit(0)

    if argv[1] == "--add":
        print "Adding: %s" % argv[2]
        model.add(argv[2])
    elif argv[1] == "--delete":
        print "Deleting: %s" % argv[2]
        model.delete(argv[2])
    elif argv[1] == "--recurse-dir":
        try:
            level = int(argv[3])
        except IndexError:
            level = 1
        print "Adding files from: %s" % argv[2]
        populate_from_directory(model, argv[2], level)
    return 0

if __name__ == '__main__':
    sys.exit(main(sys.argv))

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