Exploit databaseDownload repository ZIP
GH-744a9e7c21cd1abbda078cbc09d8cb55
hex0user/cve-2026-1731
Sources for CVE-2026-1731
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
hex0user/cve-2026-1731Revision c1f1b264c69c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scanner.py
Python · 4,780 bytes#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
BeyondTrust CVE-2026-1731 Scanner
Developer: issam junior
Telegram: https://t.me/arab_hackerz_group
Defensive security tool for detecting exposed BeyondTrust RS / PRA services.
"""
import requests
import argparse
import urllib3
from colorama import Fore, Style, init
from urllib.parse import urljoin
urllib3.disable_warnings()
init(autoreset=True)
# Colors
GREEN = Fore.GREEN + Style.BRIGHT
WHITE = Fore.WHITE + Style.BRIGHT
RED = Fore.RED + Style.BRIGHT
YELLOW = Fore.YELLOW + Style.BRIGHT
CYAN = Fore.CYAN + Style.BRIGHT
# Banner
def banner():
print(CYAN + r"""
██████╗ ███████╗██╗ ██╗ ██████╗ ███╗ ██╗██████╗
██╔══██╗██╔════╝██║ ██║██╔═══██╗████╗ ██║██╔══██╗
██████╔╝█████╗ ██║ ██║██║ ██║██╔██╗ ██║██║ ██║
██╔══██╗██╔══╝ ╚██╗ ██╔╝██║ ██║██║╚██╗██║██║ ██║
██████╔╝███████╗ ╚████╔╝ ╚██████╔╝██║ ╚████║██████╔╝
╚═════╝ ╚══════╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═══╝╚═════╝
BeyondTrust CVE-2026-1731 Scanner
Developer : issam junior
Telegram : https://t.me/arab_hackerz_group
""")
# HTTP request
def request_url(url, timeout):
try:
r = requests.get(
url,
timeout=timeout,
verify=False,
allow_redirects=True,
headers={
"User-Agent": "issam-junior-scanner/1.0"
}
)
return r
except:
return None
# Auto protocol detection
def connect_target(target, timeout):
protocols = []
if target.startswith("http://") or target.startswith("https://"):
protocols.append(target)
else:
protocols.append("https://" + target)
protocols.append("http://" + target)
for url in protocols:
print(CYAN + f"[+] Trying: {url}")
response = request_url(url, timeout)
if response:
print(GREEN + f"[✓] Connected: {url}")
return url, response
return None, None
# Header detection
def analyze_headers(headers):
keywords = [
"BeyondTrust",
"Bomgar",
"Remote Support",
"Privileged Remote Access"
]
evidence = []
for k, v in headers.items():
for keyword in keywords:
if keyword.lower() in v.lower():
evidence.append(f"{k}: {v}")
return evidence
# Endpoint detection
ENDPOINTS = [
"/",
"/login",
"/api",
"/version",
"/about",
"/remote",
"/bomgar"
]
def analyze_endpoints(base_url, timeout):
evidence = []
for endpoint in ENDPOINTS:
url = urljoin(base_url, endpoint)
response = request_url(url, timeout)
if not response:
continue
content = response.text.lower()
if any(keyword in content for keyword in [
"beyondtrust",
"bomgar",
"remote support",
"privileged remote access"
]):
evidence.append(endpoint)
return evidence
# Scan
def scan(target, timeout):
base_url, response = connect_target(target, timeout)
if not response:
print(RED + "[!] Target unreachable")
return
print()
header_evidence = analyze_headers(response.headers)
endpoint_evidence = analyze_endpoints(base_url, timeout)
if header_evidence or endpoint_evidence:
print(GREEN + "[✓] BeyondTrust detected")
for ev in header_evidence:
print(GREEN + f" Header: {ev}")
for ev in endpoint_evidence:
print(GREEN + f" Endpoint: {ev}")
print()
print(GREEN + "[!!!] RESULT: TARGET LIKELY VULNERABLE")
else:
print(WHITE + "[✓] BeyondTrust not detected")
print(WHITE + "[✓] Target likely not vulnerable")
print()
# CLI
def main():
banner()
parser = argparse.ArgumentParser(
description="BeyondTrust CVE-2026-1731 Scanner"
)
parser.add_argument(
"-t",
"--target",
required=True,
help="Target domain or IP"
)
parser.add_argument(
"--timeout",
type=int,
default=5,
help="Connection timeout"
)
args = parser.parse_args()
scan(args.target, args.timeout)
if __name__ == "__main__":
main()