Package rekall :: Module constants
[frames] | no frames]

Source Code for Module rekall.constants

  1  # Rekall Memory Forensics 
  2  # Copyright (C) 2008 Volatile Systems 
  3  # Copyright 2013 Google Inc. All Rights Reserved. 
  4  # 
  5  # This program is free software; you can redistribute it and/or modify 
  6  # it under the terms of the GNU General Public License as published by 
  7  # the Free Software Foundation; either version 2 of the License, or (at 
  8  # your option) any later version. 
  9  # 
 10  # This program is distributed in the hope that it will be useful, but 
 11  # WITHOUT ANY WARRANTY; without even the implied warranty of 
 12  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
 13  # General Public License for more details. 
 14  # 
 15  # You should have received a copy of the GNU General Public License 
 16  # along with this program; if not, write to the Free Software 
 17  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 18  # 
 19  import time 
 20  from rekall import _version 
 21   
 22  VERSION = _version.get_versions()["pep440"] 
 23  CODENAME = _version.get_versions()["codename"] 
 24  SCAN_BLOCKSIZE = 1024 * 1024 * 10 
 25   
 26  # Official profile repository locations. We create the initial .rekallrc from 
 27  # this list. 
 28  PROFILE_REPOSITORIES = [ 
 29      "https://github.com/google/rekall-profiles/raw/master", 
 30      "http://profiles.rekall-forensic.com", 
 31  ] 
 32   
 33  # Deprecated URLs that don't work any more. 
 34  OLD_DEPRECATED_URLS = [ 
 35      "https://raw.githubusercontent.com/google/rekall-profiles/master" 
 36  ] 
 37   
 38  # Log domain subsystems. Various components will send log messages to these 
 39  # subsystems. These are useful for targeted debugging. 
 40  LOG_DOMAINS = ["PageTranslation"] 
 41   
 42  # The supported profile repository version we will use. This version needs to be 
 43  # consistent with the profile json file's data layout version. We automatically 
 44  # prepend this to the profile name to ensure we receive the correct version. If 
 45  # in future the json format will change in an incompatible way, we can still 
 46  # access old profiles without upgrading. 
 47  PROFILE_REPOSITORY_VERSION = "v1.0" 
 48   
 49   
 50  BANNER = """ 
 51  ---------------------------------------------------------------------------- 
 52  The Rekall Digital Forensic/Incident Response framework %s (%s). 
 53   
 54  "We can remember it for you wholesale!" 
 55   
 56  This program is free software; you can redistribute it and/or modify it under 
 57  the terms of the GNU General Public License. 
 58   
 59  See http://www.rekall-forensic.com/docs/Manual/tutorial.html to get started. 
 60  ---------------------------------------------------------------------------- 
 61  """ % (VERSION, CODENAME) 
 62   
 63  QUOTES = [ 
 64      "Baby, you make me wish I had three hands.", 
 65      "Consider that a divorce!", 
 66      "Get your story straight.", 
 67      "Sorry. Too perfect.", 
 68      "Ever heard of Rekall? They sell those fake memories.", 
 69      "Get your ass to Mars.", 
 70      "When you hear a crunch, you're there. " 
 71      "Now, pull it out. Be careful! That's my head, too.", 
 72      "Don't bother searching. The bug's in your skull.", 
 73      "No wonder you're having nightmares. You're always watching the news.", 
 74      "Relax. You'll live longer.", 
 75      "See you at the party, Richter!", 
 76      "You are what you do. A man is defined by his actions, not his memory.", 
 77      "I just had a terrible thought... what if this is a dream?", 
 78      "Two weeks.", 
 79      "Get ready for a surprise!", 
 80      "You're in a Johnnycab.", 
 81      "You are not you, you're me!", 
 82      "We hope you enjoyed the ride!", 
 83      "Hey, man, I got five kids to feed!", 
 84      "I've been trying to tell you, someone has erased his memory.", 
 85      "If I am not me, then who the hell am I?", 
 86      "Give those people air!", 
 87      "You call this a delusion?", 
 88      ("You wouldn't hurt me, would you, sweetheart? " 
 89       "Sweetheart, be reasonable. After all, we're married!"), 
 90      "What you been feeding this thing? I think it's still hungry.", 
 91      "Let me suggest that you take a vacation from yourself.", 
 92      "How did I get in this taxi? The door opened. You got in.", 
 93      "Don't fuck with your brain, pal. It ain't worth it.", 
 94      ("Take this out of the case, and stick it up your nose. Don't worry, " 
 95       "it's self-guiding. Just shove real hard."), 
 96      "What do you want, Mr. Quaid? The same as you; to remember.", 
 97      "You went to Rekall, remember?", 
 98      ("Who told you to THINK? I don't give you enough information to THINK! " 
 99       "You do as you're told, THAT'S WHAT YOU DO!"), 
100      ("And thanks for not getting yourself killed. Maybe now, " 
101       "we will meet in dreams, you never know."), 
102  ] 
103   
104 -def GetQuote():
105 return QUOTES[int(time.time()) % len(QUOTES)]
106