get-vtable-index
Find a function's vtable offset and index using IDA Pro MCP. Use this skill when you have a function address and need to determine its position in a vtable by iterating through vtable entries. Triggers: vtable index, vftable offset, virtual function table position, find function in vtable
v2026.11.13-dcf20203 installazioni+3 in 7 giorni67 StelleMITsincronizzato 11 ore fa
Installa
Non hai ancora la CLI di NotHoly? Installala prima.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install hlnd2t/get-vtable-indexScrive in ~/.notholy/skills dopo aver controllato la firma e lo SHA-256.
FirmaFirmato, ed25519
Pacchettoc204e777…f40c4f0c
c204e7770a1a…4b3df40c4f0c1 file · 1.7 KBScansioneBassonessuna segnalazione
Sorgentegithub.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/get-vtable-index@dcf2020
Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.
In questa pagina
Find a function's position (offset and index) within a vtable by iterating through vtable entries.
Prerequisites
- Function address (from decompilation or xrefs)
- ClassName (to get vtable via
get-vtable-addressskill) - platform (either
windowsorlinux, depending on the binary we are analyzing) - An IDA Pro MCP session, resolved per mcp-ida-session.md:
idb_list→idb_open(script fallback only if the endpoint is unreachable). Honor its IDB save discipline — an idle-TTL self-exit does not save.
Method
1. Load vtable YAML and find function index:
ALWAYS first check if {ClassName}_vtable.{platform}.yaml exists beside the binary, then search for the function in vtable_entries:
mcp__ida-pro-mcp__py_eval code="""
import idaapi
import yaml
import os
# === REQUIRED: Replace these values ===
class_name = "<ClassName>" # e.g., "CCSPlayerPawn"
func_addr = <FUNC_ADDRESS> # Target function address to find
# ======================================
input_file = idaapi.get_input_file_path()
dir_path = os.environ.get('CS2VIBE_ARTIFACT_DIR') or os.path.dirname(input_file)
platform = 'windows' if input_file.endswith('.dll') else 'linux'
yaml_path = os.path.join(dir_path, f"{class_name}_vtable.{platform}.yaml")
if not os.path.exists(yaml_path):
print(f"ERROR: Required file {class_name}_vtable.{platform}.yaml not found.")
print(f"Expected path: {yaml_path}")
print(f"Please run `/find-{class_name}_vtable` first to generate the vtable YAML file.")
else:
with open(yaml_path, 'r', encoding='utf-8') as f:
data = yaml.safe_load(f)
vtable_entries = data.get('vtable_entries', {})
vtable_va = data.get('vtable_va')
ptr_size = 8 if idaapi.inf_is_64bit() else 4
for idx, entry in vtable_entries.items():
# Handle both int and hex string formats
i = int(idx) if isinstance(idx, str) else idx
entry_addr = int(entry, 16) if isinstance(entry, str) else entry
if entry_addr == func_addr:
offset = i * ptr_size
print(f"Found at vfunc_offset: {hex(offset)}, vfunc_index: {i}")
print(f"vtable_va: {hex(vtable_va) if isinstance(vtable_va, int) else vtable_va}")
break
else:
print(f"Function {hex(func_addr)} not found in {class_name} vtable entries!")
"""Replace:
<ClassName>with the target class name (e.g.,CCSPlayerPawn)<FUNC_ADDRESS>with the target function address
IMPORTANT: Use the function entry address. VTables store pointers to the function start; string xrefs often land in the middle of a function. If you only have an address inside the function, resolve the real entry first:
mcp__ida-pro-mcp__py_eval code="""
import idaapi
addr_inside_func = <ADDRESS_INSIDE_FUNCTION>
f = idaapi.get_func(addr_inside_func)
print(f"Function entry: {hex(f.start_ea)}" if f else "Not inside a function")
"""2. Continue with the unfinished tasks
If we are called by a task from a task list / parent SKILL, restore and continue with the unfinished tasks.Formulas
vfunc_offset = index × ptr_size(ptr_size = 8 for 64-bit, 4 for 32-bit)vfunc_index = offset / ptr_size, and is the index of the entry invtable_entries.
File di questa versione
- SKILL.md3.8 KB
Permessi
| Permesso | Dichiarato | Trovato dalla scansione |
|---|---|---|
| Legge file | No | No |
| Scrive file | No | No |
| Esegue comandi shell | No | No |
| Usa la rete | No | No |
| Usa i connettori | Sì | Sì |
| Controlla un browser | No | No |
Segnalazioni della scansione
Rivisto il 13 nov 2026
La scansione non ha trovato nulla da segnalare in questa versione.
Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.
| Versione | Pubblicata | Commit | SHA-256 | Firma | Cambio di permessi |
|---|---|---|---|---|---|
| v2026.11.13-dcf2020 | 13 nov 2026 | dcf2020 | c204e777 | Firmata | – |
Altro da HLND2T
Tutto da questo editoreAltro in IA, agenti e MCP
Vai alla categoria- fal-assetsrehan-remade/fal-assets5
- ai-system-prompt-leakagenoorqureshi/ai-system-prompt-leakage4
- ai-prompt-injectionnoorqureshi/ai-prompt-injection4
- testing-prompt-injection-in-rag-pipelinesmukul975/testing-prompt-injection-in-rag-pipelines4
- implementing-llm-guardrails-for-securitymukul975/implementing-llm-guardrails-for-security4
- defending-llms-with-guardrailsmukul975/defending-llms-with-guardrails4
Chiedi tutto quello che il tuo perimetro consente.
Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.
- 1/3
Crea l'account
Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.
PrivatoAzienda - 2/3
Aggiungi crediti
Con carta. Paghi a token, senza abbonamento.
$5.00ricarica minima - 3/3
Chiedi
In chat, oppure installa la CLI ed esegui notholy login nel terminale.
$ notholy login