Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
SharpWebServer — Servidor HTTP e WebDAV Simples em C# orientado a Red Team com funcionalidade de captura de hashes Net-NTLM | Kitploit
Ferramentas/GitHubGitHub/mgeeky/sharpwebserver
Movimento LateralRed Teaming
GitHubmgeeky/sharpwebserver

SharpWebServer

Servidor HTTP e WebDAV Simples em C# orientado a Red Team com funcionalidade de captura de hashes Net-NTLM

Ver Repositório
288434há 3 anosRevisado pelo Kitploit

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar

SharpWebServer

Um servidor HTTP & WebDAV simples orientado a Red Team escrito em C# com funcionalidade de capturar hashes Net-NTLM. Para ser usado no envio de payloads em máquinas comprometidas para fins de movimento lateral.

Requer .NET Framework 4.5 e referências System.Net e System.Net.Sockets.

Uso

root@kitploit:~
    :: SharpWebServer ::
    um servidor HTTP simples orientado a Red Team em C# com funcionalidade de captura de hashes Net-NTLMv1/2

Autores:
    - Can Güney Aksakalli (github.com/aksakalli)          - implementação original
    - harrypatrick442 (github.com/harrypatrick442)        - fork e alterações de aksakalli
    - Dominic Chell (@domchell) da MDSec                - código de captura de hashes Net-NTLMv2 emprestado do Farmer
    - Mariusz Banach / mgeeky, <mb [at] binary-offensive.com> - combinou todos os blocos de construção,
                                                            adicionou keep-alive de conexão na Autenticação NTLM

Uso:
    SharpWebServer.exe <port=port> [dir=path] [verbose=true] [ntlm=true] [redir=true] [logfile=path]

Opções:
    port    - Número da porta TCP para escutar (1-65535)
    dir     - Diretório com arquivos a serem hospedados.
    verbose - Ativar modo verboso.
    seconds - Especifica por quanto tempo o servidor deve executar. Padrão: indefinido
    ntlm    - Exigir autenticação NTLM antes de servir arquivos. Útil para coletar hashes NetNTLM
              (no estilo Farmer da MDSec)
    redir   - Redirecionar após autenticação NTLM com base no parâmetro redir na URL (ex.: ?redir=https://example.com)
    logfile - Caminho para o arquivo de log de saída.

Exemplo

Exemplo de caso de uso servindo arquivos e capturando hashes Net-NTLM ao mesmo tempo:

Servidor:

root@kitploit:~
C:\> SharpWebServer.exe port=8888 dir=C:\Windows\Temp verbose=true ntlm=true

    :: SharpWebServer ::
    a Red Team oriented C# Simple HTTP & WebDAV Server with Net-NTLM hashes capture functionality

[.] Serving HTTP server on port  : 8888
[.] Will run for this long       : 60 seconds
[.] Verbose mode turned on.
[.] NTLM mode turned on.
[.] Serving files from directory : C:\Windows\Temp

SharpWebServer [29.03.21, 17:55:14] NTLM: Sending 401 Unauthorized due to lack of Authorization header.
SharpWebServer [29.03.21, 17:55:14] ::1 - "GET /test.txt" - len: 0 (401)
SharpWebServer [29.03.21, 17:55:14] NTLM: Sending 401 Unauthorized with NTLM Challenge Response.
SharpWebServer [29.03.21, 17:55:14] ::1 - "GET /test.txt" - len: 0 (401)

[+] SharpWebServer: Net-NTLM hash captured:
TestUser:::1122334455667788:66303EE2DF9417E2FE07E1B7FD663205:010100000000000092EC04E8B324D701C2B561D5FECBB325000000000200060053004D0042000100160053004D0042002D0054004F004F004C004B00490054000400120073006D0062002E006C006F00630061006C000300280073006500720076006500720032003000300033002E0073006D0062002E006C006F00630061006C000500120073006D0062002E006C006F00630061006C00080030003000000000000000010000000020000045E18A336DA58F5F0F826F846C699F77DCCF02BA5135525AC52EFBB0C0A1F1160A0010000000000000000000000000000000000009001C0048005400540050002F006C006F00630061006C0068006F00730074000000000000000000

SharpWebServer [29.03.21, 17:55:14] ::1 - "GET /test.txt" - len: 11 (200)

Cliente:

root@kitploit:~
C:\> curl -sD- http://localhost:8888/test.txt --ntlm --negotiate -u TestUser:TestPassword
HTTP/1.1 401 Unauthorized
Transfer-Encoding: chunked
WWW-Authenticate: NTLM
Date: Mon, 29 Mar 2021 15:55:14 GMT

HTTP/1.1 401 Unauthorized
Transfer-Encoding: chunked
WWW-Authenticate: NTLM TlRMTVNTUAACAAAABgAGADgAAAAFAomiESIzRFVmd4gAAAAAAAAAAIAAgAA+AAAABQLODgAAAA9TAE0AQgACAAYAUwBNAEIAAQAWAFMATQBCAC0AVABPAE8ATABLAEkAVAAEABIAcwBtAGIALgBsAG8AYwBhAGwAAwAoAHMAZQByAHYAZQByADIAMAAwADMALgBzAG0AYgAuAGwAbwBjAGEAbAAFABIAcwBtAGIALgBsAG8AYwBhAGwAAAAAAA==
Date: Mon, 29 Mar 2021 15:55:14 GMT

HTTP/1.1 200 OK
Content-Length: 6
Content-Type: text/plain
Date: Mon, 29 Mar 2021 15:55:14 GMT

foobar

Cliente WebDAV:

root@kitploit:~
C:\> dir \\localhost@8888\test
 Volume in drive \\localhost@8888\test has no label.
 Volume Serial Number is 0000-0000

 Directory of \\localhost@8888\test

30.03.2021  05:12    <DIR>          .
30.03.2021  05:12    <DIR>          ..
30.03.2021  04:27                11 test2.txt
30.03.2021  05:12                12 test3.txt
30.03.2021  05:12    <DIR>          test4
               2 File(s)             23 bytes
               3 Dir(s)  225 268 776 960 bytes free

C:\> type \\localhost@8888\test\test4\test5.txt
Hello world!

C:\> copy \\localhost@8888\test\test4\test5.txt .
        1 file(s) copied.

Autores

  • Código de captura de hashes NTLM e espinha dorsal do TCP Listener emprestados do projeto Farmer da MDSec ActiveBreach escrito por Dominic Chell (@domchell):

    • https://github.com/mdsecactivebreach/Farmer
  • Implementação WebDAV, lógica de keep-alive da autenticação NTLM e todo o resto Mariusz Banach / mgeeky, '21, <mb [at] binary-offensive.com>


☕ Mostre Apoio ☕

Este e outros projetos são fruto de noites sem dormir e muito trabalho duro. Se você gosta do que faço e aprecia que sempre retribuo à comunidade, Considere me comprar um café (ou melhor, uma cerveja) só para dizer obrigado! 💪


root@kitploit:~
   Mariusz Banach / mgeeky, 21
   <mb [at] binary-offensive.com>
   (https://github.com/mgeeky)
Baixar ferramenta