Jump to content

[Share]Fix for steal anything exploit.


Recommended Posts

Source-> http://maxcheaters.com/forum/index.php?topic=205271.0 So..this exploit can be done only when a player trades a party member.So,we wanna to dissalow players to trade when they are in a party mode.

It is so simple all can do this, but anyway i will just share it for really really newbies.

 

net.sf.l2j.clientpackets.TradeRequest.java

sm.addString(partner.getName());
		player.sendPacket(sm);
           return;
	}
+
+		if (player.isInParty() || partner.isInParty())
+		{
+			player.sendMessage("Cannot trade in party mode for security reasons");
+			partner.sendMessage("Cannot trade in party mode for security reasons");
+			return;
+		}
if (partner.getTradeRefusal())
       {

 

net.sf.l2j.clientpackets.RequestJoinParty.java

requestor.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
		return;
	}
+if (target.getActiveTradeList() != null || requestor.getActiveTradeList() != null)
+	        {
+	        	requestor.sendMessage("Cannot party when having active trade");
+	        	requestor.sendMessage("Cannot party when having active trade");
+	        	return;
+	        }
if (target.isInJail() || requestor.isInJail())
        {

 

it should work.

 

PS:the good is to fix this exploit without disallow this abillity,but till now noone has shared the "good fix",i know it may sucks but servers with new developers that are in danger from this exploit?

 

Link to comment
Share on other sites

This fix (disabling trade while in party) is retarded.

yes i know, this is  not good.the good is to fix this bug without disallow this.But actually for servers that are in danger from this bug(see superpower server) is good for begin.
Link to comment
Share on other sites

yes i know, this is  not good.the good is to fix this bug without disallow this.But actually for servers that are in danger from this bug(see superpower server) is good for begin.

Υοu can still trade him,then ask him for party,so you can still do this bug
Link to comment
Share on other sites

Should i release the "right" fix, or let the exploit run some more days :) ?

yes i know this "fix" really sucks. so dont let the days to run :P just share it :)) ( i know many servers are in danger from this).Even

l2vitality, l2core, l2flector

Link to comment
Share on other sites

Should i release the "right" fix, or let the exploit run some more days :) ?

Ιt's maxcheaters, don't do it faidon ,don't ruin the only good exploit working :(
Link to comment
Share on other sites

okz :) PS i didnt test it , but from the code i saw ( l2jbrazil ) it seems it does not need any party or trade to work. Im not that sure, but my intuition says that :) So the previous code is really doing nothing.

Link to comment
Share on other sites

okz :) PS i didnt test it , but from the code i saw ( l2jbrazil ) it seems it does not need any party or trade to work. Im not that sure, but my intuition says that :) So the previous code is really doing nothing.

i tried the code with party and without party, with party ofc work but without party it did not work in all the servers :S
Link to comment
Share on other sites

i tried the code with party and without party, with party ofc work but without party it did not work in all the servers :S

 

But it work in some without party ? If so, that means some servers tried to fix it the way you did. Should be cool if we can get to know what l2j version they are using to check their code. So far l2jbrazil seems totally vulnerable, latest revision.

 

Link to comment
Share on other sites

But it work in some without party ? If so, that means some servers tried to fix it the way you did. Should be cool if we can get to know what l2j version they are using to check their code. So far l2jbrazil seems totally vulnerable, latest revision.

 

Actually l2jbrazil always sucked,your signature means L2J Brasil , you have right.They always use actions failed,that i did too but at least i dont know java,they have "serious" project and java developers(that's i think)
Link to comment
Share on other sites

Anyway if someone wants it private-fixed, since im interested into trying it and finding possibilities to expland the exploit give me a pm but be sure to have in your teamviewer pc :

 

1)Ready running interlude server.

2)Eclipse with source code of your pack.

3)The exploit working. (Not necessary i can do that too ).

4)A phx working.

 

Dont bother pming me if you dont have the following, cause im too lazy to set them up for you and for me ( i dont have il in my pc for obvious reasons ). :)

Link to comment
Share on other sites

