FWIW, I'm the guy who wrote Re^2: More NTLM. I hadn't looked at that code in ages; in fact, as soon as I got it working, I dropped the whole thing. Proof of concept, I suppose.

I did just now run my simple test script and it still works. I am sorry I do not know the version of the IIS server I am running against.

I am attaching my debug output at the bottom. One difference I noticed is that my initial response is short and sweet:

LWP::Protocol::collect: read 24 bytes
.. while your first response is not.
LWP::Protocol::collect: read 566 bytes LWP::Protocol::collect: read 1736 bytes LWP::Protocol::collect: read 1380 bytes LWP::Protocol::collect: read 351 bytes
Make of that what you may. Good luck!

Full output:

LWP::UserAgent::new: () LWP::UserAgent::request: () HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking .net for cookies LWP::UserAgent::send_request: GET http://**url sanitized*** LWP::UserAgent::_need_proxy: Not proxied LWP::Protocol::http::request: () LWP::Protocol::collect: read 24 bytes LWP::UserAgent::request: Simple response: Unauthorized LWP::Authen::Ntlm::authenticate: authenticate() has been called LWP::Authen::Ntlm::authenticate: In first phase of NTLM authentication LWP::Authen::Ntlm::authenticate: Returning response object with auth h +eader: Authorization NTLM TlRMTVNTUAABAAAAB7IAAAQABAAgAAAAAgACACQAAABtaXBqQ1Q += LWP::UserAgent::request: () HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking .net for cookies LWP::UserAgent::send_request: GET http://**url sanitized*** LWP::UserAgent::_need_proxy: Not proxied LWP::Protocol::http::request: () LWP::Protocol::collect: read 24 bytes LWP::Protocol::http::request: Keep the http connection to **url saniti +zed***:80 LWP::UserAgent::request: Simple response: Unauthorized LWP::Authen::Ntlm::authenticate: authenticate() has been called LWP::Authen::Ntlm::authenticate: In second phase of NTLM authenticatio +n LWP::Authen::Ntlm::authenticate: Returning response object with auth h +eader: Authorization NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAQABABwAAAA<sn +ip> LWP::UserAgent::request: () HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking **url sanitized*** for cook +ies HTTP::Cookies::add_cookie_header: Checking .net for cookies LWP::UserAgent::send_request: GET http://**url sanitized*** LWP::UserAgent::_need_proxy: Not proxied LWP::Protocol::http::request: () LWP::Protocol::collect: read 121 bytes LWP::Protocol::http::request: Keep the http connection to **url saniti +zed***:80 HTTP::Cookies::extract_cookies: Set cookie ASPSESSIONIDQABTQSCR => FIM +DDGABNLLJPKIIMJKIDGBN LWP::UserAgent::request: Simple response: Found


In reply to Re: NTLM - Not Telling Linux Much by crashtest
in thread NTLM - Not Telling Linux Much by aufflick

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.