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

Orpheu: How to make signatures (of bytes)


Post New Thread Reply   
 
Thread Tools Display Modes
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 02-10-2013 , 17:50   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #81

Quote:
Originally Posted by Arkshine View Post
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.
Ok so, I have this engine function:
Windows

Linux


Which is roughly similar to this q1 function:
Quake function


Instruction list from IDA for the function:
Instruction list


What im trying to do is retrieve that variable "mod_numknown", which should be an int, and it should also denote the amount of models that's in the cache currently.

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

It works for me.

plugin example

mod_numknown

int
__________________

Last edited by Arkshine; 02-10-2013 at 18:19.
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 02-10-2013 , 18:33   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #83

Ah nice! That works for me too. I was trying just,

PHP Code:
new mod_numknown =OrpheuMemoryGet"mod_numknown" 
That was the confusion. Thought that was the way to retrieve it in pawn. I guess that way only works if you have a direct address to a constant?

Thanks alot for the help!
teh ORiON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2013 , 19:09   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #84

Here another way, can be useful if you want to support linux and don't want to make signatures :

plugin example


Mod_ClearAll


In this case, mod_numknown is retrieved at the start of function, so doing stuffs from the start of the function is enough safe.
what we can do is to retrieve Mod_ClearAll address, adding the displacement ( 1 for linux, 2 for windows ) to point to the address of mod_numknown, then reading the value. This way, we avoid signature for linux.
__________________

Last edited by Arkshine; 02-10-2013 at 19:14.
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 02-10-2013 , 19:35   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #85

Ah yes, I see. That's pretty clever. Will keep that in mind! Thanks!
teh ORiON is offline
darktemplar
Member
Join Date: Sep 2009
Old 02-15-2013 , 02:07   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #86

@ Arkshine : Can you help me to change the base damage of CS Weapon ?

I've found this :

http://code.google.com/p/cs-sdk/sour...pec=svn83&r=83

And I know the FireBullets and FireBullets3 is the function which calculates and does damage. Can you help me to hook and change the flDamage?
darktemplar is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-18-2013 , 22:55   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #87

Quote:
Originally Posted by darktemplar View Post
@ Arkshine : Can you help me to change the base damage of CS Weapon ?

I've found this :

http://code.google.com/p/cs-sdk/sour...pec=svn83&r=83

And I know the FireBullets and FireBullets3 is the function which calculates and does damage. Can you help me to hook and change the flDamage?
Arkshine provided Rage's signatures on it's respective thread, search for it, is on the first page
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-11-2013 , 01:30   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #88

I've found InstallHostageManager, and I'm under the impression that it is an object like g_pGameRules, and that it would allow me to do some fun stuff with hostages?

So from:
Code:
51                                            push    ecx
A1 4C A2 12 10                                mov     eax, dword_1012A24C
56                                            push    esi
33 F6                                         xor     esi, esi
3B C6                                         cmp     eax, esi
74 4E                                         jz      short loc_1004EE9B
53                                            push    ebx
55                                            push    ebp
89 44 24 0C                                   mov     [esp+10h+var_4], eax
57                                            push    edi
8D A8 34 01 00 00                             lea     ebp, [eax+134h]
BB 15 00 00 00                                mov     ebx, 15h
I've come up with:
Code:
{
    "name"    : "InstallHostageManager",
    "library" : "mod",
    "return"  : 
    {
        "type" : "CHalfLifeMultiplay *"
    },
    "identifiers":
    [
        {
            "os"    : "windows",
            "mod"   : "cstrike",
            "value" : [0x51,0xA1,0x4C,"*","*","*",0x56,0x33,0xF6,0x3B,0xC6,0x74,"*",0x53,0x55,0x89,0x44,"*","*",0x57,0x8D,0xA8,"*","*","*","*",0xBB,0x15],
        }
    ]
}
But it reports as not found. Can I please have some help?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-11-2013 , 03:34   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #89

InstallHostageManager() doesn't return. Inside it sets directly g_pHostages.
__________________
Arkshine is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-11-2013 , 04:10   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #90

Okay. I probably should have looked further into this beforehand - It seems that g_pHostages is only used CHostageManager which I don't need.
So the rest of the functions from CHostage and CHostageImprov are virtual and don't need bytes signatures correct?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 13:09.


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