Anyway if someone wants it private-fixed, since im interested into trying it and finding possibilities to expland the exploit give me a pm but be sure to have in your teamviewer pc :

 

1)Ready running interlude server.

2)Eclipse with source code of your pack.

3)The exploit working. (Not necessary i can do that too ).

4)A phx working.

 

Dont bother pming me if you dont have the following, cause im too lazy to set them up for you and for me ( i dont have il in my pc for obvious reasons ). :)

check your Pms
Link to comment
Share on other sites

Code_ex the "RequestAnswerJoinParty.java" is not the best file for fix that

 

that make a target bug exploit (player cannot target the requestor without restart)

 

so this is the right fix:

 

Index: java/net/sf/l2j/gameserver/clientpackets/RequestJoinParty.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/RequestJoinParty.java	(revision 4430)
+++ java/net/sf/l2j/gameserver/clientpackets/RequestJoinParty.java	(working copy)
@@ -69,6 +69,18 @@
             return;
         }

        if (requestor.getFactionId() != target.getFactionId())
        {
        requestor.sendMessage("You cannot invite players from another faction.");
        return;
        }
       
+        if (target.getActiveTradeList() != null || requestor.getActiveTradeList() != null)
+		{
+			requestor.sendMessage("You can't invite players with active trade");
+			return;
+		}
+		
		if (target.isInParty())
         {
			SystemMessage msg = new SystemMessage(SystemMessageId.S1_IS_ALREADY_IN_PARTY);

 

I tested and work!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • I can use this folder system for High Five offline server?   The folder does not have a l2.exe file.   Thank you very much if anyone can help me.   https://drive.google.com/file/d/13kU-g_4JJ-sP-kg2F7pqkUOVKmQdubFm/view
    • I know, but...every time I have problem with IP address setup 😞
    • ENGLISH As you know, we have always profiled in the development of Java emulators, we continue to do our favorite thing, and now we have the opportunity to provide you with services in the field of private development of L2 assemblies Essence, Classic and High Five, which we have been doing in recent years, we have not been working on basic builds for a long time and work only on contracts for the world's best projects. These are the best builds we can offer, we have test servers and we can show them to you on the test, and if you are very good at gameplay, you will see a big difference in the quality and detail of the official content compared to the basic builds. These are the best top solutions in the world, which are currently used to implement the largest projects in the world. We guarantee 100% implementation of all official content. If you have any questions about testing, discussions, etc., please contact our studio and we will discuss everything. At the moment, you can get acquainted with the preliminary information and prices for Private L2 contracts here: Private Server packs L2 Essence 464, 447, 388, 362, 286 protocols Private server packs L2Classic Private server pack High Five РУССКИЙ --------------------------------------------- Как вы знаете мы всегда профилировались на разработке в сфере Java эмуляторов, мы продолжаем заниматься своим любимым делом, и сейчас у нас появилась возможность предоставлять вам услуги в сфере приватных разработок L2 сборок Essence, Classic и High Five, которыми мы занимаемся последние годы, мы уже давно не работаем над базовыми сборками и работаем только на контрактах для лучших мировых проектов. Это лучшие сборки, которые мы можем предложить, у нас есть тестовые сервера, и мы можем показать их вам на тесте, и если вы очень хорошо разбираетесь в игровом процессе, вы увидите большую разницу в качестве и детализации официального контента по сравнению с базовыми сборками. Это лучшие топовые решения в мире, которые на данный момент используются для реализации крупнейших проектов в мире. Мы даем гарантии - 100% реализации всего официального контента. По вопросам тестирования, обсуждений и тд - пишите по контактам нашей студии и мы все обсудим. На данный момент вы можете ознакомиться с предварительной информацией и ценами на Приватные контракты L2 тут: Приватные Сборки L2 Essence 464, 447, 388, 362, 286 protocols Приватные Сборки L2Classic Приватная Сборка High Five -------------------------------------------------------------- Contacts: Telegram: https://t.me/L2scripts Whatsapp, Viber: +1 (916) 226 1910 С уважением, Администрация !
    • I can sell it. If you are interested just pm.
  • Topics

×
×
  • Create New...