![]() |
|
|
#51 |
|
Архивный участник
Join Date: May 2006
Posts: 55
|
Nope, my idea is useless. No errors if exploit done right, so we cant catch it by logs. SQL workaround should help but to really fix this i think only hexing helps.
|
|
|
|
|
#52 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
Well, workaraound i said in this thread works. However, im not 100% sure if there's a way to work around that sql workaround -_-
Anyways, hint's hauthd blocks all of this same for la2guard and bakedice's thing. Chinese been using it and dunno.. However imo, blocking isnt what needs to be done. Fixing is what needs to be done. I can't seem to trace that call to authd. But let's see if my brain starts working. |
|
|
|
|
#53 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
|
|
|
|
|
|
#54 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
Well his hauthd blocks client from getting injected. Without his client dlls cannot start client. In a sense it blocks from hlapex and such packet explorers itself. So, it's blocking. Not fixing, i agree.
If could find the correct function - though im sure requestlogin or it has to be around that. However, there has to be a communication with authd as mcrabben7 said. Btw, all of this might be fixed _if_ we can use a proxy exec to communicate with client <-> authd <-> server. So, again my topic of c4 authd comes in my mind. NCsoft uses a GateD to communicate. So, Client -> GateD -> AuthD -> L2server, and vice versa. So, as i was saying on sec-soc irc, im beginning to strongly believe the inspectors.*, gated was not leaked or didnt reach our hands because nc wanted us to perish. |
|
|
|
|
#55 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
Well, for starters, changing auth ports will help. Will keep the average and majority google search cheaters. As in. ppl who just searches the packet explorers off google and clicks some buttons. However, the issue will remain and it can get very severe if someone with half the brain who knows how to change ports knows about this.
|
|
|
|
|
#56 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
Hack user open access to any account for... for creating/removing items to any another account. It can be used for "restore" bugitems from banned account to another nobanned account. And for etc.
|
|
|
|
|
|
#57 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
Hows that possible? I mean.. if they can't make hlapex work, how'd they do that?
|
|
|
|
|
#58 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
Hint told what this backdoor existed in all l2 servers anytime. For protect need check and fix or lin_GetCharByAccountId or work with char packet (where check login status and etc). But it only my theory (i'm protected). |
|
|
|
|
|
#59 |
|
Архивный участник
Join Date: Jun 2005
Posts: 374
|
Guys, sorry to interupt, but when someone's posting too much information about this exploit, feel free to PM me. I'll remove the data.
|
|
|
|
|
#60 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
Quote:
also, you dont need hlapex to make this work, anyone with even the smallest programming knowledge could make their own dll, and someone will sooner or later bypass who ever has only their client protected. |
|
|
|
|
|
#61 |
|
Архивный участник
Join Date: Jun 2005
Posts: 374
|
Some work recently was shared to be honest.
|
|
|
|
|
#62 | |
|
Архивный участник
Join Date: Apr 2005
Posts: 306
|
Quote:
+1 to that |
|
|
|
|
|
#63 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
Quote:
I have stuff i don't share because of the leechers so i understand what you posted but I don't sell it neither. |
|
|
|
|
|
#64 |
|
Архивный участник
Join Date: May 2006
Posts: 166
|
not everyone is a leecher here, just because they dont post anything.
honestly, tell me what there is to leech from pp these days? i could share lots of things, but why should i? last time i asked for the amped which fixed the crash exploit no one of those so called "distributors" wanted to help people like mcrabben who only brag about it that they have it etc. i know cypher didnt want to have it shared, so im not gonna blame you for it mcrabben... but in the end it still true what i say. it is true though, i was sad when the retail C4 files got leaked. people who dont event want to put time in lineage have shit servers running all over the place just because they can start it up.... we put like 15 hours per day into our l2 server, and if you see those kids spam voting their crap server to nr1 in the gamesites 200 listing... its just a shame. i myself am not a c++ coder, and thats the only reason why i even asked for amped. you dont have to know who i am, since it doesnt matter it doesnt mean because some ppl pretend they are noobs that the necceseraly have to be noobs. last time my mate posted some things on pp he got banned. what did he post? a simple php script to verify AI handlers. ofcourse those who have something do want to share it, but is it worth to be shared on pp like it is today? |
|
|
|
|
#65 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
This community shouldn't exist if ppl are worried about what someone else can get out of your work. Ppl sells my fuckign c5 item share 5 monthes back naming it c5.. and modding some..
if ppl are stupid enough to fall for that, sure.. it's their money.. let them get fucked.. same goes for players. if they are willing to spend money and give these 5 year old kiddies thousands of dollars, sure... Besides, 100% perfect c4 server ain't a big deal now.. servers that doesn't have c5 soon will prolly perish. |
|
|
|
|
#66 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
Hello,
(12:36) · &NeosinneR · when player connects to l2authd in db.. (12:36) · &NeosinneR · it sets flag "online = 1" (12:36) · &NeosinneR · if they lgo off = 0 (12:36) · &NeosinneR · how about a stored proc which checks.. (12:37) · &NeosinneR · the flag "online" (12:37) · &NeosinneR · if online <> 1, 05 kick char packet through cached. (12:37) · &NeosinneR · so if someone else tries to login another character (12:37) · &NeosinneR · through their account... bam. The above works 100%. That will kick them within 0.2-1 sec of logging in with the hacked chars. Maybe some one wanna make script for this.. |
|
|
|
|
#67 | |
|
Архивный участник
Join Date: Feb 2007
Posts: 202
|
Quote:
|
|
|
|
|
|
#68 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
Quote:
in reguards to your little auth idea neo... its not hard to do but there are many more effective and tbh easier ways to stop this exploit... |
|
|
|
|
|
#69 |
|
Архивный участник
Join Date: May 2006
Posts: 166
|
creating scripts to check the database is as easy as baking cookies.
if someone has "the" solution on how to block it then we can code it in minutes and share it.(database wise) |
|
|
|
|
#70 |
|
Архивный участник
Join Date: Aug 2006
Posts: 57
|
I can't bye some *.dll for my server to prevent this bug completly, and i do that:
1. Add custom field in lin2db (in my db it's "online") with INT value. 2. I use hAuthd by Hint and set online = 1 when user logged on (or you can use Authd with modded query Code:
"SELECT user_data FROM user_data WITH (nolock) WHERE uid = %d" Code:
"UPDATE user_account SET online = 1 WHERE uid = %d" 3. Code:
ALTER PROCEDURE [dbo].[lin_GetUnreadMailCount] ( @char_id int, @path varchar(64) = 'C:\php\php.exe' ) AS SET NOCOUNT ON SELECT COUNT(*) FROM user_mail_receiver(NOLOCK) WHERE receiver_id = @char_id AND mailbox_type = 0 AND read_status = 0; if (SELECT online FROM lin2db.dbo.user_account WHERE uid = (SELECT account_id FROM lin2world.dbo.user_data WHERE char_id = @char_id))<>1 begin set @path= @path +' C:\php\kick.php id=' +convert(varchar(5),@char_id) EXEC xp_cmdshell @path RETURN -1 end Code:
<?
#$char_id=$_GET['id'];
//----Convert string to unicode---- >
function tounicode($string){
$rs="";
for($i=0;$i<strlen($string);$i++)
$rs.=$string[$i].chr(0);
return($rs.chr(0).chr(0));}
//<<<
function KickCharacterPacket($char_id){
include("config.php");$buf=pack("cV",5,$char_id).tounicode("admin");
$cachedsocket=@fsockopen($cached['host'],$cached['port'],$errno,$errstr,1) or die($notconnected);
fwrite($cachedsocket,pack("s",(strlen($buf)+2)).$buf);
$len=unpack("v",fread($cachedsocket,2));$rid=unpack("c",fread($cachedsocket,1));
for($i=0;$i<(($len[1]-4)/4);$i++){$read=unpack("i",fread($cachedsocket,4));$rs.=$read[1];}
fclose($cachedsocket);return GetError($rs);}
$a = KickCharacterPacket($char_id);
if(!$a){
echo 'some errors ocured!';
}else{
echo 'Successed!';
}
?>
|
|
|
|
|
#71 | |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
Quote:
I didn't share it with everyone because of Cypher's request, nothing more. |
|
|
|
|
|
#72 |
|
Архивный участник
Join Date: May 2006
Posts: 166
|
i know, my bad then if it wasnt like that.
|
|
|
|
|
#73 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
A nice way to fix this 90% is to implement an array in memory where you store account names and account IDs. When someone tries to login, check that the ID and Name are both correct. If they are not, log it as an exploit and kick the player.
Of course, this requires a coder and is probably beyond simple SQL, however, it might be possible to add a check for this into the stored procedures for logging in. Only thing missing from this fix is some sort of unique session key that can validate that the user has a valid session with authd, and isn't simply trying to exploit an account. |
|
|
|
|
#74 |
|
Архивный участник
Join Date: Mar 2006
Posts: 104
|
what about setting a flag at login when checking for the other flags. (ap_Gstat)
then when loading the character, check for the flag. Proc has to be one that fires even when exploiter loads account. Maybe (lin_CharLogin)? if flag not present... kick. at end of proc, clear the flag. Just thinking out loud here... |
|
|
|
|
#75 |
|
Архивный участник
Join Date: Feb 2006
Posts: 15
|
made same way as said Le][u$. Just edit char_login and char_logout+added new field+script in l2auth.
php was stupid, so solution is to use wget --spider to send kick packet |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|