Jump to content
  • 0

Protection apo Phx


trousaki

Question

Recommended Posts

  • 0

me tin kamia, to phx litourgei se para polla server(kirios interlude logo oti ekei einai oloi oi newbie oi opoioi den exoun asxoli8ei me java kai ka8onte me pre pack). ase pou polla pack pou lene oti exoun einai apla foumara. to phx einai easy na to apokliseis apo ena server. alla akoma kai gia kapoios oi opoioi asxolounte prepei na gami8oun sta post edw gia na paroun ton kodika apo hidden post(pou na paei o nous tous gia to forum tis l2j)

Link to comment
Share on other sites

  • 0

den ginete ayta p lete re akoma kai sta prec evalan protection apo phx ksoflise telos phx bye bye..bbbbb

oxaoxaoxoa ti akouw  re file. sto 80% ton interlude servers pianei phx kai polous se autous pianei kai gia safe enchant.
Link to comment
Share on other sites

  • 0

Index: /trunk/L2JVentic-Game/java/net/sf/l2j/gameserver/network/L2GamePacketHandler.java
===================================================================
--- /trunk/L2JVentic-Game/java/net/sf/l2j/gameserver/network/L2GamePacketHandler.java (revision 2)
+++ /trunk/L2JVentic-Game/java/net/sf/l2j/gameserver/network/L2GamePacketHandler.java (revision 6)
@@ -23,12 +23,10 @@

import net.sf.l2j.Config;
+import net.sf.l2j.gameserver.GmListTable;
+import net.sf.l2j.gameserver.LoginServerThread;
import net.sf.l2j.gameserver.ThreadPoolManager;
-import net.sf.l2j.gameserver.LoginServerThread;
-import net.sf.l2j.gameserver.GmListTable;
-import java.util.concurrent.locks.*;
import net.sf.l2j.gameserver.clientpackets.*;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.L2GameClient.GameClientState;
-import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
-import net.sf.l2j.gameserver.Actionlock;
import net.sf.l2j.util.Util;

@@ -76,5 +74,5 @@
				else
				{
-					printDebug(opcode, buf, state, client);
+					client.closeNow();
				}
				break;
@@ -104,5 +102,7 @@
						break;
					default:
-						printDebug(opcode, buf, state, client);
+						System.out.println("The following IP adress is using some hacking tool.Please Ban Him!(Case 1 Authenticated!) ("+ client.toString() +")");  
+					 	System.out.println("Unknown Packet: "+Integer.toHexString(opcode)+" on State: "+state.name()+" Client: "+client.toString()); 
+					 	client.closeNow();
						break;
				}
@@ -659,4 +659,5 @@
		            		if (Config.PACKET_HANDLER_DEBUG)
		            		_log.warning("Client: "+client.toString()+" sent a 0xd0 without the second opcode.");
+		            		client.closeNow();
		            		break;
		            	}
@@ -805,5 +806,7 @@
		                    	break;
		                    default:
-		                     	printDebugDoubleOpcode(opcode, id2, buf, state, client);
+		                    	System.out.println("The following IP adress is using some hacking tool.Please Ban Him!(Case 2 InGame) ("+ client.toString() +")");  
+		                     	System.out.println("Unknown Packet: "+Integer.toHexString(opcode)+" on State: "+state.name()+" Client: "+client.toString()); 
+		                     	client.closeNow();
		                    	break;
		                }
@@ -813,5 +816,7 @@
						break;*/
					default:
-						printDebug(opcode, buf, state, client);
+						System.out.println("The following IP adress is using some hacking tool.Please Ban Him!(Case 3 Unknow) ("+ client.toString() +")");  
+					 	System.out.println("Unknown Packet: "+Integer.toHexString(opcode)+" on State: "+state.name()+" Client: "+client.toString()); 
+					 	client.closeNow();
						break;
				}

 

try auto :)

Link to comment
Share on other sites

  • 0

Index: /trunk/L2JVentic-Game/java/net/sf/l2j/gameserver/network/L2GamePacketHandler.java
===================================================================
--- /trunk/L2JVentic-Game/java/net/sf/l2j/gameserver/network/L2GamePacketHandler.java (revision 2)
+++ /trunk/L2JVentic-Game/java/net/sf/l2j/gameserver/network/L2GamePacketHandler.java (revision 6)
@@ -23,12 +23,10 @@

import net.sf.l2j.Config;
+import net.sf.l2j.gameserver.GmListTable;
+import net.sf.l2j.gameserver.LoginServerThread;
import net.sf.l2j.gameserver.ThreadPoolManager;
-import net.sf.l2j.gameserver.LoginServerThread;
-import net.sf.l2j.gameserver.GmListTable;
-import java.util.concurrent.locks.*;
import net.sf.l2j.gameserver.clientpackets.*;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.L2GameClient.GameClientState;
-import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
-import net.sf.l2j.gameserver.Actionlock;
import net.sf.l2j.util.Util;

@@ -76,5 +74,5 @@
				else
				{
-					printDebug(opcode, buf, state, client);
+					client.closeNow();
				}
				break;
@@ -104,5 +102,7 @@
						break;
					default:
-						printDebug(opcode, buf, state, client);
+						System.out.println("The following IP adress is using some hacking tool.Please Ban Him!(Case 1 Authenticated!) ("+ client.toString() +")");  
+					 	System.out.println("Unknown Packet: "+Integer.toHexString(opcode)+" on State: "+state.name()+" Client: "+client.toString()); 
+					 	client.closeNow();
						break;
				}
@@ -659,4 +659,5 @@
		            		if (Config.PACKET_HANDLER_DEBUG)
		            		_log.warning("Client: "+client.toString()+" sent a 0xd0 without the second opcode.");
+		            		client.closeNow();
		            		break;
		            	}
@@ -805,5 +806,7 @@
		                    	break;
		                    default:
-		                     	printDebugDoubleOpcode(opcode, id2, buf, state, client);
+		                    	System.out.println("The following IP adress is using some hacking tool.Please Ban Him!(Case 2 InGame) ("+ client.toString() +")");  
+		                     	System.out.println("Unknown Packet: "+Integer.toHexString(opcode)+" on State: "+state.name()+" Client: "+client.toString()); 
+		                     	client.closeNow();
		                    	break;
		                }
@@ -813,5 +816,7 @@
						break;*/
					default:
-						printDebug(opcode, buf, state, client);
+						System.out.println("The following IP adress is using some hacking tool.Please Ban Him!(Case 3 Unknow) ("+ client.toString() +")");  
+					 	System.out.println("Unknown Packet: "+Integer.toHexString(opcode)+" on State: "+state.name()+" Client: "+client.toString()); 
+					 	client.closeNow();
						break;
				}

 

try auto :)

Useless sents only a warning...

Link to comment
Share on other sites

  • 0

client.closeNow();

 

and close client too

can be bypassed this protection sucks! and is from l2jiplay pack

 

If it is a false alarm? you just close the client if he sends uknown packet.. so can be bypassed

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
Answer this question...

×   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.



×
×
  • Create New...