pegasy / python-ntlm

Automatically exported from code.google.com/p/python-ntlm
0 stars 0 forks source link

Code review request #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Committed changes to python26 and python30.

Purpose of code changes on this branch: Adding support for pass-the-hash 
authentication. This allows you to authenticate with users NTLM hash instead of 
password. This is useful for penetration testers.

When reviewing my code changes, please focus on: Make sure it doesn't break 
anything. Rather than allowing users to specify a hash or a password by adding 
a hash parameter, I just added a regex to the nt and lm hash generation 
functions that check if the password already looks like a hash 
`^[\w]{32}:[\w]{32}$`. I think this is acceptable, but I would be interested if 
anyone disagrees.

I apologize if I wasn't supposed to commit to trunk. I'm a git user and am not 
so proficient and svn. 

Original issue reported on code.google.com by MastahY...@gmail.com on 12 Nov 2012 at 6:41