Minor style tweaks and mass changes across the codebase because of it.

This commit is contained in:
Mike Auty
2018-12-17 12:46:14 +00:00
parent 76e81eb478
commit e65a00894a
35 changed files with 72 additions and 125 deletions
+1 -2
View File
@@ -92,8 +92,7 @@ class Bash(plugins.PluginInterface, timeliner.TimeLinerInterface):
plugin = pslist.PsList.list_tasks
for row in self._generator(
plugin(self.context, self.config['primary'], self.config['vmlinux'], filter = filt)):
for row in self._generator(plugin(self.context, self.config['primary'], self.config['vmlinux'], filter = filt)):
_depth, row_data = row
description = "{} ({}): \"{}\"".format(row_data[0], row_data[1], row_data[3])
yield (description, timeliner.TimeLinerType.CREATED, row_data[2])
@@ -94,8 +94,7 @@ class Check_syscall(plugins.PluginInterface):
md = capstone.Cs(capstone.CS_ARCH_X86, mode)
try:
func_addr = self.context.symbol_space.get_symbol(vmlinux.name + constants.BANG +
syscall_entry_func).address
func_addr = self.context.symbol_space.get_symbol(vmlinux.name + constants.BANG + syscall_entry_func).address
except exceptions.SymbolError as e:
# if we can't find the disassemble function then bail and rely on a different method
return 0