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.

Active in Last 5 Minutes
jesucito81

There are 28,225 total registered users.


Recently Created Topics
Reverse Engineering ...
Jan/23
Career: DoD Agency I...
Jan/22
"Disappearing&q...
Jan/17
Career: Software Sec...
Jan/11
Where is the call st...
Jan/07
IDA Pro 6.1 Breakpoi...
Jan/01
How to create data s...
Dec/30
can i search all mod...
Dec/23
IDA symbol table exp...
Dec/20
An anti-attach trick
Dec/17


Recent Forum Posts
Reverse Engineering ...
NirIzr
"Disappearing&q...
NirIzr
Reverse Engineering ...
charlie
"Disappearing&q...
charlie
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
Looking for value in...
NirIzr


Recent Blog Entries
cmathieu
Feb/07
Hacker Carnival

waleedassar
Feb/06
OllyDbg v1.10 And Hardware ...

waleedassar
Jan/31
Yet Another Anti-Debug Trick

RolfRolles
Jan/22
Finding Bugs in VMs with a ...

waleedassar
Jan/13
An OllyDbg Bug Disables Sof...

More ...


Recent Blog Comments
waleedassar on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/05
Yet Another Anti-Debug Trick

trolotou on:
Feb/05
Doudoune Moncler -Pennies F...

waleedassar on:
Feb/01
Yet Another Anti-Debug Trick

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit