# receipts evidence 019 # kind: note # represents: The probe scripts the live captures run, written by Claude Code for this study (the PDM address in pdm_live.sh is replaced with ) # name: probe-scripts # at: 2026-11-12T13:19:23Z # --- =================== tool_counts.py """Count the tools a release advertises, by kind.""" import importlib.metadata as md from proxmox_mcp import registry tools, _ = registry.build(list(registry.TOOLSETS), read_only=False) names = [t.name for t in tools] pdm = [n for n in names if n.startswith("pdm_")] deploy = sorted(n for n in names if n.startswith("deploy_") or n == "list_os_images") print("proxmox-mcp-server", md.version("proxmox-mcp-server")) print("toolsets:", ", ".join(registry.TOOLSETS)) print("tools (all toolsets):", len(names)) print(" Proxmox VE tools:", len(names) - len(pdm)) print(" Datacenter Manager (pdm_*) tools:", len(pdm)) print(" deploy tools:", ", ".join(deploy) or "none") =================== traversal.py """Ask for a stop on guest 999/../100 with guest 100 protected, and record what would be sent.""" import asyncio, json, httpx from proxmox_mcp import server from proxmox_mcp.client import ProxmoxClient sent = [] c = ProxmoxClient(); c.base_url = "https://pve.test:8006/api2/json"; c.token = "PVEAPIToken=test" c.client = httpx.AsyncClient(transport=httpx.MockTransport( lambda r: sent.append(f"{r.method} {r.url.path}") or httpx.Response(200, json={"data": None}))) server.proxmox = c server.PROTECTED = frozenset({100}) print("PROXMOX_PROTECTED_VMIDS = 100") async def main(): for name, args in [("stop_vm", {"node": "pve", "vmid": "999/../100"}), ("update_replication_job", {"id": "../../nodes/pve/qemu/100/config", "delete": "net0"})]: sent.clear() r = await server.call_tool(name, args) print(f"\n{name} {json.dumps(args)}") print(" requests sent to Proxmox:", sent or "none") print(" result:", r.content[0].text[:140]) asyncio.run(main()) =================== audit_key.py """Upload a custom certificate with a private key and print the audit log line.""" import asyncio, os, tempfile from proxmox_mcp import audit, server class FakeProxmox: async def post(self, path, data=None): return {"data": None} async def get(self, path, params=None): return {"data": None} server.proxmox = FakeProxmox() log = os.path.join(tempfile.mkdtemp(), "audit.jsonl") audit.AUDIT_LOG = log pem = "-----BEGIN PRIVATE KEY-----MIIEvQIBADANBgkq...-----END PRIVATE KEY-----" asyncio.run(server.call_tool("upload_node_custom_cert", {"node": "pve", "certificates": "CERT", "key": pem})) line = open(log).read().strip() print(line) print("private key in the log:", "BEGIN PRIVATE KEY" in line) =================== pdm_live.py """Read-only calls to the author's Datacenter Manager through the v2.14.0 pdm toolset. Addresses and fingerprints are not printed: remotes are shown by id and type only.""" import asyncio, json from proxmox_mcp import server async def call(name, args=None): r = await server.call_tool(name, args or {}) return r.is_error, json.loads(r.content[0].text) async def main(): print("pdm toolset loaded:", sum(t.name.startswith("pdm_") for t in server.ALL_TOOLS), "tools") _, v = await call("pdm_version"); print("pdm_version:", v["data"]) _, rem = await call("pdm_list_remotes") print("pdm_list_remotes:", [{"id": r["id"], "type": r["type"]} for r in rem["data"]]) _, st = await call("pdm_resource_status") d = st["data"] print("pdm_resource_status: remotes", d["remotes"], "| PVE nodes online", d["pve_nodes"]["online"], "| VMs running", d["qemu"]["running"], "| containers running", d["lxc"]["running"], "| storages available", d["storages"]["available"]) err, body = await call("pdm_pve_list_remotes") print("\npdm_pve_list_remotes is_error:", err) print(body["error"]) await server.pdm.close() asyncio.run(main()) =================== pdm_live.sh #!/bin/bash # Connection settings for the author's Datacenter Manager live here, not on the recorded command # line. The token secret is read from the macOS Keychain and never printed; lab addresses in the # output are replaced with . H= PDM_TOKEN_SECRET="$(security find-generic-password -s "pdm-$H-token-proxmox-mcp" -w)" \ PDM_HOST=$H PDM_TOKEN_ID='root@pam!proxmox-mcp' PDM_TLS_NAME=pdm \ PDM_CA_BUNDLE="$HOME/.config/proxmox-mcp/pdm-api.pem" PROXMOX_HOST= \ uv run -q python "$(dirname "$0")/pdm_live.py" 2>&1 | sed -E 's/10\.88\.[0-9]+\.[0-9]+//g' =================== kali_repack.py """Download Kali's current cloud image, check its SHA-256, repack it with v2.14.0's code, inspect the result.""" import asyncio, hashlib, os, re, struct, tempfile, time, httpx from proxmox_mcp import qcow2 from proxmox_mcp.tools import os_deploy async def main(): sums = await os_deploy._fetch_text(os_deploy.CATALOG["kali"]["sums"]) name = re.findall(os_deploy.CATALOG["kali"]["pattern"], sums)[0] want = os_deploy.checksum_from(sums, name) with tempfile.TemporaryDirectory() as d: t = time.time(); h = hashlib.sha256(); size = 0 async with httpx.AsyncClient(timeout=None, follow_redirects=True) as http: async with http.stream("GET", os_deploy.CATALOG["kali"]["index"] + name) as r: r.raise_for_status() with open(f"{d}/k.tar.xz", "wb") as f: async for chunk in r.aiter_bytes(1 << 20): h.update(chunk); f.write(chunk); size += len(chunk) print(f"image: {name}, {size/1e6:.0f} MB, downloaded in {time.time()-t:.0f} s") print(f"sha256 published {want}") print(f"sha256 measured {h.hexdigest()} match: {h.hexdigest() == want}") t = time.time() res = await asyncio.to_thread(os_deploy._repack, f"{d}/k.tar.xz", f"{d}/k.qcow2") print(f"repacked in {time.time()-t:.0f} s: {res['data_clusters']} data clusters of 64 KiB") with open(f"{d}/k.qcow2", "rb") as f: head = f.read(72) magic, version = head[:4], struct.unpack(">I", head[4:8])[0] virtual = struct.unpack(">Q", head[24:32])[0] first = qcow2.read_cluster(f, 0) print(f"qcow2: magic {magic!r} version {version}, virtual size {virtual/2**30:.1f} GiB, file {os.path.getsize(f'{d}/k.qcow2')/2**30:.2f} GiB") boot = first[510:512] == bytes([0x55, 0xAA]) gpt = first[512:520] == b"EFI PART" print(f"disk starts with a boot sector (55 AA): {boot}, GPT header: {gpt}") asyncio.run(main()) =================== seed_iso.sh #!/bin/bash # Build a cidata seed ISO with v2.14.0's builder, mount it with macOS, list it, unmount it. set -e D=$(mktemp -d) uv run -q python -c 'import sys; from proxmox_mcp import seediso; open(sys.argv[1],"wb").write(seediso.build("cidata", {"user-data": b"#cloud-config\n", "meta-data": b"{}", "network-config": b"{}"}))' "$D/seed.iso" ls -l "$D/seed.iso" | awk '{print $5, "bytes"}' M=$(hdiutil attach -nobrowse -readonly "$D/seed.iso" | tail -1 | awk -F'\t' '{print $NF}') echo "mounted as: $M" ls "$M" diskutil info "$M" | grep -E "Volume Name|File System Personality" hdiutil detach -quiet "$M"; rm -rf "$D"