This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Anticheat


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-18-2006 , 13:49  
#11

Yes, yes, that is all well and good, but how do you prevent injection?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
DPAKOH
Member
Join Date: Oct 2005
Location: Russia, Moscow
Old 01-19-2006 , 10:12  
#12

I hook somy kernel mode functions which calls by all injectors.
__________________
Sorry for bad english

Dubki CS 1.6 Servers: http://www.cs.dubki.ru/
Server: 2 x AMD Opteron 275 = 4 cores x 2.2 Ghz, 2x1Gb ECC DDR400 Mem.
DPAKOH is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-19-2006 , 13:10  
#13

What about indirect patching, hooking, and redirection of function calls?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
DPAKOH
Member
Join Date: Oct 2005
Location: Russia, Moscow
Old 01-21-2006 , 04:12  
#14

Yes, I use this methods how user-mode protection.

And one dummy problem: I can't change AMXX script parameters which sends by reference:

Module:
Code:
// native acprotection_get_status_ex(userid, &ac_mj_ver, &av_mn_ver)
static cell AMX_NATIVE_CALL acprotection_get_status_ex(AMX *amx, cell *params) 
{
	StatusInfo info;
	DBG_PRINT_MSG("acprotection_get_status_ex called for userid %u", params[1]);
	DWORD ret = GetStatusValueEx(params[1], &info);
	DBG_PRINT_MSG("acprotection_get_status_ex return 0x%X, mj: %u, mn: %u", ret, info.ac_mj_ver, info.ac_mn_ver);

	params[2] = 2;
	params[3] = 6;

	return ret;
}
Script:
Code:
new mj_ver, mn_ver, status
status = acprotection_get_status_ex(userid, mj_ver, mn_ver)
console_print(id,"PLAYER STATUS: name('%s'), status(%s), ver(%d.%d)", name, status_text, mj_ver, mn_ver)
And I always have ver(0.0).
What is it?
__________________
Sorry for bad english

Dubki CS 1.6 Servers: http://www.cs.dubki.ru/
Server: 2 x AMD Opteron 275 = 4 cores x 2.2 Ghz, 2x1Gb ECC DDR400 Mem.
DPAKOH is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 01-21-2006 , 15:37  
#15

pass them by reference not return
Freecode is offline
DPAKOH
Member
Join Date: Oct 2005
Location: Russia, Moscow
Old 01-21-2006 , 15:58  
#16

I don't understand
Because I wrote this:
Code:
acprotection_get_status_ex(userid, &ac_mj_ver, &av_mn_ver)
Or I have big problems in english
__________________
Sorry for bad english

Dubki CS 1.6 Servers: http://www.cs.dubki.ru/
Server: 2 x AMD Opteron 275 = 4 cores x 2.2 Ghz, 2x1Gb ECC DDR400 Mem.
DPAKOH is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 01-21-2006 , 16:09  
#17

Code:
// native acprotection_get_status_ex(userid, &ac_mj_ver, &av_mn_ver) static cell AMX_NATIVE_CALL acprotection_get_status_ex(AMX *amx, cell *params) {    StatusInfo info;    DBG_PRINT_MSG("acprotection_get_status_ex called for userid %u", params[1]);    DWORD ret = GetStatusValueEx(params[1], &info);    DBG_PRINT_MSG("acprotection_get_status_ex return 0x%X, mj: %u, mn: %u", ret, info.ac_mj_ver, info.ac_mn_ver);        cell *mj_ver = MF_GetAmxAddr(amx, params[2]);    *mj_ver = info.ac_mj_ver; // or w/e u want to set the second arg        cell *mn_ver = MF_GetAmxAddr(amx, params[3]);    *mn_ver = info.ac_mn_ver; // or w/e u want to set the third arg    return 1; }
Freecode is offline
DPAKOH
Member
Join Date: Oct 2005
Location: Russia, Moscow
Old 01-23-2006 , 13:49  
#18

Thank you.
And one question: AMXX Module "SOCKETS", function socket_open. There parametr which sends by reference saved as params[...] = ...; It's error? But sockets module work. +)
__________________
Sorry for bad english

Dubki CS 1.6 Servers: http://www.cs.dubki.ru/
Server: 2 x AMD Opteron 275 = 4 cores x 2.2 Ghz, 2x1Gb ECC DDR400 Mem.
DPAKOH is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 01-23-2006 , 14:26  
#19

shto?
skaji po ruckiy
Freecode is offline
DPAKOH
Member
Join Date: Oct 2005
Location: Russia, Moscow
Old 01-23-2006 , 15:57  
#20

V module sockets, v funkcii socket_open est' parametr "error", kotoryi peredaetsa po ssylke. Tak vot chtob ustanovit' ego znachenie ispolzuetsa naprimer:
Code:
params[4] = 2;
A pochemu u nix eto rabotaet? I pochemu oni ne ispolzuut MF_GetAmxAddr?
__________________
Sorry for bad english

Dubki CS 1.6 Servers: http://www.cs.dubki.ru/
Server: 2 x AMD Opteron 275 = 4 cores x 2.2 Ghz, 2x1Gb ECC DDR400 Mem.
DPAKOH is offline
Closed Thread



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 14:47.


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