Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2013, 16:04
ferrit.rce's Avatar
ferrit.rce ferrit.rce is offline
VIP
 
Join Date: Sep 2013
Location: Switzerland
Posts: 42
Rept. Given: 10
Rept. Rcvd 101 Times in 23 Posts
Thanks Given: 0
Thanks Rcvd at 5 Times in 4 Posts
ferrit.rce Reputation: 100-199 ferrit.rce Reputation: 100-199
Olly PDK question

Hi,

I'm developing a plugin for Olly2 with the PDK and I have a question to that.
I would like to get the selection ( startposition -> endposition ) of the dump window in C/C++. I've tried several things but didn't find any useful info.

For the disassembler window there is a dedicated function "Getcpudisasmdump" but nothing for dump. Could comebody help?

Thanks in advance!

Ferrit
Reply With Quote
  #2  
Old 09-30-2013, 04:28
Jupiter's Avatar
Jupiter Jupiter is offline
Lo*eXeTools*rd
 
Join Date: Jan 2005
Location: Moscow, Russia
Posts: 216
Rept. Given: 36
Rept. Rcvd 61 Times in 36 Posts
Thanks Given: 20
Thanks Rcvd at 153 Times in 44 Posts
Jupiter Reputation: 61
Talking

Quote:
Originally Posted by ferrit.rce View Post
For the disassembler window there is a dedicated function "Getcpudisasmdump" but nothing for dump.
// Offtopic
"Getcpudisasmdump" looks/sounds like "Eyjafjallajökull", Ice cap of Iceland ;D

Which PDK docs do you use?
http://ollydbg.de/Help/i_Sorteddata.htm ?
AFAIK, PDK for 2.01 Final wasn't released yet.
__________________
EnJoy!
Reply With Quote
The Following User Gave Reputation+1 to Jupiter For This Useful Post:
giv (09-30-2013)
  #3  
Old 09-30-2013, 05:20
ferrit.rce's Avatar
ferrit.rce ferrit.rce is offline
VIP
 
Join Date: Sep 2013
Location: Switzerland
Posts: 42
Rept. Given: 10
Rept. Rcvd 101 Times in 23 Posts
Thanks Given: 0
Thanks Rcvd at 5 Times in 4 Posts
ferrit.rce Reputation: 100-199 ferrit.rce Reputation: 100-199
I'm using the unofficioal from the sample_plugins

Seems like this function doesn't exist and will be hopefully in the official available.
Because of that I've hardcoded the necessary address in the OllyExt code. I know it's ugly but this code will be replaced if PDK comes...
Reply With Quote
The Following User Gave Reputation+1 to ferrit.rce For This Useful Post:
giv (09-30-2013)
  #4  
Old 09-30-2013, 22:04
quygia128's Avatar
quygia128 quygia128 is offline
Family
 
Join Date: Apr 2011
Location: SomeWhere
Posts: 109
Rept. Given: 242
Rept. Rcvd 182 Times in 47 Posts
Thanks Given: 121
Thanks Rcvd at 30 Times in 19 Posts
quygia128 Reputation: 100-199 quygia128 Reputation: 100-199
hi ferrit.rce,

I don't use Sorteddata as bookmask plugin, but this code work (Delphi code)

Code:
var
	startsl, endsl: DWORD;
	
function  ODBG2_Plugindump(pd: P_dump;s: PWChar;mask: PWChar;n: LongInt;select: PInteger;addr: ULong;column: LongInt): LongInt; cdecl;
Begin
  if (column = DF_FILLCACHE) then begin
    if pd.menutype = DMT_CPUDUMP then begin
      startsl:= pd.sel0; // Start position
      endsl:= pd.sel1;   // End position
	end else
    if pd.menutype = (DMT_CPUDASM or DMT_FIXTYPE) then begin
		// CPU DISASM
    end else
    if pd.menutype = DMT_CPUSTACK then begin
		// CPU STACK
    end;
  end else
  if (column = TSC_MOUSE) then begin
    //
  end else
  if (column = DF_FREECACHE) then begin
    //We have allocated no resources, so we have nothing to do here.
  end;
  Result:= 0;
end;
Try and hope :-p

BR,
quygia128
Reply With Quote
The Following User Gave Reputation+1 to quygia128 For This Useful Post:
ferrit.rce (10-02-2013)
  #5  
Old 10-02-2013, 18:46
ferrit.rce's Avatar
ferrit.rce ferrit.rce is offline
VIP
 
Join Date: Sep 2013
Location: Switzerland
Posts: 42
Rept. Given: 10
Rept. Rcvd 101 Times in 23 Posts
Thanks Given: 0
Thanks Rcvd at 5 Times in 4 Posts
ferrit.rce Reputation: 100-199 ferrit.rce Reputation: 100-199
Hey quygia128,

Not a bad idea, I'm gonna try it

Thanks!

Ferrit
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Olly pdk 1.08 ragdog General Discussion 4 01-05-2014 21:16
Olly Question blaklite General Discussion 7 02-19-2011 05:39
Olly & .NET peleon General Discussion 8 06-21-2007 09:13
Olly BPM apex General Discussion 1 02-25-2005 15:02


All times are GMT +8. The time now is 17:18.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )