MCPcopy Create free account
hub / github.com/W01fh4cker/ScreenConnect-AuthBypass-RCE / checkVersion

Function checkVersion

check.py:19–30  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

17maybeExploitFile = open("maybe-exploit.txt", "a+", encoding="utf-8")
18
19def 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
32def main():
33 with open("urls.txt", "r") as file:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected