Skip to content

Instantly share code, notes, and snippets.

@hawkinsecurity
Created May 12, 2019 17:07
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 hawkinsecurity/69f61758824b7806aa54dfc4914f493b to your computer and use it in GitHub Desktop.
Save hawkinsecurity/69f61758824b7806aa54dfc4914f493b to your computer and use it in GitHub Desktop.
import requests
import argparse
import warnings
from requests.packages.urllib3.exceptions import InsecureRequestWarning
warnings.simplefilter('ignore',InsecureRequestWarning)
parser = argparse.ArgumentParser()
parser.add_argument('--url', action='store', dest='url', help='Specify the url to test.')
results = parser.parse_args()
url = results.url
r = requests.get(url,verify=False)
if "AirWave Management Platform" in r.text:
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 = requests.post(url,data=data,headers=headers,verify=False)
if r.status_code == 200:
print("Successfully logged in using credentials 'admin:admin'")
else:
print("Interface Does Not Use Default Credentials")
else:
print("Host does not seem to be running Aruba AirWave Management Platform")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment