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


Viewing file:     test_session.py (2.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |


from Ft.Server.Server import FtServerServerException, Error

import test_helper

def test_create(tester):

    tester.startTest("Session Creation")

    repo = test_helper.GetRepo(tester)

    tester.compare(0,repo.hasSession())
    global sid
    sid = repo.createSession(123)
    tester.compare(1,repo.hasSession())
    repo.txCommit()
    tester.testDone()


    tester.startTest("Get Session")
    repo = test_helper.RetrieveSession(tester,sid,123)
    tester.compare(tester.test_data['userName'],repo.getAclIdent())
    tester.compare(1,repo.hasSession())
    repo.txRollback()
    tester.testDone()

    tester.startTest("Get Session Errors")
    tester.testException(test_helper.RetrieveSession,(tester,sid,321),FtServerServerException,{'code':Error.INVALID_SESSION})
    tester.testException(test_helper.RetrieveSession,(tester,'123',123),FtServerServerException,{'code':Error.INVALID_SESSION})
    tester.testDone()


def test_session_data(tester):

    tester.startTest("Session Data")

    #Testing the exception killed the session id so create a new one
    repo = test_helper.GetRepo(tester)
    global sid
    sid = repo.createSession(123)
    repo.txCommit()
   

    repo = test_helper.RetrieveSession(tester,sid,123)

    repo.setSessionData('foo','bar')
    tester.compare('bar',repo.getSessionData('foo'))
    tester.compare(None,repo.getSessionData('foo2'))
    repo.txCommit()

    repo = test_helper.RetrieveSession(tester,sid,123)

    repo.setSessionData('foo','bar')
    tester.compare('bar',repo.getSessionData('foo'))
    tester.compare(None,repo.getSessionData('foo2'))
    repo.txRollback()


    tester.testDone()


def test_invalidate(tester):

    tester.startTest("Invalidate Session")

    repo = test_helper.RetrieveSession(tester,sid,123)

    repo.invalidateSession()

    repo.txCommit()

    tester.testException(test_helper.RetrieveSession,(tester,sid,123),FtServerServerException,{'code':Error.INVALID_SESSION})

    tester.testDone()
    


def Test(tester):

    test_create(tester)
    test_session_data(tester)
    test_invalidate(tester)

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