Skip to content

Instantly share code, notes, and snippets.

@btoews

btoews/tmp.py Secret

Created November 12, 2012 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btoews/85f38760f74fce46669f to your computer and use it in GitHub Desktop.
Save btoews/85f38760f74fce46669f to your computer and use it in GitHub Desktop.
import requests
creds = [('WORKGROUP\\user_one','s3cret'),('MYDOMAIN\\user_two','pa55w0rd')]
for user,pass in creds:
response = requests.get('http://ntlm_auth_site.com',auth=requests.auth.HttpNtlmAuth(user,pass))
if response.status_code != 401:
print "found working creds -- %s:%s" % (user,pass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment