diff --git a/client/sources/pupy.c b/client/sources/pupy.c index fafe7bd2..0fba3ce7 100644 --- a/client/sources/pupy.c +++ b/client/sources/pupy.c @@ -11,7 +11,7 @@ static char module_doc[] = "Builtins utilities for pupy"; extern const char resources_library_compressed_string_txt_start[]; extern const int resources_library_compressed_string_txt_size; -char pupy_config[4096]="####---PUPY_CONFIG_COMES_HERE---####\n"; //big array to have space for more config / code run at startup +char pupy_config[40960]="####---PUPY_CONFIG_COMES_HERE---####\n"; //big array to have space for more config / code run at startup extern const DWORD dwPupyArch; static PyObject *Py_get_compressed_library_string(PyObject *self, PyObject *args) { diff --git a/pupy/payload_templates b/pupy/payload_templates index fb9caada..ab771592 160000 --- a/pupy/payload_templates +++ b/pupy/payload_templates @@ -1 +1 @@ -Subproject commit fb9caadae0825256e7096a038b2bbdf57fd33d40 +Subproject commit ab771592c3179b8bd0462678a0329dc90d304d30 diff --git a/pupy/pupygen.py b/pupy/pupygen.py index 16b636d9..588a247a 100755 --- a/pupy/pupygen.py +++ b/pupy/pupygen.py @@ -45,8 +45,8 @@ def get_edit_binary(path, conf): new_conf=get_raw_conf(conf, obfuscate=True) new_conf+="\n\x00\x00\x00\x00\x00\x00\x00\x00" - if len(new_conf)>4092: - raise Exception("Error: config or offline script too long\nYou need to recompile the dll with a bigger buffer") + if len(new_conf)>40960-1: + raise Exception("Error: config or offline script too long (%s/40960 bytes)\nYou need to recompile the dll with a bigger buffer"%len(new_conf)) binary=binary[0:offsets[0]]+new_conf+binary[offsets[0]+len(new_conf):] return binary