Linux - simplify logic in check_idt

This commit is contained in:
atcuno
2013-09-26 18:11:25 +00:00
parent 644d47d9ea
commit ad4bf2d0cb
+9 -8
View File
@@ -63,14 +63,15 @@ class linux_check_idt(linux_common.AbstractLinuxCommand):
idt_addr = ent.Address
if idt_addr != 0 and not idt_addr in sym_addrs:
hooked = 1
sym_name = "HOOKED"
else:
hooked = 0
sym_name = self.profile.get_symbol_by_address("kernel", idt_addr)
yield(i, idt_addr, sym_name, hooked)
if idt_addr != 0:
if not idt_addr in sym_addrs:
hooked = 1
sym_name = "HOOKED"
else:
hooked = 0
sym_name = self.profile.get_symbol_by_address("kernel", idt_addr)
yield(i, idt_addr, sym_name, hooked)
def render_text(self, outfd, data):