A Red Team oriented simple HTTP & WebDAV server written in C# with functionality to capture Net-NTLM hashes. To be used for serving payloads on compromised machines for lateral movement purposes.
Requires .NET Framework 4.5 and System.Net and System.Net.Sockets references.
Usage
<div class="highlight highlight-source-powershell position-relative" data-snippet-clipboard-copy-content=" :: SharpWebServer :: a Red Team oriented C# Simple HTTP Server with Net-NTLMv1/2 hashes capture functionality Authors: – Can Güney Aksakalli (github.com/aksakalli) – original implementation – harrypatrick442 (github.com/harrypatrick442) – aksakalli's fork & changes – Dominic Chell (@domchell) from MDSec – Net-NTLMv2 hashes capture code borrowed from Farmer – Mariusz B. / mgeeky, – combined all building blocks together, added connection keep-alive to NTLM Authentication Usage: SharpWebServer.exe [dir=path] [verbose=true] [ntlm=true] [logfile=path] Options: port – TCP Port number on which to listen (1-65535) dir – Directory with files to be hosted. verbose – Turn verbose mode on. seconds – Specifies how long should the server be running. Default: indefinitely ntlm – Require NTLM Authentication before serving files. Useful to collect NetNTLMv2 hashes (in MDSec’s Farmer style) logfile – Path to output logfile. “>
:: SharpWebServer ::
a Red Team oriented C# Simple HTTP Server with Net-NTLMv1/2 hashes capture functionalityAuthors:
- Can Güney Aksakalli (github.com/aksakalli) - original implementation
- harrypatrick442 (github.com/harrypatrick442) - aksakalli's fork & changes
- Dominic Chell (@domchell) from MDSec - Net-NTLMv2 hashes capture code borrowed from Farmer
- Mariusz B. / mgeeky, <mb [at] binary-offensive.com> - combined all building blocks together,
added connection keep-alive to NTLM Authentication
Usage:
SharpWebServer.exe <port=port> [dir=path] [verbose=true] [ntlm=true] [logfile=path]
Options:
port - TCP Port number on which to listen (1-65535)
dir - Directory with files to be hosted.
verbose - Turn verbose mode on.
seconds - Specifies h ow long should the server be running. Default: indefinitely
ntlm - Require NTLM Authentication before serving files. Useful to collect NetNTLMv2 hashes
(in MDSec's Farmer style)
logfile - Path to output logfile.