Exemplo n.º 1
0
Arquivo: shell.py Projeto: vertrex/DFF
    def __init__(self, parent=None, log=''):
        QTextEdit.__init__(self, parent)
        self.setupUi(self)
        self.name = self.windowTitle()
        self.hookTermSize()
        Console.__init__(self, sigstp=False)
        self.completion = completion.Completion(self)
        taskmanager = TaskManager()
        self.vfs = vfs.vfs()
        self.log = log or ''
        if parent is None:
            self.eofKey = Qt.Key_D
        else:
            self.eofKey = None
        self.line    = QString()
        self.lines   = []
        self.point   = 0
        self.more    = 0
        self.reading = 0
        self.pointer = 0
        self.cursor_pos   = 0

        self.fgcolor = QColor("white")
        self.selcolor = QColor("green")

        self.preloop()
        self.redirect = RedirectIO()
        self.sig = "SSputtext(QString)"
        self.connect(self, SIGNAL(self.sig), self.puttext)
        self.connect(self, SIGNAL("Sputtext(QString)"), self.puttext)
        self.redirect.addparent(self, ["dff.ui.gui.widget.shell", "dff.ui.console.console", "dff.ui.console.completion", "dff.ui.console.line_to_arguments", "dff.api.taskmanager.taskmanager", "dff.api.taskmanager.scheduler", "dff.api.taskmanager.processus"], True)
        self.writePrompt()
Exemplo n.º 2
0
    def __init__(self, parent=None, log=''):
        QTextEdit.__init__(self, parent)
        Console.__init__(self, sigstp=False)
        self.setupUi(self)
        self.name = self.windowTitle()
	self.completion = completion.Completion(self)
        self.hookTermSize()
	taskmanager = TaskManager()
        self.vfs = vfs.vfs()
        self.log = log or ''
        if parent is None:
            self.eofKey = Qt.Key_D
        else:
            self.eofKey = None
        self.line    = QString()
        self.lines   = []
        self.point   = 0
        self.more    = 0
        self.reading = 0
        self.pointer = 0
        self.cursor_pos   = 0

        self.fgcolor = QColor("white")
        self.selcolor = QColor("green")

        self.preloop()
	self.redirect = RedirectIO()
	self.sig = "Sputtext"
	self.connect(self, SIGNAL(self.sig), self.puttext)
	self.redirect.addparent(self, ["dff.ui.gui.widget.shell", "dff.ui.console.console", "dff.ui.console.completion", "dff.ui.console.line_to_arguments", "dff.api.taskmanager.taskmanager", "dff.api.taskmanager.scheduler", "dff.api.taskmanager.processus"], True)
        self.writePrompt()
Exemplo n.º 3
0
"""@package dff
Digital-forensic framework launcher
"""
import os, sys, getopt

from dff.api.manager.manager import ApiManager

from dff.ui.gui.gui import GUI
from dff.ui.console.console import Console
from dff.ui.ui import parseArguments

MODULES_PATHS = ["dff/modules"]


def fg():
    """Launch shell loop"""
    ui.launch()


if __name__ == "__main__":
    """You can place some script command here for testing purpose"""
    arguments = parseArguments()
    if not arguments.graphical or arguments.batch:
        ui = console = Console(arguments=arguments)
        console.loadModules(MODULES_PATHS)
        if arguments.batch:
            console.onecmd("batch " + arguments.batch, False)
    if arguments.graphical:
        ui = gui = GUI(arguments)
    ui.launch(MODULES_PATHS)
#

"""@package dff
Digital-forensic framework launcher
"""
import os, sys, getopt

from dff.api.manager.manager import ApiManager

from dff.ui.gui.gui import GUI
from dff.ui.console.console import Console
from dff.ui.ui import Usage

MODULES_PATHS = ["dff/modules"]

def fg():
    """Launch shell loop"""
    ui.launch()

if __name__ == "__main__":
    """You can place some script command here for testing purpose"""
    argv = Usage(sys.argv[1:])    
    if argv.graphical == 0 or argv.batch:
       ui = console = Console(debug=argv.debug, verbosity=argv.verbosity)
       console.loadModules(MODULES_PATHS)
       if argv.batch:
         console.onecmd("batch " + argv.batch, False)
    if argv.graphical:
        ui = gui = GUI(argv.debug, argv.verbosity)
    ui.launch(MODULES_PATHS)
Exemplo n.º 5
0
# Author(s):
#  Solal Jacob <*****@*****.**>
#

"""@package dff
Digital-forensic framework launcher
"""
import os, sys, getopt

from dff.api.manager.manager import ApiManager

from dff.ui.gui.gui import GUI
from dff.ui.console.console import Console
from dff.ui.ui import Usage

MODULES_PATHS = ["dff/modules"]

def fg():
    """Launch shell loop"""
    ui.launch()

if __name__ == "__main__":
    """You can place some script command here for testing purpose"""
    argv = Usage(sys.argv[1:])
    if argv.batch:
       console = Console(debug=argv.debug, verbosity=argv.verbosity)
       console.loadModules(MODULES_PATHS)
       console.onecmd("batch " + argv.batch, False)
    ui = GUI(argv.debug, argv.verbosity)
    ui.launch(MODULES_PATHS)
Exemplo n.º 6
0
# Author(s):
#  Solal Jacob <*****@*****.**>
#

"""@package dff
Digital-forensic framework launcher
"""
import os, sys, getopt

from dff.api.manager.manager import ApiManager

from dff.ui.gui.gui import GUI
from dff.ui.console.console import Console
from dff.ui.ui import parseArguments

MODULES_PATHS = ["dff/modules"]

def fg():
    """Launch shell loop"""
    ui.launch()

if __name__ == "__main__":
    """You can place some script command here for testing purpose"""
    arguments = parseArguments()
    if arguments.batch:
       console = Console(arguments=arguments)
       console.loadModules(MODULES_PATHS)
       console.onecmd("batch " + arguments.batch, False)
    ui = GUI(arguments)
    ui.launch(MODULES_PATHS)