!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/python2.4/site-packages/Ft/Xml/Xslt/Debugger/   drwxr-xr-x
Free 3.38 GB of 27.03 GB (12.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

import code, string
import DebugCommands

g_commandDict = {'r':DebugCommands.RUN,
                 'run':DebugCommands.RUN,
                 'q':DebugCommands.QUIT,
                 'quit':DebugCommands.QUIT,
                 't':DebugCommands.TEMPLATE,
                 'template':DebugCommands.TEMPLATE,
                 'p':DebugCommands.PRINT,
                 'print':DebugCommands.PRINT,
                 'ls':DebugCommands.LIST_SHEET,
                 'bt':DebugCommands.BACK_TRACE,
                 's':DebugCommands.STEP,
                 'step':DebugCommands.STEP,
                 'n':DebugCommands.NEXT,
                 'next':DebugCommands.NEXT,
                 'test':DebugCommands.TEST,
                 'e':DebugCommands.EVAL,
                 'eval':DebugCommands.EVAL,
                 'm':DebugCommands.MATCH,
                 'match':DebugCommands.MATCH,
                 'a':DebugCommands.AVT,
                 'avt':DebugCommands.AVT,
                 'lt':DebugCommands.LIST_TEMPLATE,
                 'break':DebugCommands.SET_BREAK,
                 'b':DebugCommands.SET_BREAK,
                 'lb':DebugCommands.LIST_BREAK,
                 'db':DebugCommands.DELETE_BREAK,
                 'h':DebugCommands.HELP,
                 'help':DebugCommands.HELP,
                 }


class TerminalInputHandler:

    def __init__(self):
        
        self.console = code.InteractiveConsole({})
        self.lastCommand = None




    def getNextCommand(self,outputHandler):

        try:
            cmd = self.console.raw_input(">>> ")
        except EOFError:
            raise SystemExit()
        


        args = ()
        index = string.find(cmd,' ')
        if index != -1:
            args = []
            args = string.split(cmd[index+1:],',')
            cmd = cmd[:index]

        if self.lastCommand and not cmd:
            cmd = self.lastCommand
        self.lastCommand = cmd

        if not g_commandDict.has_key(cmd):
            outputHandler.display_error("Unknown Command '%s'" % cmd)
            return None

        return g_commandDict[cmd],args




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