MCPcopy Create free account
hub / github.com/AIex-3/confluence-hack / are_credentials_valid

Function are_credentials_valid

exploit.py:9–16  ·  view source on GitHub ↗
(url: str, username: str, password: str)

Source from the content-addressed store, hash-verified

7
8
9def are_credentials_valid(url: str, username: str, password: str) -> bool:
10 res = requests.get(url=f"{url}/rest/api/user?username={username}", auth=(username, password))
11 if res.status_code == 200:
12 print(f"[+] Credentials are valid for user '{username}'")
13 return True
14 else:
15 print(f"[-] Status-Code: {res.status_code} for user '{username}'")
16 return False
17
18
19def vulnerability(url: str) -> bool:

Callers 1

exploit.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected