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


Viewing file:     test_postgres.py (1.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from Ft.Server.Server.Drivers import LoadDriverModule

def test_escape(tester):

    from Ft.Server.Server.Drivers.Postgres import Escapec

    tester.startGroup("Escape and Split")
    for i in ['Foo',
              "Foo'oo",
              "0123456789" * 1000,
              "0123'456789" * 1000,
              "0x001",
              "0x0A1",
              "%s"%chr(1),
              "%s"%chr(0),
              "\\",
              "01230x0456789" * 1000,
              "\n",
              ]:
        tester.startTest(repr(i[:10]))
        e = Escapec.escape(i)
        newE = ""
        for c in i:
            if ord(c) == 0:
                newE += "\\\\000"
            elif c == '\\':
                newE += '\\\\\\\\'
            elif c == '\'':
                newE += "\\'"
            else:
                newE += c
        tester.compare(newE,e)
        newE = ""
        for c in i:
            if ord(c) < 32:
                newE += "\\%03d" % int(oct(ord(c)))
            elif c == '\\':
                newE += '\\\\'
            else:
                newE += c
        o = Escapec.unescape(newE)
        tester.compare(i,o)
        tester.testDone()
    tester.groupDone()


def Test(tester):
    import test_driver
    import test_ftss_driver

    try:
        driverModule = LoadDriverModule('Postgres')
    except Exception, error:
        tester.warning(str(error))
        return

    test_escape(tester)

    props = {'DbName':test_driver.TEST_DBNAME,
             'Host':None,
             'Port':-1,
             'User':None,
             'Passwd':None}
    test_driver.Test(tester, driverModule, props)

    props['TYPE'] = 'Postgres'
    props = {'Driver':props}
    test_ftss_driver.Test(tester, props)
    return

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