Telefonica/ATTPwn

PowerShell Errors when running threat (non-standard dash "-" found in source code)

clr2of8 opened this issue · 0 comments

When Running NotPetya on Win10 Pro, I get errors in PowerShell window. Tasks error or remain pending after code has run. If I replace the non-standard dash "-" character in the source code (invoke-scheduledTask and invoke-wsreset, this fixes the error).
sed -i s/–/-/g functions/invoke-scheduleTask
sed -i s/–/-/g functions/invoke-wsreset

image

image

image

image