Giter Club home page Giter Club logo

printntlm's Introduction

printNTLM

On Windows:

  • Prints Net-NTLM hashes for the current user by starting a local webDAV server and authenticating to it
  • Starts a persistent webDAV server the will capture hashes of remote computers authenticating to it

On Linux:

  • Starts a persistent webDAV server the will capture hashes of remote computers authenticating to it

Importable as a library from pkg or run as a standalone binary with:

GOOS=windows go build

Auth Flow

OPTIONS /vf.xsl HTTP/1.1
Connection: Keep-Alive
User-Agent: Microsoft-WebDAV-MiniRedir/10.0.17134
translate: f
Host: 3232288001:9090

HTTP/1.1 200 OK
Content-Type: text/html
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Server: Microsoft-IIS/7.5
Allow: OPTIONS,GET,HEAD,POST,PUT,DELETE,TRACE,PROPFIND,PROPPATCH,MKCOL,COPY,MOVE,LOCK,UNLOCK
Content-Length: 85
Date: Mon, 04 Mar 2019 18:19:52 GMT


PROPFIND /vf.xsl HTTP/1.1
Connection: Keep-Alive
User-Agent: Microsoft-WebDAV-MiniRedir/10.0.17134
Depth: 0
translate: f
Content-Length: 0
Host: 3232288001:9090

HTTP/1.1 401 Unauthorized
Content-Type: text/html
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Server: Microsoft-IIS/7.5
Content-Length: 0
WWW-Authenticate: NTLM
Date: Mon, 04 Mar 2019 18:19:52 GMT


PROPFIND /vf.xsl HTTP/1.1
Connection: Keep-Alive
User-Agent: Microsoft-WebDAV-MiniRedir/10.0.17134
Depth: 0
translate: f
Content-Length: 0
Host: 3232288001:9090
Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAKAO5CAAAADw==

HTTP/1.1 401 Unauthorized
Content-Type: text/html
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Server: Microsoft-IIS/7.5
Content-Length: 0
WWW-Authenticate: NTLM TlRMTVNTUAACAAAABgAGADgAAAAFAomiESIzRFVmd4gAAAAAAAAAAIAAgAA+AAAABQLODgAAAA9TAE0AQgACAAYAUwBNAEIAAQAWAFMATQBCAC0AVABPAE8ATABLAEkAVAAEABIAcwBtAGIALgBsAG8AYwBhAGwAAwAoAHMAZQByAHYAZQByADIAMAAwADMALgBzAG0AYgAuAGwAbwBjAGEAbAAFABIAcwBtAGIALgBsAG8AYwBhAGwAAAAAAA==
Date: Mon, 04 Mar 2019 18:19:52 GMT


PROPFIND /vf.xsl HTTP/1.1
Connection: Keep-Alive
User-Agent: Microsoft-WebDAV-MiniRedir/10.0.17134
Depth: 0
translate: f
Content-Length: 0
Host: 3232288001:9090
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAJoAAAAyATIBsgAAAB4AHgBYAAAABgAGAHYAAAAeAB4AfAAAAAAAAADkAQAABQKIogoA7kIAAAAPHqWlCjd4bptxz5nFF1Y7aEQARQBTAEsAVABPAFAALQAxAFMAQQBQAEoAOQBQAHIAZQBkAEQARQBTAEsAVABPAFAALQAxAFMAQQBQAEoAOQBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAvcLUQFGeLU4dC4X2vsvMBAQAAAAAAAKMWFNy20tQBFB87KVOdmJUAAAAAAgAGAFMATQBCAAEAFgBTAE0AQgAtAFQATwBPAEwASwBJAFQABAASAHMAbQBiAC4AbABvAGMAYQBsAAMAKABzAGUAcgB2AGUAcgAyADAAMAAzAC4AcwBtAGIALgBsAG8AYwBhAGwABQASAHMAbQBiAC4AbABvAGMAYQBsAAgAMAAwAAAAAAAAAAEAAAAAIAAAV7rbmzXgwuw6KZWXF7KSFUlMK59J45Z1ZgVbV0tuWzcKABAAAAAAAAAAAAAAAAAAAAAAAAkANgBIAFQAVABQAC8AMwAyADMAMgAyADgAOAAwADAAMQAuAGwAbwBjAGEAbABkAG8AbQBhAGkAbgAAAAAAAAAAAA==

HTTP/1.1 200 OK
Content-Type: text/html
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Server: Microsoft-IIS/7.5
Content-Length: 0
Date: Mon, 04 Mar 2019 18:19:52 GMT

printntlm's People

Contributors

audibleblink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.