PDA

View Full Version : NotePad topmost : plugin (asm only)


BeatriX
February 16th, 2006, 05:04
Hi,

I wrote this small plugin for Olly 1.10 just to see if it is easy to code it in ASM.It is just for educational purpose.

I have coded NotePad Topmost with masm32. It allows us to run NotePad with topmost property. So you can use it during an analyse with Olly (to note what you want) , NotePad stay on top. I added an option to control the opacity of the window too.

With the source code, you can see how to send logs to the Log data window of ollyDbg without using the Olly internal functions. (Addtolist for example).
You can see also how to send logs to Notepad using the Clipboard. (with the Copy2Clipboard procedure)

Sources + plugin :

http://reverseengineering.online.fr/spip/IMG/zip/NotePadEng.zip
("http://reverseengineering.online.fr/spip/IMG/zip/NotePadEng.zip
")

for french lovers :

http://reverseengineering.online.fr/spip/article.php3?id_article=58
("http://reverseengineering.online.fr/spip/article.php3?id_article=58
")

BeatriX (FRET)

gabri3l
February 17th, 2006, 00:28
Useful plugin BeatriX!
And very clean and simple source too. Thank you very much for sharing.

I actually modified it a bit so that after you open notepad, all subsequent times you choose "Run Notepad" the text in your clipboard is copied directly to notepad.
Wondering though if it is possible to register a new right-click menu option in Olly that will copy selected code directly to notepad?

BeatriX
February 17th, 2006, 04:28
Happy you like it can you explain what is your small modification ?
Yes, good question for the right click. Let's see...

gabri3l
February 17th, 2006, 10:36
It's kind of lame, :/

But I just commented copy2clipboard:

---------------------------------------------------------------------- -------
;call Copy2Clipboard ; copy in the clipboard
push 0
push 0
push WM_PASTE
push hEdit
call SendMessage ; paste in the NotePad

push offset ClipEnd
;call Copy2Clipboard ; copy in the clipboard just for beauty
---------------------------------------------------------------------- --

Now when WM_PASTE is called it will paste whatever is in the clipboard. If I get ambitious I was thinking of adding a couple carriage commands in there to add spaces between each time the clipboard is pasted.
But all I'm really doing is bastardizing your code. Without it I wouldn't have even known where to start.

BeatriX
February 17th, 2006, 11:35
ok, I see Maybe I have a solution. Here is the 1.1 version. I added a "Copy/paste to NotePad" function in the contextual menu of the Disasm window.

To do such a function, I just synthesize CTRL+C (using the Olly internal function which do it yet ) and then PASTE in the NotePad.

Sources+ Plugin 1.1 (same address):

http://reverseengineering.online.fr/spip/IMG/zip/NotePadEng.zip ("http://reverseengineering.online.fr/spip/IMG/zip/NotePadEng.zip")

gabri3l
February 17th, 2006, 13:38
wow, it was that easy to register a submenu. This has just become one of my favorite plugins.
Thanks again BeatriX