!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/lib/4Suite/tests/Server/Client/Commands/   drwxr-xr-x
Free 1.94 GB of 27.03 GB (7.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_prime.py (2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import os, sha
from Ft import GetConfigVar
from Ft.Server import FTSERVER_NAMESPACE
from Ft.Server.Common import AclConstants
from Ft.Server.Common.ResourceTypes import ResourceType

from Server.Client.Core import test_helper

BASE_CONTAINER = 'cltest'

COMMAND_STUB = """<?xml version="1.0" encoding="UTF-8"?>
<ftss:Command xmlns:ftss="%s" full-name="%%s"/>
""" % FTSERVER_NAMESPACE

def InitRepo(tester,custom,command):

    tester.startGroup("Init the repo for command line tests")

    tester.startTest("Init %s" % BASE_CONTAINER)

    repo = test_helper.GetRepo(tester)
    if repo.hasResource(BASE_CONTAINER):
        repo.deleteResource(BASE_CONTAINER)
    repo.createContainer(BASE_CONTAINER)

    ddRoot = repo.fetchResource('/ftss/docdefs')
    if ddRoot.hasResource('def1'):
        ddRoot.deleteResource('def1')
    if ddRoot.hasResource('def2'):
        ddRoot.deleteResource('def2')

    if repo.hasResource('/ftss/data'):
        repo.deleteResource('/ftss/data')
    data = repo.createContainer('/ftss/data')
    path = os.path.join(GetConfigVar('DATADIR'), 'Data', 'Stylesheets',
                        'cl-container.xslt')
    data.createDocument('cl-container.xslt', open(path).read())

    uuRoot = repo.fetchResource('/ftss/users')
    if uuRoot.hasResource('test1'):
        uuRoot.deleteResource('test1')
    if uuRoot.hasResource('test2'):
        uuRoot.deleteResource('test2')

    if uuRoot.hasResource('testUser'):
        uuRoot.deleteResource('testUser')
    uuRoot.createUser('testUser',sha.new('testUser').hexdigest())

    #Add the command to be tested, just stuff some crap in for now
    CreateCommand(repo,command)

    custom(repo)
    repo.txCommit()

    tester.testDone()
    tester.groupDone()


def CreateCommand(repo, command):
    name = '.'.join(command)
    repoFile = '/ftss/commands/' + name
    if repo.hasResource(repoFile):
        repo.deleteResource(repoFile)

    doc = repo.createDocument(repoFile, COMMAND_STUB % name)
    doc.setAcl(AclConstants.EXECUTE_ACCESS,AclConstants.USERS_GROUP_NAME,1)


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