Beispiel #1
0
 def setup(self):
     self.editor = MockHexEditor()
     guess = FileGuess("../test_data/reassembly-test.xex")
     self.editor.load(guess)
     print(self.editor.document.segments)
     self.segment = self.editor.document.segments[0][6:6 + 0x125]
     print(self.segment)
Beispiel #2
0
 def get_data(self, orig):
     try:
         guess = FileGuess(self.uri)
     except fs.errors.FSError as e:
         self.error = "File load error: %s" % str(e)
         return
     data = guess.numpy
     if len(orig) < len(data):
         data = data[0:len(orig)]
     return data
Beispiel #3
0
 def load(self, path, segment="All"):
     guess = FileGuess(path)
     self.editor.load(guess)
     self.editor.find_segment("All")
     return self.editor.segment
Beispiel #4
0
 def setup(self):
     self.editor = MockHexEditor()
     guess = FileGuess("../test_data/pytest.atr")
     self.editor.load(guess)
     self.disasm = self.get_disasm()
     self.fast = self.disasm.fast
Beispiel #5
0
 def setup(self):
     self.editor = MockHexEditor()
     guess = FileGuess("../test_data/air_defense_v18.atr")
     self.editor.load(guess)