diff --git a/regrippy/plugins/lastshutdown.py b/regrippy/plugins/lastshutdown.py new file mode 100644 index 0000000..fccfe22 --- /dev/null +++ b/regrippy/plugins/lastshutdown.py @@ -0,0 +1,33 @@ +# Plugin written by Tim Taylor, timtaylor3@yahoo.com +import struct +from Registry.RegistryParse import parse_windows_timestamp +from regrippy import BasePlugin, PluginResult, mactime + + +class Plugin(BasePlugin): + """Return the last shutdown time""" + __REGHIVE__ = "SYSTEM" + + def run(self): + + key = self.open_key(self.get_currentcontrolset_path() + r"\Control\Windows") + if not key: + return + + for v in key.values(): + if v.name() == "ShutdownTime": + binary = struct.unpack('