Subversion Repositories kim

Rev

Rev 3 | Rev 6 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# Author: Tomás Vírseda <tomasvirseda@gmail.com>
# Version: 0.1
# License: GPLv3
# Description: KIM (Keep In Mind) is a little script to extract visited
#              SAP Notes from webbrowsers (currently Firefox and Chrome)
# Docs
# Firefox: https://github.com/shadow-box/Violent-Python-Examples/blob/master/Chapter-3/6-firefoxParse.py
# Chrome: https://github.com/karthikeyankc/HistoryAnalyzer/blob/master/HistoryAnalyzer.py
# https://sandersonforensics.com/forum/content.php?205-Chrome-history-with-Recursive-Common-Table-Expressions
"""


try:
    from .logger import Logger
    from .utils import *
    from .project import *
except:
    from logger import Logger
    from utils import Utils
    from project import *

class KIM:
    snotes = set()
    dnotes = {}
    log = None
    utils = None
    options = None

    def __init__(self):
        self.log = Logger('KIM').get_logger()
        self.utils = Utils()
        self.options = self.utils.get_app_options()
        self.log.debug("Options: %s", self.options)
        self.log.info('Starting %s %s', name, version)

    def run(self):
        snff = self.utils.get_firefox_history()
        snch = self.utils.get_chrome_history()
        self.log.debug(snff)
        self.log.debug(snch)


def main():
    kim = KIM()
    kim.run()


if __name__ == '__main__':
    main()