Raised This Month: $27 Target: $400
 6% 

[Orpheu] Logueo de cdkeys


  
 
 
Thread Tools Display Modes
Author Message
thesnakebiter
Senior Member
Join Date: Oct 2011
Old 04-14-2013 , 06:22   [Orpheu] Logueo de cdkeys
#1

Tengo varias dudas, uso este code:
PHP Code:
#include <amxmodx>
#include <orpheu>
public plugin_init()
{
    
register_plugin("Test Orpheu","0.1a""TheSnakeBiter")
    
OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient"),"OnSV_ConnectClient")
}
public 
OrpheuHookReturn:OnSV_ConnectClient()
{
    new 
CurrentTime[9
    static 
info[100],dummy[1]
    
read_argv(3,info,charsmax(info))

    for(new 
i=0;i<8;i++)
        
strtok(info,dummy,0,info,charsmax(info),'\')
    
    get_time("%H:%M:%S",CurrentTime,8)
    log_to_file("cdkeys.txt","%s - %s ^n", CurrentTime, info)
    return ( equal(info,"19e5f1e722f4ab6d0d41c82f89c65295") 
        || equal(info,"f0ef8a36258af1bb64ed866538c9db76") 
        || equal(info,"d506d189cf551620a70277a3d2c55bb2")
        || equal(info,"67790c589689e0c8bc9254418f74a7e8")
        || equal(info,"2f7aca2b284b6bd8aedd261c6a5a6b49")
        || equal(info,"a8da12f3f71d87a40ca6c35ee73ad1a5") 
        || equal(info,"61b9ce4070c5a3ec287995faa9e6dc49") 
        || equal(info,"821bd412a43cd778dd3448791a135275") 
        || equal(info,"520a87d91ba71f8dc9a905424b548a7d")
        || equal(info,"861078331b85a424935805ca54f82891")
        || equal(info,"fc919407beff66e210d03f3a72d456c0")
        || equal(info,"dffa71977e9f0a0e6f0ea6d47e8a17bc")
        || equal(info,"dacc732487fb2972a20f49b7070eed64")
        || equal(info,"47adf2fa515ea324a161e8b39ac631bd"))
         ? OrpheuSupercede : OrpheuIgnored
  

Y no funciona, tampoco se si bloquea correctamente, quisiera saber las argvs que puedo recibir del usuario y ponerlas todas en un log con horas de conexión..
thesnakebiter is offline
DJHD!
Veteran Member
Join Date: Dec 2009
Location: Santiago, Chile
Old 04-14-2013 , 15:02   Re: [Orpheu] Logueo de cdkeys
#2

Para que mierda quieres hacer eso ?
__________________
Quote:
Originally Posted by XINLEI View Post
Porque rocccos trata de ser el metalicross que nunca va a poder ser.
DJHD! is offline
Send a message via MSN to DJHD!
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-14-2013 , 21:33   Re: [Orpheu] Logueo de cdkeys
#3

Para evitar exploits.

Esto es un ejemplo de lo que se puede recibir

argv 3 => \prot\4\unique\-1\raw\valve\cdkey\d506d189cf551620a70277a3d2c 55bb2" "
argv 4 => setinfo del usuario
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 04-14-2013 at 21:37.
joropito is offline
Send a message via MSN to joropito
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-15-2013 , 11:41   Re: [Orpheu] Logueo de cdkeys
#4

Quote:
Originally Posted by joropito View Post
Para evitar exploits.

Esto es un ejemplo de lo que se puede recibir

argv 3 => \prot\4\unique\-1\raw\valve\cdkey\d506d189cf551620a70277a3d2c 55bb2" "
argv 4 => setinfo del usuario
siguiendo tu ejemplo se podria usar algo asi..

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"


public plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(3.0"test")
    
}

public 
test() {
    
    new 
source[] = "\prot\4\unique\-1\raw\valve\cdkey\d506d189cf551620a70277a3d2c 55bb2 "
    
    
new Data[35]
    
    
server_print("Source:%s"source)
    
    
rak_get_cdkey(sourceData)
    
    
server_print("*----------------------------------*")
    
    
server_print("Data:%s"Data)
    
}

stock rak_isspace(Value)
    return (
Value == 32)

stock rak_get_cdkey(Source[], Data[]) {
    
    new 
iz
    
    
while(Source[i]) {
        
        if(
z) {
            
            while(!
rak_isspace(Source[i]) && Source[i]) {
                
                
Data[z-1] = Source[i]
                
                
z++
                
                
i++
                
            }
            
            break;
            
        }
        else {
            
            if(
Source[i] == 'c' && Source[i+1] == 'd' && Source[i+2] == 'k' && Source[i+3] == 'e' && Source[i+4] == 'y' && Source[i+5] == '\') {
                
                i += 6
                
                z++
                
            }
            else 
                i++
                
        }
    }

__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
thesnakebiter
Senior Member
Join Date: Oct 2011
Old 04-15-2013 , 16:11   Re: [Orpheu] Logueo de cdkeys
#5

Quote:
Originally Posted by rak View Post
siguiendo tu ejemplo se podria usar algo asi..

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"


public plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(3.0"test")
    
}

public 
test() {
    
    new 
source[] = "\prot\4\unique\-1\raw\valve\cdkey\d506d189cf551620a70277a3d2c 55bb2 "
    
    
new Data[35]
    
    
server_print("Source:%s"source)
    
    
rak_get_cdkey(sourceData)
    
    
server_print("*----------------------------------*")
    
    
server_print("Data:%s"Data)
    
}

stock rak_isspace(Value)
    return (
Value == 32)

stock rak_get_cdkey(Source[], Data[]) {
    
    new 
iz
    
    
while(Source[i]) {
        
        if(
z) {
            
            while(!
rak_isspace(Source[i]) && Source[i]) {
                
                
Data[z-1] = Source[i]
                
                
z++
                
                
i++
                
            }
            
            break;
            
        }
        else {
            
            if(
Source[i] == 'c' && Source[i+1] == 'd' && Source[i+2] == 'k' && Source[i+3] == 'e' && Source[i+4] == 'y' && Source[i+5] == '\') {
                
                i += 6
                
                z++
                
            }
            else 
                i++
                
        }
    }

Se podría intentar.. Intentare poner el orpheu, que no me lo coge bien el sv..
thesnakebiter is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 04-15-2013 , 20:12   Re: [Orpheu] Logueo de cdkeys
#6

La signature echa , el server lo toma bien ?
Mostraste un output debug para ver que valor devuelve ?

Si tenes un output , pegalo aca porque no tengo una idea de que puede devolver.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 04-15-2013 , 21:59   Re: [Orpheu] Logueo de cdkeys
#7

en el archivo cdkeys.txt que en teoria se crea tenes el output.
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
thesnakebiter
Senior Member
Join Date: Oct 2011
Old 04-16-2013 , 08:58   Re: [Orpheu] Logueo de cdkeys
#8

Quote:
Originally Posted by lucas_7_94 View Post
La signature echa , el server lo toma bien ?
Mostraste un output debug para ver que valor devuelve ?

Si tenes un output , pegalo aca porque no tengo una idea de que puede devolver.
Si te refieres ami, ahora mismo pruebo y te dejo aquí el output con el metodo de rak

Last edited by thesnakebiter; 04-16-2013 at 09:00.
thesnakebiter is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 04-16-2013 , 09:21   Re: [Orpheu] Logueo de cdkeys
#9

Postea ambos metodos , el de rak y el que queda logeado en cdkeys.txt
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
thesnakebiter
Senior Member
Join Date: Oct 2011
Old 04-16-2013 , 10:21   Re: [Orpheu] Logueo de cdkeys
#10

Quote:
Originally Posted by lucas_7_94 View Post
Postea ambos metodos , el de rak y el que queda logeado en cdkeys.txt

[ORPHEU] Function "SV_ConnectClient" not found
[AMXX] Displaying debug trace (plugin "asd.amxx")
[AMXX] Run time error 10: native error (native "OrpheuGetFunction")
[AMXX] [0] asd.sma::plugin_init (line 6)

D: Que tonto soy HELP

Last edited by thesnakebiter; 04-16-2013 at 10:22.
thesnakebiter is offline
 


Thread Tools
Display Modes

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 22:11.


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