Trees | Indices | Help |
|
---|
|
1 # Rekall Memory Forensics 2 # Copyright 2016 Google Inc. All Rights Reserved. 3 # 4 # This program is free software; you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation; either version 2 of the License, or (at 7 # your option) any later version. 8 # 9 # This program is distributed in the hope that it will be useful, but 10 # WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 # General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with this program; if not, write to the Free Software 16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 # 18 19 """Declares all the modes Rekall can be in. 20 21 The Rekall session can exist in several modes at the same time. Modes are just 22 simple True/False flags that represent certain aspects of the Rekall 23 session. For example, a session may be in "mode_image" if it is dealing with an 24 image. 25 26 Plugins can then activate depending on the current mode vector. For example, a 27 plugin may declare that it is active if all these modes are set 28 "mode_image,mode_windows_memory" Which means it is only active if a windows 29 memory image is used. 30 """ 31 32 33 from rekall import kb 34 35 from rekall.plugins.filesystems import ntfs 36 from rekall.plugins.filesystems import tsk 37 38 44 45 46 52 53 54 60 61 67 68 74 75 81 82 88 89 95 96 97 103 104 110 111113 """Determines if we are reading from an image.""" 114 name = "mode_image" 115125 126 132 133117 # If there is no physical address space but a filename was specified we 118 # try to load the physical_address_space from the filename. 119 if (not self.session.physical_address_space and 120 self.session.GetParameter("filename")): 121 self.session.plugins.load_as().GetPhysicalAddressSpace() 122 123 return (self.session.physical_address_space and 124 self.session.physical_address_space.metadata("image"))135 """Windows memory image or live windows.""" 136 name = "mode_windows_memory" 137142 143139 return (self.session.GetParameter("mode_live_memory") or 140 self.session.GetParameter("mode_image")) and ( 141 self.session.GetParameter("mode_windows"))145 """Windows memory image or live windows.""" 146 name = "mode_linux_memory" 147152 153149 return (self.session.GetParameter("mode_live_memory") or 150 self.session.GetParameter("mode_image")) and ( 151 self.session.GetParameter("mode_linux"))155 """Windows memory image or live windows.""" 156 name = "mode_darwin_memory" 157162 163159 return (self.session.GetParameter("mode_live_memory") or 160 self.session.GetParameter("mode_image")) and ( 161 self.session.GetParameter("mode_darwin"))165 """Windows memory image or live windows.""" 166 name = "mode_darwin_mountain_lion_plus" 167171169 return (self.session.profile.get_constant("_BootPML4", False) and 170 self.session.GetParameter("mode_darwin_memory"))
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 9 03:29:43 2017 | http://epydoc.sourceforge.net |