def test_extract_module_info_not_main(self):
     info = [
         "Module",
         "firefloosy.exe",
         "24.0.0.4925",
         "firefox.pdb",
         "9FFDDF56AADE45988C759EF5ABAE53862",
         "0x00400000",
         "0x004e0fff",
         "0",
     ]
     d = DotDict()
     bpj._extract_module_info(info, d, 17)
     self.assertTrue("modules" in d)
     self.assertTrue(len(d.modules), 1)
     self.assertTrue("main_module" not in d)
     self.assertEqual(
         d.modules[0],
         {
             "filename": "firefloosy.exe",
             "version": "24.0.0.4925",
             "debug_file": "firefox.pdb",
             "debug_id": "9FFDDF56AADE45988C759EF5ABAE53862",
             "base_addr": "0x00400000",
             "end_addr": "0x004e0fff",
         },
     )
Esempio n. 2
0
 def test_extract_module_info_not_main(self):
     info = ['Module', 'firefloosy.exe', '24.0.0.4925', 'firefox.pdb',
             '9FFDDF56AADE45988C759EF5ABAE53862', '0x00400000',
             '0x004e0fff', '0']
     d = DotDict()
     bpj._extract_module_info(info, d, 17)
     assert 'modules' in d
     assert len(d.modules) == 1
     assert 'main_module' not in d
     expected = {
         "filename": 'firefloosy.exe',
         "version": '24.0.0.4925',
         "debug_file": 'firefox.pdb',
         "debug_id": '9FFDDF56AADE45988C759EF5ABAE53862',
         "base_addr": '0x00400000',
         "end_addr": '0x004e0fff',
     }
     assert d.modules[0] == expected
Esempio n. 3
0
 def test_extract_module_info(self):
     info = ['Module', 'firefox.exe', '24.0.0.4925', 'firefox.pdb',
             '9FFDDF56AADE45988C759EF5ABAE53862', '0x00400000',
             '0x004e0fff', '1']
     d = DotDict()
     bpj._extract_module_info(info, d, 17)
     ok_('modules' in d)
     ok_(len(d.modules), 1)
     eq_(d.main_module, 17)
     eq_(
         d.modules[0],
         {
             "filename": 'firefox.exe',
             "version": '24.0.0.4925',
             "debug_file": 'firefox.pdb',
             "debug_id": '9FFDDF56AADE45988C759EF5ABAE53862',
             "base_addr": '0x00400000',
             "end_addr": '0x004e0fff',
         }
     )
Esempio n. 4
0
 def test_extract_module_info_not_main(self):
     info = ['Module', 'firefloosy.exe', '24.0.0.4925', 'firefox.pdb',
             '9FFDDF56AADE45988C759EF5ABAE53862', '0x00400000',
             '0x004e0fff', '0']
     d = DotDict()
     bpj._extract_module_info(info, d, 17)
     self.assertTrue('modules' in d)
     self.assertTrue(len(d.modules), 1)
     self.assertTrue('main_module' not in d)
     self.assertEqual(
         d.modules[0],
         {
             "filename": 'firefloosy.exe',
             "version": '24.0.0.4925',
             "debug_file": 'firefox.pdb',
             "debug_id": '9FFDDF56AADE45988C759EF5ABAE53862',
             "base_addr": '0x00400000',
             "end_addr": '0x004e0fff',
         }
     )