NTLM v2 support in perl
We have a web form at work that protected by NTLM authentication. The cool thing is that Mozilla now supports NTLM so I can access the site from my Powerbook. The crappy thing is that this web page has a form with vbscript so I can't actually use it.
I had the bright idea of writing a cgi script that would fetch the web page and convert the vbscript to javascript so I could submit the form. Unfortunately, it appears that the server requires NTLMv2 authentication which none of the current perl modules. Thanks to the awesome NTLM authentication documentation, I was able to hack in support for NTLMv2.
The Authen::NTLM module I used doesn't seem to have been updated in a couple of years, so I'll just post my version of the module here in case someone else has a need. I also made minor tweaks to LWP::Authen::Ntlm to allow it to use the NTLM v2 changes I made to Authen::NTLM. Here is a patch since I didn't see the need to release an entirely new libwww-perl module.