mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-12-22 17:15:06 +01:00
Update generateMSBuildPowershellXML.py
This commit is contained in:
parent
f31930c7c8
commit
4b0523da3a
@ -76,7 +76,7 @@ def getInlineTask(payload, exeFile):
|
||||
]]>
|
||||
</Code>''').safe_substitute(
|
||||
templateName = templateName,
|
||||
payload2 = base64.b64encode(payload)
|
||||
payload2 = base64.b64encode(payload.encode()).decode()
|
||||
)
|
||||
|
||||
exeLaunchCode = string.Template('''<ParameterGroup/>
|
||||
@ -95,7 +95,7 @@ def getInlineTask(payload, exeFile):
|
||||
method.Invoke(instance, null);
|
||||
]]>
|
||||
</Code>''').safe_substitute(
|
||||
payload2 = base64.b64encode(payload)
|
||||
payload2 = base64.b64encode(payload.encode()).decode()
|
||||
)
|
||||
|
||||
launchCode = exeLaunchCode if exeFile else powershellLaunchCode
|
||||
|
Loading…
Reference in New Issue
Block a user