Want to Join Us ?

you'll be able to discuss, share and send private messages.

Release x64dbgpy-Plugin-Template Template for easying the making of python plugins for x64dbgpy

Discussion in 'x64dbg Python Help and Releases' started by storm shadow, Jul 12, 2016.

Share This Page

  1. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    x64dbgpy-Plugin-Template

    Template for easying the making of pythyon plugins for x64dbgpy
    This is a template for compiling x64dbgpy plugins.

    Howto
    simply edit the temnplate after your needs in the code. Places that needs modification is quoted in the code. the compiled plugin loader calls your main script, so put the compiled plugin .dp32/.dp64 in x64/c32/plugins folder and main python script in plugins\pythonapp\main.py
    Also change outputfile name in project setting in VS2013 Compiled files will be located in plugin folder.

    examble py.cpp
    Code (C):
    // editor
    static void Editor() // function to call main python app file
    {
        wchar_t szFileName[MAX_PATH] = {0};
    char szDir[256]; GetCurrentDirectoryA(256,szDir); _plugin_logputs(szDir);
        ExecutePythonScript(L"plugins\\X64Dbg_editor\\Editor_x64dbg.py"); // execution of main file location
    }

    Needed
    https://github.com/x64dbg/x64dbgpy
    Use vs2013 same as x64dbg to avoid runtime error.
    python 2.7.x x86/x64(depend on your needs)
    Examble of a finished plugin

    Important
    If you do os.chdir() in python script , remember to set x86/x64 root dir , and set it back to root before exiting script or it will be hard to find the plugin again

    Example
    Code (Python):
    sys.path.insert(0, os.getcwd() + r'\\plugins\\Updater')
    dn = os.getcwd()
    bob = os.chdir(os.getcwd() + r'\\plugins\\Updater')
    then end of script
    Code (Python):
    os.chdir(dn)
    Example Plugin
    https://github.com/techbliss/x64dbg_updater


    template source
    https://github.com/techbliss/x64dbgpy-Plugin-Template
    Thx
    Tomer Zait
     

    Attached Files:

    Rip Cord likes this.
  2. GelosSnake

    Member

    Thanks
     
Top