דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
hlnd2t/get-vtable-indexAI, סוכנים ו-MCP

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 התקנות⁦+3⁩ ב-7 ימים67 כוכביםMITסונכרן לפני 11 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install hlnd2t/get-vtable-index

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
UsWKzS2Bmc…ybJQ/4Dg==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילהc204e777…f40c4f0c
c204e7770a1a…4b3df40c4f0cקובץ אחד · ⁦1.7 KB⁩
סריקהנמוךאין ממצאים
הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.לסריקה המלאה
מקורgithub.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/get-vtable-index@dcf2020

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

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-address skill)
  • platform (either windows or linux, 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:

python
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:

python
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

text
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 in vtable_entries.

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםלאלא
כותב קבציםלאלא
מריץ פקודות shellלאלא
משתמש ברשתלאלא
משתמש במחבריםכןכן
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.11.13-dcf202013 בנוב׳ 2026dcf2020c204e777חתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login