PDA

View Full Version : Breakpoint handler


vxx
January 1st, 2005, 00:22
Hello,
Another plugin question. OllyScript plugin can set handler on breakpoints, so, question is... how it does??
I tried to find such function in Plugin SDK, but no result
Of course, I can manually check if breakpoint reached. Just need to compare eip and my breakpoint in main loop.
BUT! It's bad method. First, it's very slow. Second, it can't check hardware breakpoints on read/write and memory breakpoints...
So... maybe there is needed function?

eyeblue
January 4th, 2005, 00:56
did you tried ODBG_Paused ?

eyeblue
January 4th, 2005, 01:01
and ODBG_Pausedex ?

vxx
January 5th, 2005, 05:20
Nice idea!
I already found good method from OllyScript sources (via ODBG_Pluginmainloop).
Anyway, thanks

anon 10
January 7th, 2005, 10:08
Ollydbg Is a very good Dissam but to make it great it needs a plugin that generates flowcharts. Does anybody know if one is available or in the works. If not is there independent software that can generate flowcharts with a dissam. Thanks

Please excuse me I may have posted this query in the wrong section initiaklly.

blabberer
January 7th, 2005, 10:21
well as far as i know the wingraph (open source iirc) that is integrated into ida can generate flowcharts of disasm

datarescue.com/idabase/idadown.htm

look into datarescues site and play with wingraph and probably
you can write a plugin that would incorporate it into ollydbg too

also there is a thread in rea board

t=2030&highlight=wingraph

it has some pointers as to how could one do the gdl files do search and read it


edit
why cant you create a new topic for yourself why should you hijack others
thread and make it unreadable for the original poster i saw the hijack after i posted else i wouldnt have posted

TQN
January 7th, 2005, 18:36
Yes, a flowchart plugin with wingraph will be a great plugin.

blabberer
January 8th, 2005, 08:57
well here is a small gdl file that i made to test the wingraph that comes with idafree 4.3 in standalone mode (ida deletes the .tmp it creates before displaying the graph it seems i cant find the .tmp that wingraph opens and reads)
either get the source code from data rescue and use builder to build the project as instructed in readme and or if you can get the executable from
ida folder use it in stand alone mode to test this file

usage of wingraph32
wingraph32 "this file"

copy paste the below code to notepad and rename the .txt as "this file" with or without extension unix style

graph: {title: "test graph"
node.color: lightyellow
node.textcolor: blue
edge.color: blue
edge.arrowsize: 5
edge.thickness: 1

node: { title:"21"
label: "Decision" shape: rhomb color: aquamarine }
node: { title:"20"
label: "ask Qusestion"}
node: { title:"19"
label: "wait"}
node: { title:"18"
label: "exit"}
node: {title:"17"
label: "wait for answer"}
bentnearedge: { sourcename:"21" targetname:"18" label: "exit" class: 1}
bentnearedge: { sourcename:"21" targetname:"20" label: "yes" class: 1}
bentnearedge: { sourcename:"21" targetname:"19" label: "no" class: 1}
edge:{sourcename:"20" targetname:"17"}
edge:{sourcename:"19" targetname:"21"}
}
now if any plugin writer wishes to write a plugin then it will be Great
may be the Godup plugin could be extended to use wingraph too as it already uses sigdump from ida folder