Results 1 to 2 of 2
  1. #1
    HL-SDK's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    56
    Reputation
    11
    Thanks
    26

    IDA Vtable walker and 'reconstructor'

    [php]
    //
    // - IDA Pro script -
    // Name: VTableWalk.idc
    // Desc: Attempts to determine vtable function count and encourages IDA to create functions at those function locations
    //
    // Ver: 1.0a - October 13, 2010 - HL-SDK [TEAM METALSLAVE]
    //

    #include <idc.idc>

    static GetNumMethods(vtbl)
    {
    auto a, x;
    a = 0;
    x = Dword(vtbl + a);

    while ((x) && (x != BADADDR) && (Dword(x) != BADADDR))
    {
    a = a + 4;
    x = Dword(vtbl + a);
    }
    return (a-4) / 4;
    }

    static ParseVtbl()
    {
    auto a, b, c;
    a = ScreenEA();
    b = GetNumMethods(a);
    Message("%d Vfuncs found\n", b);
    for (c = a; c < a + (b*4); c = c + 4)
    {
    if (c != BADADDR)
    {
    Message("Trying to make Function at: %X\n", c);
    MakeData(c, FF_DWRD, 4, 0);
    }
    }

    }

    static main()
    {
    AddHotkey("Alt-F7","ParseVtbl");
    Message("Use Alt-F7 to parse vtable\n");
    }

    [/php]

    Explanation: If you do not know what this does, you don't need it.
    loksmith is a fucking moron

  2. The Following 2 Users Say Thank You to HL-SDK For This Useful Post:

    CodeDemon (10-13-2010),DeadLinez (10-13-2010)

  3. #2
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Very nice work, great contribution. Will most definitely come in handy. Thanked

Similar Threads

  1. OllyDBG and IDA - Dumping
    By DeadLinez in forum Combat Arms Coding Help & Discussion
    Replies: 4
    Last Post: 07-13-2011, 07:11 AM
  2. [Release] SigMaker for IDA and Olly [Update]
    By LionelMessi10 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 17
    Last Post: 06-09-2011, 01:23 PM
  3. Plz I Want Maple Global Hacks And Where Do I Get Game Engine 2 Make The Hacks Work???
    By mattinthehat in forum MapleStory Hacks, Cheats & Trainers
    Replies: 3
    Last Post: 01-15-2006, 07:12 PM
  4. Lineag2 and Ragnarok
    By suppaman in forum General Gaming
    Replies: 12
    Last Post: 01-01-2006, 05:07 PM
  5. i need short icq number pls and hack to wr..
    By BoneXDBreaker in forum WarRock - International Hacks
    Replies: 1
    Last Post: 12-26-2005, 06:08 PM