Example #1
0
 def guess(self, fd, result, metadata):
     """ We need to see if its a PCAP file """
     DBFS.guess(self, fd, result, metadata)
     if 'tcpdump' in metadata['magic']:
         result.row("Selecting PCAP Virtual Filesystem automatically" ,**{'colspan':50,'class':'hilight'})
         return 120
     else:
         return -1
Example #2
0
 def guess(self, fd, result, metadata):
     """ We can only really handle mounted IO sources, we cant
     actually handle anything else
     """
     DBFS.guess(self, fd, result, metadata)
     if fd.__class__.__name__ == "Mounted":
         return 120
     else:
         return -1
Example #3
0
 def guess(self, fd, result, metadata):
     """ We can only really handle mounted IO sources, we cant
     actually handle anything else
     """
     DBFS.guess(self, fd, result, metadata)
     if fd.__class__.__name__ == 'Mounted':
         return 120
     else:
         return -1