adjust the find_aslr_shift and mac_proc_maps plugins for proper widths of long/unsigned long values

This commit is contained in:
iMHLv2
2013-03-28 16:29:52 +00:00
parent a625bd7389
commit a024bd336d
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class mac_find_aslr_shift(common.AbstractMacCommand):
yield self.profile.shift_address
def render_text(self, outfd, data):
self.table_header(outfd, [("DTB Value", "[addr]")])
self.table_header(outfd, [("DTB Value", "#018x")])
for shift_address in data:
if shift_address == 0:
debug.error("Shift addresses are only required on 10.8+ images")
+2 -3
View File
@@ -42,12 +42,11 @@ class mac_proc_maps(pslist.mac_pslist):
map = map.links.next
def render_text(self, outfd, data):
self.table_header(outfd, [("Start", "[addrpad]"),
("End", "[addrpad]"),
self.table_header(outfd, [("Start", "#018x"),
("End", "#018x"),
("Perms", "9"),
("Map Name", "")])
## FIXME: [addrpad] gets truncated here for some reason
for (proc, map) in data:
self.table_row(outfd,
map.links.start,