📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

 Forums >>  Brainstorms - General  >>  Need help advancing to the next level of cracking

Topic created on: February 9, 2010 21:19 CST by Sohail86 .

I have had some experience (and some luck) cracking simple programs where you load the .exe in a disassembler (ollydbg) and trace through the code and figure out how to disable a time-trial or bypass a authorization key. But how does one do this for a plugin? The particular scenario I had in mind was a photoshop plugin that runs in photoshop.

1) I thought of loading photoshop in Ollydbg but the code size is enormous so I wouldn't know where to set a breakpoint to stop the execution when the plugin is accessed.
2) The plugin is essentially a .dll which I can load in Ollydbg standalone (without loading photoshop), but then I don't have the luxury of actually setting breakpoints and running it as Ollydbg won't let me run the dll properly.

Any help/advice/pointers? If there already is a thread which addresses this, then please point me to it.

Thanks,
Sohail

  Sohail86   February 10, 2010 01:57.16 CST
I just figured out the answer myself, so am posting in case anyone else is facing a similar issue. You just need to run the program in question first, then start ollydbg and attach to the running program. Then when you open a plugin, this plugin will be visible in the 'View->Executable Modules'. From there you can see the entry point, look at familiar strings and start setting breakpoints and single step through the code. It's much more satisfying to have figured this out myself :)

  RabidCicada     February 18, 2010 13:20.00 CST
Also....Most debuggers can respond to events.  The simple way would be to start the program with windbg or olly attached.  Then to set it to respond to "on load" events.  This would break-out when a new module is loaded.  Then you just watch until the dll is loaded.

From there you just observe whatever you want.

Note: Registration is required to post to the forums.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit