Skip to content

Instantly share code, notes, and snippets.

@iagox86
Created July 13, 2012 03:43
Show Gist options
  • Save iagox86/3102582 to your computer and use it in GitHub Desktop.
Save iagox86/3102582 to your computer and use it in GitHub Desktop.
test = function()
i = Ntlm:new('Domain\\User', 'Password')
i:set_server("Server")
i:set_workstation("COMPUTER")
i:set_time(1)
i:set_client_challenge("\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa")
i:set_server_challenge("\x01\x23\x45\x67\x89\xab\xcd\xef")
i:set_flags(bit.bor(NTLMSSP_NEGOTIATE_KEY_EXCH, NTLMSSP_NEGOTIATE_56, NTLMSSP_NEGOTIATE_128, NTLMSSP_NEGOTIATE_VERSION, NTLMSSP_TARGET_TYPE_SERVER, NTLMSSP_NEGOTIATE_ALWAYS_SIGN, NTLMSSP_NEGOTIATE_NTLM, NTLMSSP_NEGOTIATE_SEAL, NTLMSSP_NEGOTIATE_SIGN, NTLMSSP_NEGOTIATE_OEM, NTLMSSP_NEGOTIATE_UNICODE))
i:print()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment