Thread: Hack L2AuthD
View Single Post
Old 11.04.2007, 19:46   #2
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Quote:
Originally Posted by Le][u$ View Post
3.
Code:
ALTER PROCEDURE [dbo].[lin_GetUnreadMailCount]

....

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
else
	UPDATE user_account SET online = 0 WHERE uid =  (SELECT account_id FROM lin2world.dbo.user_data WHERE char_id = @char_id)
Turning the flag off after being checked increases the security.
khelben is offline