PDA

View Full Version : Plugin request


Wayne
November 19th, 2002, 01:01
I'd love a plugin that allowed me to simply type in an instruction, such as:
cmp ecx, esi
and it would display in a label underneath, the compiled instruction:
3BCE
It'd be very handy!

TBD
November 19th, 2002, 08:00
Wayne: i asked Gigapede about it, if he wants to change his cmdbar plugin to include this feature, for example ASM "cmp ecx,esi" as a command

Gigapede
November 19th, 2002, 10:43
good idea.
I've added this function.
try it plz.

p.s.
line info has bug yet.
once kill focus from combo and set focus again, then add charcter after prev string, the command candidates on label are wrong (prev string is ignored).

Anonymous
November 19th, 2002, 15:02
Hmm... It crashes if you dont use a ";". Null pointer...

How about changing
p = strstr(string,";";
*p = '\0';
p++;
address = strtoul(p,&stop,16);
Addtolist(0,-1,"Address:%X",address);
// Assemble immediate command. If there are several possible encodings,

to

p = strstr(string,";";
address = 0;
if(p) {
*p = '\0';
p++;
address = strtoul(p,&stop,16);
Addtolist(0,-1,"Address:%X",address);
}
// Assemble immediate command. If there are several possible encodings,

Thanks!

Wayne
November 19th, 2002, 18:42
Excellent plugin! thanks
It'd be good not having to use semi-colon though
Also it doesn't recognise the PUSH command?

TBD
November 19th, 2002, 22:57
Wayne: have you downloaded 1.08a from Olly page ?

Gigapede: maybe you can add command completing on TAB key (for example
type Q and TAB and results QUIT)

[TIP] you can select cmdbar editbox with CTRL+D (for those you hate mousing around )

Gigapede
November 20th, 2002, 19:23
update cmdbar
see "Plugin request 2".

TBD: Umm.. editbox seems not to accept TAB key.
thanks the TIP.
did you read such a messy source?

TBD
November 20th, 2002, 22:51
Gigapede: hehe ... of course ... i am used to that, look on my messy sources ))

messageboard [TIP] click on the name of a user to put it in editbox (save some typing)

editbox does not accept TAB key, so you must reformat your post if it doesnt look right by using "Edit"

Anonymous
November 21st, 2002, 05:42
yep I'm using 1.08a ... using the cmdbar plugin, 'push 0' returns the following:
Unrecognized command: PUSH
?

TBD
November 21st, 2002, 05:49
Wayne: is that you ?
you must enter like this "asm push 0" - without "" and returns 6A00
also download cmdbar100b4.zip from plugins page

Anonymous
November 21st, 2002, 06:29
Yep its me, i just dont have my password with me at this computer <grin>
I downloaded the new 100b4 cmdbar plugin and it's working perfectly! thanks -- it's quite a handy feature, im gonna shout myself a drink for thinking of it
Cheers TBD and Gigapede!
Wayne

bigglass
November 21st, 2002, 21:49
Gigapede: Can additional functionality for breakpoint commands execute some commands(EX: BP expression [,condition] DO commands)

TBD
November 21st, 2002, 22:42
bigglass: possible but you must do some tricks
you must check in _ODBG_Pluginmainloop if OD is in STAT_STOPPED, and if the current EIP is pointing to your address, than DO command (because some of OD functions are atomic, e.g. Run)

check my plugin TBD_Debugplugin for a little example.