(url)
| 17 | maybeExploitFile = open("maybe-exploit.txt", "a+", encoding="utf-8") |
| 18 | |
| 19 | def checkVersion(url): |
| 20 | try: |
| 21 | response = requests.get(url=url + "/Login?Reason=0", headers=exploit_header, verify=False) |
| 22 | serverString = response.headers["Server"] |
| 23 | version = re.search(r"ScreenConnect\/([\d\.]+)-\d+", serverString).group(1) |
| 24 | if LooseVersion(version) <= LooseVersion("23.9.7"): |
| 25 | maybeExploitFile.write(url + "\n") |
| 26 | print(f"[+] Version: {version} <= 23.9.7. There may be a vulnerability in {url}") |
| 27 | else: |
| 28 | pass |
| 29 | except: |
| 30 | pass |
| 31 | |
| 32 | def main(): |
| 33 | with open("urls.txt", "r") as file: |
nothing calls this directly
no outgoing calls
no test coverage detected