MCPcopy Create free account
hub / github.com/Firebasky/Java / check_target_version

Function check_target_version

Confluence/CVE-2022-26134.py:39–52  ·  view source on GitHub ↗
(host, socket_proxies)

Source from the content-addressed store, hash-verified

37
38
39def check_target_version(host, socket_proxies):
40 try:
41 response = requests.get("{}/login.action".format(host),headers=headers, timeout=2, verify=False, proxies=socket_proxies, allow_redirects=False)
42 if response.status_code == 200:
43 filter_version = re.findall("<span id='footer-build-information'>.*</span>", response.text)
44 if (len(filter_version) >= 1):
45 version = filter_version[0].split("'>")[1].split('</')[0]
46 return version
47 else:
48 return False
49 else:
50 return host
51 except:
52 pass
53
54
55def send_payload(host, command):

Callers 1

Scan_httpFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected