Project Update / removed AutoRecon

This commit is contained in:
2021-10-05 21:55:08 +02:00
parent 78e5fd16d9
commit 3a0a75e278
12 changed files with 1218 additions and 2199 deletions

View File

@@ -20,10 +20,9 @@ USERNAME = "admin"
PASSWORD = "password"
def login(username, password):
# Template method to create a session
session = requests.Session()
post_data = { "username": username, "password": password }
res = session.post(BASE_URL + "/login", data=post_data, allow_redirects=False)
res = session.post(f"{BASE_URL}/login", data=post_data, allow_redirects=False)
if res.status_code != 302 or "Location" not in res.headers or res.headers["Location"] != "/home":
print("Login failed")
exit()