![]() |
[Fix] Buffs Exploit
check the post below
|
all i see above is boxes :/
|
Ummmm... thats a SQL script... o_O
I guess it'll be useful for figuring out the new client-side add-ins like private workshop and recommend, etc... Anyone wanna hex the client and see what command is sent for these actions so we can make a corresponding SQL script? :P |
solving BUFF has 3 methods,
1: edit database lin_GetUserDataByCharId find (SELECT * FROM user_ActiveSkill (nolock) WHERE char_id = @char_id) as uas changed the red portion to a char without any buff on any acc ID example: (SELECT * FROM user_ActiveSkill (nolock) WHERE char_id = 1) as uas this solves BUFF stacking problem,side-effects,when char goes online, no buffs 2: simple fix for BUFF --- stored procedure need testing! in lin2db,there's this stored procedure ap_GStat check it's element! inside is transaction's code change to: /*CREATE PROCEDURE [dbo].[ap_GStat] @account varchar(14), @uid int OUTPUT, @payStat int OUTPUT, @loginFlag int OUTPUT, @warnFlag int OUTPUT, @blockFlag int OUTPUT, @blockFlag2 int OUTPUT, @subFlag int OUTPUT, @lastworld tinyint OUTPUT AS SELECT @uid=uid, @payStat=pay_stat, @loginFlag = login_flag, @warnFlag = warn_flag, @blockFlag = block_flag, @blockFlag2 = block_flag2, @subFlag = subscription_flag , @lastworld=last_world FROM user_account WITH (nolock) WHERE account=@account GO*/ CREATE PROCEDURE [dbo].[ap_GStat] @account varchar(14), @uid int OUTPUT, @payStat int OUTPUT, @loginFlag int OUTPUT, @warnFlag int OUTPUT, @blockFlag int OUTPUT, @blockFlag2 int OUTPUT, @subFlag int OUTPUT, @lastworld tinyint OUTPUT, @block_end_date datetime OUTPUT AS DECLARE @JianGe INT SET NOCOUNT ON SELECT @uid=uid, @payStat=pay_stat, @loginFlag = login_flag, @warnFlag = warn_flag, @blockFlag = block_flag, @blockFlag2 = block_flag2, @subFlag = subscription_flag , @lastworld=last_world, @block_end_date=block_end_date FROM user_account WITH (nolock) WHERE account=@account SELECT @JianGe = DATEDIFF(ss, last_logout, getdate()) FROM user_account WITH (nolock) WHERE account=@account IF @JianGe < 60 BEGIN set @blockFlag2 = 1 END GO test first!!!!! can防BUFF叠加 IF @JianGe < 60 means delay of 60seconds 3: edit ap_Gstat,solves BUFF open ap_Gstat stored procedure,since this procedure reads account state info, solving this problem becomes alot easier ok, in this procedure paste the code below above the word GO: declare @lastlogin datetime SELECT @lastlogin=last_login from user_account (nolock) where account=@account if @lastlogin is not null and DateDiff(ss,@lastlogin,GetDate())<180 Begin set @blockflag=1 End |
...but...
set @blockflag=1 will block this user for ever, isnt it? |
This isn't solve over buff bug, because all information about buffs stored in cache. You need to restart server for clear it.
May be anybody know how to clear cache without restarting? |
Quote:
|
Hmm.. DELETE_SKILL_PATTERN
Do you think this command will clear skill cache? |
This does fix it, they can not use the bug exploit if they can not log right back in. The exploit is based off of timeing.
So if you use this and stop them from being able to login & logout over and over then its fixed. |
This does not fix the buff duping.
Sorry.... But I tested it :) (My SQL was correct, im a Microsoft Certified Database Administrator, so im not some random newb editing stored procs etc.) The only way (at the moment) to fix it, is change your authd and network.dll. This makes it NEARLY impossible for l2walker ppl to get in (what is used for the exploit, for the quick logging etc). Id move this back to the general discussion as it will give people false hope. But, it doesnt work. |
Quote:
and for outgame bote exist L2UnPro utility... |
Vicious it doesnt STOP them 100%, but.. its enough of a hurdle that ive seen zero buff sploiters since I did that.
|
Easyiest way and, I think, more practical is erase all buffs on exit. Not so important, we buy no overbuffing and cost for it - erase buff on exit.
|
Quote:
|
and how would i implement buff_erase_on_quit ? All 3 of the script edits do not solve.
|
I cant understand this :
----------------------------------------------------- SELECT @JianGe = DATEDIFF(ss, last_logout, getdate()) FROM user_account WITH (nolock) WHERE account=@account IF @JianGe < 60 BEGIN set @blockFlag2 = 1 END GO test first!!!!! can防BUFF叠加 IF @JianGe < 60 means delay of 60seconds ----------------------------------------------------- Is @JianGe an... example ? Coz it looks like an account to me. |
Let me give you the idea how to make overbuff block.
First, it will require cacheD hexing. You need to add extra peace of code to function which reads buffs (on user login). If there's a duplicate, discard it. That's it. So, it will take about (slot_numbers!-1)*10 operations, but it is called once per character enterworld(), so what's problem? Start thinking. |
Is it really a FIX about this exploit..?
Cause all of your "FIXs" will cause lag or will not work.. |
script starting by cron every 5 min:
Code:
select char_id from user_ActiveSkill |
Quote:
work finely, also automatically fills up cheaters list on site (relieves from superfluous bodymoving :) ) but nevertheless i shall look that is possible make through stored proc i hate MSSQL :) == sorry 4 my terrable eng, my native lang is perl |
Without any extrnal scripts.
Just edit your stored procedure lin_CharLogout in lin2world DB Code:
/******************************************** |
Tnx SolarWind , i will test it right now !!!
|
Well, since it was some time... and I was given a permission to post it... for those who can't solve overbuff problem yet...
the hex i talked about Code:
0044E290 . /E9 FEFC0400 JMP Cached.0049DF93Code:
0049DF93 > \8B8C30 FC0100>MOV ECX,DWORD PTR DS:[EAX+ESI+1FC]0049DF92 90 NOP if needed of course. |
| All times are GMT. The time now is 22:07. |