Jump to content
Tuts 4 You

Ollydbg2 plugin problem


ragdog

Recommended Posts

I have plugin header converted to include for masm32 and my plugin works fine

but i have a a problem with my 2 submenu entry with a one submenu works but not with 2

Then WSTR is a macro for convert to unicode

have you an idea if this not works?

Example Menu:

OllyPluginExample-

................- Options

................-About

t_menu    STRUCT
Name1 DWORD ? ; Menu command
help DWORD ? ; Explanation of command
shortcutid DWORD ? ; Shortcut identifier, K_xxx
menufunc DWORD ? ; Function that executes menu command
submenu DWORD ? ; Pointer to descriptor of popup menu
;union t_menu
index DWORD ? ; Argument passed to menu function
hsubmenu DWORD ? ; Handle of pulldown menu
;ENDS
t_menu ENDS
WSTR PluginName,"OllyPluginExample"
WSTR PluginInfo,"Plugin Info"
WSTR PluginOption,"Options"
WSTR PluginOptionInfo,"Option info"
WSTR PluginAbout,"About"
WSTR PluginAboutInfo,"About info"
;Menu command,
;Explanation of command
;Shortcut identifier, K_xxx
;Function that executes menu command
;Pointer to descriptor of popup menu
;Argument passed to menu function
;Handle of pulldown menuMainMenu t_menu <PluginName,PluginInfo,K_NONE,MenuHandler,Options ,0>
Options t_menu <PluginOption, PluginOptionInfo,K_NONE,MenuHandler,NULL,1>
About t_menu <PluginAbout,PluginAboutInfo,K_NONE,MenuHandler,NULL,2>;// Plugin menu that will appear in the main OllyDbg menu. Note that this menu
;// must be static and must be kept for the whole duration of the debugging
;// session.
;static t_menu mainmenu[] = {
; { L"Pluginname",
; L"Plugin Info",
; 0, MenuHandler, NULL, 0 },
; { L"Option",
; L"Option Info1",
; 0, MenuHandler, NULL, 0 },
; { L"|About",
; L"About info",
; 0, MenuHandler, NULL, 0 },
; { NULL, NULL, 0, NULL, NULL, 0 }
;};

Or can any translate it correct please?

Thanks all

Edited by ragdog
Link to comment
XeroNic (HS)

I think 'OllyDbg2' plugin coding is very delicate work...

If one menu is disappeared, check 't_menu' structure values of disappeared menu, In memory.

If 't_menu' structure has invalid value, that menu is not work.

good luck ~ :)

Link to comment
  • 2 weeks later...
ida_sigs_pluginmenu    		 t_menu <uni$("Apply IDA Signatures"),uni$("Apply IDA Signatures Info"),K_NONE,MenuHandler,NULL,1>
t_menu <uni$("About"),uni$("About info"),K_NONE,MenuHandler,NULL,2>
t_menu <0,0,K_NONE,0,NULL,0>
Link to comment
  • 1 month later...

Hi

I coding on a new olly2 plugin now ist the question

What for a olly api fill the listbox (matching labels) on the expressions dialog?

Decodeadress convert a adress from jump or call to a symbolic name

before i use Decode address must i find all jumps and calls

was is the Olly api for it

Findglobaljumpscallsto or Findlocaljumpscallsto?

and how i can use this apis?

Greets,

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...