Beispiel #1
0
 def chm(self):
     # all chm files suck
     self.interesting = True
     chmfile = CHMFile()
     chmfile.LoadCHM(self.file)
     self.findings.append("CHM file locale: %s" % ", ".join(chmfile.GetLCID()))
     chmfile.CloseCHM()
Beispiel #2
0
 def open(self, filename):
     if CHMFile.LoadCHM(self, filename) != 1:
         raise IOError, "Can't load File '%s'" % filename
     self.nodes = self._get_nodes()
     if not self.nodes:
         raise ChmFileException, "Can't find Content Tree"