示例#1
0
文件: timeline.py 项目: halbbob/dff
 def __init__(self):
   Module.__init__(self, 'timeline', Timeline)
   self.conf.addArgument({"name": "file",
                          "description": "Text file to display",
                          "input": Argument.Required|Argument.Single|typeId.Node})
   self.tags = 'Statistics'
   self.icon = ":date"
示例#2
0
文件: hexeditor.py 项目: halbbob/dff
  def __init__(self):
    Module.__init__(self, "hexadecimal", ViewerHexa)
    self.conf.addArgument({"input": Argument.Required|Argument.Single|typeId.Node,
                           "name": "file",
                           "description": "File to display as hexadecimal"})
    self.conf.addArgument({"name": "preview",
			   "description": "Preview mode",
			   "input": Argument.Empty})
    self.tags = "Viewers"
    self.icon = ":hexedit.png"
示例#3
0
文件: metaexif.py 项目: halbbob/dff
  def __init__(self):
    Module.__init__(self, "metaexif", MetaEXIF)
    self.conf.addArgument({"name": "file",
                           "description": "file for extracting metadata",
                           "input": Argument.Required|Argument.Single|typeId.Node})
    self.conf.addConstant({"name": "mime-type", 
 	                   "type": typeId.String,
 	                   "description": "managed mime type",
 	                   "values": ["jpeg", "TIFF"]})
    self.flags = ["single"]
    self.tags = "Metadata"
示例#4
0
文件: pdf.py 项目: udgover/pdfview
  def __init__(self):
    Module.__init__(self, "pdf", PDF)
    self.conf.addArgument({"name": "file",
                           "description": "Pdf file to display",
                           "input": Argument.Required|Argument.Single|typeId.Node})
    self.conf.addConstant({"name": "mime-type", 
 	                   "type": typeId.String,
 	                   "description": "managed mime type",
 	                   "values": ["PDF"]})
    self.tags = "Viewers"
    self.flags = ["gui"]
    self.icon = ":text"	
示例#5
0
文件: unzip.py 项目: halbbob/dff
  def __init__(self):
    Module.__init__(self, "unzip", UNZIP)
    self.conf.addArgument({"name": "file",
                           "input": Argument.Required|Argument.Single|typeId.Node,
                           "description": "zip file to decompress"
                           })
    self.conf.addConstant({"name": "mime-type", 
 	                   "type": typeId.String,
 	                   "description": "managed mime type",
 	                   "values": ["Zip"]})
    self.tags = "Archives"
    self.icon = ":zip"
示例#6
0
文件: player.py 项目: halbbob/dff
 def __init__(self):
  """Video and Audio player"""
  Module.__init__(self, "player", PLAYER)
  self.conf.addArgument({"name": "file",
                         "description": "multimedia file to play",
                         "input": Argument.Required|Argument.Single|typeId.Node})
  self.tags = "Viewers"
  #for mimeType in Phonon.BackendCapabilities.availableMimeTypes():
    #self.conf.add_const("mime-type", str(mimeType))
  self.conf.addConstant({"name": "mime-type", 
                         "type": typeId.String,
                         "description": "managed mime type",
                         "values": ["video", "audio"]})
  self.icon = ":multimedia"
示例#7
0
  def __init__(self):
    Module.__init__(self, "pictures", ImageView)
    self.conf.addArgument({"name": "file",
                           "description": "Picture file to display",
                           "input": Argument.Required|Argument.Single|typeId.Node})
    self.conf.addArgument({"name": "preview",
			   "description": "Preview mode",
			   "input": Argument.Empty})
    self.conf.addConstant({"name": "mime-type", 
 	                   "type": typeId.String,
 	                   "description": "managed mime type",
 	                   "values": ["JPEG", "GIF", "PNG", "PC bitmap", "TIFF", "PBM", "PGM", "PPM", "XBM", "XPM"]})
    self.tags = "Viewers"
    self.icon = ":lphoto"
示例#8
0
文件: find.py 项目: halbbob/dff
 def __init__(self):
     Module.__init__(self, "find", FIND)
     self.conf.addArgument({"name": "filter_name",
                            "description": "Name of the filter",
                            "input": Argument.Single|Argument.Required|typeId.String})
     self.conf.addArgument({"name": "expression",
                            "description": 'Expression provided to filter engine (e.g: name == w("*.jp?g", i)',
                            "input": Argument.Single|Argument.Required|typeId.String})
     self.conf.addArgument({"name": "root_node",
                            "description": "node from which apply filter expression",
                            "input": Argument.Single|Argument.Required|typeId.Node})
     self.conf.addArgument({"name": "recursive",
                            "description": "apply filter expression in recursive way (on all thre subtree from provided root_node)",
                            "input": Argument.Empty})
     self.conf.addArgument({"name": "save_result",
                            "description": "save results by creating links to matching nodes",
                            "input": Argument.Empty})
     self.conf.addArgument({"name": "verbose",
                            "description": "outputs matching node on console during processing",
                            "input": Argument.Empty})
     self.tags = "Search"
示例#9
0
文件: carverui.py 项目: halbbob/dff
 def __init__(self):
   Module.__init__(self, 'carverui', CarverUi)
   self.conf.addArgument({"name": "file",
                          "input": typeId.Node|Argument.Single|Argument.Required,
                          "description": "Node to search data in"})
   self.conf.addArgument({"name": "block-aligned",
                          "input": Argument.Empty,
                          "description": "if setted only search signatures at the begining of blocks (faster but less accurate)"})
   self.conf.addArgument({"name": "start-offset",
                          "input": typeId.UInt64|Argument.Single|Argument.Optional,
                          "description": "offset from which to start carving"})
   for mimetype in filetypes.keys():
       predefined = []
       for subtype in filetypes[mimetype].keys():
           predefined.append(subtype)
       self.conf.addArgument({"name": mimetype,
                              "input": typeId.String|Argument.List|Argument.Optional,
                              "description": "managed types",
                              "parameters": {"type": Parameter.NotEditable,
                                             "predefined": predefined}
                              })
   self.tags = "builtins"
示例#10
0
 def __init__(self):
     Module.__init__(self, 'mfso_contiguous', MfsoContiguous)
     self.conf.add("parent", "node")
     self.tags = "file system"
示例#11
0
 def __init__(self):
     Module.__init__(self, 'mfso_contiguous', MfsoContiguous)
     self.conf.add("parent", "node")
     self.tags = "file system"
示例#12
0
文件: mfsotest.py 项目: vertrex/DFF
 def __init__(self):
     Module.__init__(self, 'mfsotest', MfsoTest)
     self.conf.add("parent", "node")
     self.tags = "file system"
示例#13
0
  def __init__(self):
    Module.__init__(self, "post_process", POST_PROCESS)
    self.conf.addArgument({"name":"module",
			   "description": "Module to add to the post processing list",
			   "input" : Argument.Required|Argument.Single|typeId.String}) 	
    self.tags = "builtins"
示例#14
0
文件: batch.py 项目: halbbob/dff
  def __init__(self):
    Module.__init__(self, "batch", BATCH)
    self.conf.addArgument({"name":"path",
			   "description": "Path to a dff batch file",
			   "input" : Argument.Required|Argument.Single|typeId.Path}) 	
    self.tags = "builtins"
示例#15
0
文件: carvergui.py 项目: halbbob/dff
 def __init__(self):
   Module.__init__(self, 'carvergui', CarverGui)
   self.conf.addArgument({"name": "file",
                          "input": typeId.Node|Argument.Single|Argument.Required,
                          "description": "Node to search data in"})
   self.tags = "Search"