Raised This Month: $51 Target: $400
 12% 

Orpheu: How to make signatures (of bytes)


Post New Thread Reply   
 
Thread Tools Display Modes
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-24-2012 , 07:54   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #71

Okay, i want some help.


I am probaly

Code:
public plugin_precache() {     new teszt = OrpheuGetFunctionAddress(OrpheuGetFunction("SV_CountPlayers"))         new address     OrpheuMemoryGetAtAddress(teszt, "SV_CountPlayers", address);     log_to_file("kiki.log", "ERTEKE: %d", teszt); }


and log:
L 09/24/2012 - 14:16:45: [ORPHEU] Invalid memory structure "SV_CountPlayers"
L 09/24/2012 - 14:16:45: [AMXX] Displaying debug trace (plugin "teszt.amxx")
L 09/24/2012 - 14:16:45: [AMXX] Run time error 10: native error (native "OrpheuMemoryGetAtAddress")
L 09/24/2012 - 14:16:45: [AMXX] [0] teszt.sma::plugin_precache (line 24)
__________________

Last edited by kiki33hun; 09-24-2012 at 08:19.
kiki33hun is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-24-2012 , 08:57   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #72

You should create a new thread in scripting help because your problem has nothing to do with this tutorial.
__________________
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 02-10-2013 , 15:26   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #73

Hi,

I have a variable I want to change in memory (engine lib), im not sure how to make the signature for this. (dword_256D924). How should it look?

The function


Thanks.

Last edited by teh ORiON; 02-10-2013 at 19:09. Reason: Collapsed for readability.
teh ORiON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2013 , 16:27   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #74

You would need to retrieve its address from a function where it's used.
__________________
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 02-10-2013 , 17:06   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #75

Quote:
Originally Posted by Arkshine View Post
You would need to retrieve its address from a function where it's used.
It is used in that function, "sub_1D5B210", as shown in the image. It's used in several other functions as well, however it's never passed as a parameter or return.

Last edited by teh ORiON; 02-10-2013 at 17:07.
teh ORiON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2013 , 17:09   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #76

You can either make a signature of this function sub_1D5B210, retrieving its address, then adding some bytes as displacement to point to the address of this var, or making a signature direcly on the address of this var. You follow me ?
__________________
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 02-10-2013 , 17:15   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #77

Quote:
Originally Posted by Arkshine View Post
You can either make a signature of this function sub_1D5B210, retrieving its address, then adding some bytes as displacement to point to the address of this var, or making a signature direcly on the address of this var. You follow me ?
Yes, sort of. So in this case,

"8B 0D 24 D9 56 02 mov, ecx, dword_256D924"

Would the byte sig then be 24 D9 56 02 and displaced -2 to point directly, or am I not understanding it correctly?

Last edited by teh ORiON; 02-10-2013 at 17:18.
teh ORiON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2013 , 17:20   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #78

Better to start to 8B, then you would +2.

Your sig should start like : 8B ? ? ? ? ? etc..
__________________
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 02-10-2013 , 17:31   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #79

Quote:
Originally Posted by Arkshine View Post
Better to start to 8B, then you would +2.

Your sig should start like : 8B ? ? ? ? ? etc..
Ok so now I have:

Signature


Im getting a value, but it doesn't seem like it's the correct value. This should be correct right?

Last edited by teh ORiON; 02-10-2013 at 19:06. Reason: Collapsed code for readability.
teh ORiON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2013 , 17:37   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #80

Tell me what you want to retrieve exactly, I will have a better view of the issue, because dword_xxxx or sub_xxxx doesn't help much.
__________________
Arkshine is offline
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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode