Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
parser = argparse.ArgumentParser()
parser.add_argument('--url', action='store', dest='url', help='Specify the url to test.')
results = parser.parse_args()
url = str(results.url) + "/LOGIN"
headers = {'Content-Type':'application/x-www-form-urlencoded;charset=utf-8'}
data = "credential_0=admin&credential_1=admin&destination=/index.html"
r =,data=data,headers=headers,verify=False)
if r.status_code == 200:
print("Successfully logged in using credentials 'admin:admin'")
print("Interface Does Not Use Default Credentials")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment