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-23-2012 , 05:47   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #61

Help me, i am using linux server and this signature hokking dont work!


Code:
{
    "name"      : "SV_CountPlayers",
    "library"   : "engine",
    "arguments" : 
    [
        {
            "type" : "char *"
        }
    ],
    "return" : 
    {
        "type" : "char *"
    },
    "identifiers":
    [
        {
            "os" : "windows",
            "value" : [NOT FOUND ONLY LINUX]
        },
        {
            "os" : "linux",
            "value" : "SV_CountPlayers"
        }
    ]
}
Server log:

PHP Code:
                Parsing file "SV_CountPlayers" started
                                Argument type 
"char *" validated
                                
Return type "char *" validated
                                Searching 
for name "SV_CountPlayers"... FOUND
                Parsing file 
"SV_CountPlayers" ended 
__________________
kiki33hun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-23-2012 , 10:25   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #62

Here is the header :

Code:
void SV_CountPlayers(int *);
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-23-2012 , 12:45   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #63

I tried but it is not good: (
__________________
kiki33hun is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-23-2012 , 13:17   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #64

Code:
{
    "name"      : "SV_CountPlayers",
    "library"   : "engine",
    "arguments" : 
    [
        {
            "type" : "pointer"
        }
    ],
    "identifiers":
    [
        {
            "os" : "linux",
            "value" : "SV_CountPlayers"
        }
    ]
}
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 09-24-2012 at 01:06.
ConnorMcLeod is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-23-2012 , 13:27   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #65

I am tested, ant not working!

L 09/23/2012 - 19:25:12: [ORPHEU] Function "SV_CountPlayers" not found
L 09/23/2012 - 19:25:12: [AMXX] Run time error 10 (plugin "teszt.amxx") (native "OrpheuGetFunction") - debug not enabled!


Screeonlog:

Parsing file "SV_CountPlayers" started
Argument has invalid type "int *"
FAILED
__________________

Last edited by kiki33hun; 09-23-2012 at 13:30.
kiki33hun is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-23-2012 , 14:00   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #66

use "pointer" instead.
__________________
Arkshine is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-23-2012 , 14:05   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #67

Yes i am use, look last post!
__________________
kiki33hun is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-23-2012 , 14:08   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #68

It should be : "type" : "pointer"
__________________
Arkshine is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-23-2012 , 14:12   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #69

Okey, i am tested!

I register orpheu hook SV_CountPlayers, in plugin precache!

And handler:

log_to_file("kiki.log", "ERTEKE: %d", OrpheuGetReturn());

Log:

L 09/23/2012 - 20:085: ERTEKE: -1278492088
L 09/23/2012 - 20:085: ERTEKE: -1278492088
L 09/23/2012 - 20:095: ERTEKE: -1278492088
L 09/23/2012 - 20:105: ERTEKE: -1278492088
L 09/23/2012 - 20:115: ERTEKE: -1278492088
L 09/23/2012 - 20:125: ERTEKE: -1278492088

And sig file:

Code:
{
    "name"      : "SV_CountPlayers",
    "library"   : "engine",
    "arguments" : 
    [
        {
            "type" : "pointer"
        }
    ],
    "return" : 
    {
        "type" : "pointer"
    },
    "identifiers":
    [
        {
            "os" : "linux",
            "value" : "SV_CountPlayers"
        }
    ]
}
__________________
kiki33hun is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-23-2012 , 15:15   Re: Orpheu: How to make signatures (of bytes)
Reply With Quote #70

The header is : void SV_CountPlayers(int *);

So it doesn't return something, result is passed by reference.

Not sure if it will work, but you can try to hook as post, then using OrpheuMemoryGetAtAddress with the param in the header.
__________________
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 19:30.


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