mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-22 02:21:36 +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(
|
</Code>''').safe_substitute(
|
||||||
templateName = templateName,
|
templateName = templateName,
|
||||||
payload2 = base64.b64encode(payload)
|
payload2 = base64.b64encode(payload.encode()).decode()
|
||||||
)
|
)
|
||||||
|
|
||||||
exeLaunchCode = string.Template('''<ParameterGroup/>
|
exeLaunchCode = string.Template('''<ParameterGroup/>
|
||||||
@ -95,7 +95,7 @@ def getInlineTask(payload, exeFile):
|
|||||||
method.Invoke(instance, null);
|
method.Invoke(instance, null);
|
||||||
]]>
|
]]>
|
||||||
</Code>''').safe_substitute(
|
</Code>''').safe_substitute(
|
||||||
payload2 = base64.b64encode(payload)
|
payload2 = base64.b64encode(payload.encode()).decode()
|
||||||
)
|
)
|
||||||
|
|
||||||
launchCode = exeLaunchCode if exeFile else powershellLaunchCode
|
launchCode = exeLaunchCode if exeFile else powershellLaunchCode
|
||||||
|
Loading…
Reference in New Issue
Block a user