mirror of https://github.com/n1nj4sec/pupy.git
increasing size of config buffer in payloads to contains bigger scriptlets
This commit is contained in:
parent
4cfe22d78c
commit
dd040947e9
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit fb9caadae0825256e7096a038b2bbdf57fd33d40
|
||||
Subproject commit ab771592c3179b8bd0462678a0329dc90d304d30
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue