PDA

View Full Version : [FIX]OlympiadTeleportCheat


Kation
10.10.2007, 01:56
I didnt see that someone share any fix for this stupid exploit, (u can teleport to olypmiad stadion and kill/heal/buff or do what u want there). Here is simple fix:


int TeleportStatus[1000000];


or


#include <hash_map>

using namespace stdext;

hash_map<int, int> TeleportStatus;


.

.

.


switch ( _pBufferHeader )

{

//BypassToServer

case 0x21:

{

pBuffer = GetAddress(pBuffer,33); //switch to -130 part

TempDword = (DWORD) *pBuffer;

// BypassToServer:menu_select?ask=-130&reply=1

// ask=-130 -> teleport to olympiad stadion reply=X - where x is number of stadion

if(TempDword == 0x0031002D)

{

pBuffer = GetAddress(pBuffer, 4);

if(TempDword = 0x00300033) // -130 = 2D 00 31 00 33 00 30 00

{

TeleportStatus[*pUserSocket]=1; //Set TeleportStatus to 1 - Request watching olympiad

}

}


break;

}

//Appearing - send after teleport when player is spawning

case 0x30:

{

TeleportStatus[*pUserSocket]=2; // if player is spawned somewhere ex. in olympiad stadion set TeleportStatus = 2

break;

}

//ExOlympiadObserveEnd - Request return from olympiad stadion

case 0xD0:

{

TempDword = (DWORD) pBuffer; //jump header to ExPacket

TempDword++;

pBuffer = (DWORD *) TempDword;

TempWord = (WORD) *pBuffer;

if(TempWord == 0x0012) //Player pressed Return Button

{

if(TeleportStatus[*pUserSocket] != 2) //If player wasn't spawned in olympiad stadion and pressed Return button

{

CSocket::Send(pSocket, FormatLogoutOk, 0x7E); //it will instantly close cheater's client

console.report("Illegal Action Detected (OlympiadTeleportCheat) Socket: %d Account: %s", *pUserSocket, pAccountName); //put here something to log this action

};

}

break;

}

}


pUserSocket in this code is the socket which l2server shows (Menu Report->User).

It's one of many ways to fix that, hope it helps someone.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 01:56. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

AG
10.10.2007, 04:43
I am - fulish man -

Talk me How i can use this sourse ?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 04:43. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

zaferk
10.10.2007, 06:27
incoming angry replies in 3...2...1...

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 06:27. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

Drag
10.10.2007, 06:36
Easier way is to remove link from html while being spectator on olimpiad.

So in order to check other match just leave spec. and select again.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 06:36. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

mcrabben7
10.10.2007, 08:04
While it's a useful fix, allocating a 3.96 MB array in memory with absolutely no null checking or bounds checking is asking for a disaster. Plus, static arrays in this case are a very bad idea...

Should create a hash_map of players spectating instead, at least that way, it's safe and doesn't waste memory.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 08:04. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

adriahu
10.10.2007, 08:58
Easier way is to remove link from html while being spectator on olimpiad.

So in order to check other match just leave spec. and select again.


It does not solve problem :P

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 08:58. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

bfgsnake
10.10.2007, 10:33
What I should to do with this sources? Compile into dll and attach to server?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 10:33. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

smeli
10.10.2007, 11:06
>It does not solve problem


every solution breeds new problems (C)???

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 11:06. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

Kation
10.10.2007, 12:38
It's source (u have to add this to your receivepacket function in dll)so u can do with that what u want (edit/optimize/add checks for array/etc).

@mcrabben7

u r right ;) thx for advice, anyway what is ~4MB compared to x/xxGB.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 12:38. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

FidoW
10.10.2007, 14:00
It does not solve problem :P


Indeed, you still can go to olympiad, remove the link from html do noting, but well, some months ago when i didnt have a real fix i made some modifications to the scripts, so, if you go there, you get trapped because you cant return.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 14:00. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

testdude
10.10.2007, 18:59
my fix is pretty much bulletproof... i do a territory check on TeleportToLocation, if its inside any of the olympiad arenas i check if the player is set as hidden (which means hes spectating), if he is... continue... and then i check if he is one of the 2 fighters in the olympiad, if not, i teleport him out... no memory wasting there xP and my territory check seems pretty efficient... i havent had any problems with it... and NOONE has gotten into the olympiad arena unless they are fighting in it ever since i made this fix...

and also, i see atleast 2 ways to get around your fix... i dont think you understand the many ways this exploit can be performed...

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 18:59. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).

Kation
11.10.2007, 00:41
So tell me pls the way u get around my fix ;P i'll try to fix that too.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 11 October 2007, 00:41. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).