Skip to content

Instantly share code, notes, and snippets.

@mastahyeti mastahyeti/ Secret
Created Nov 12, 2012

What would you like to do?
import requests
creds = [('WORKGROUP\\user_one','s3cret'),('MYDOMAIN\\user_two','pa55w0rd')]
for user,pass in creds:
response = requests.get('',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
You can’t perform that action at this time.