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.
I open the l2j server and see
1. XOR->NewCrypt.encXORPass(raw, offset, size, Rnd.nextInt()); ---> XOR can also be taken from l2j
2. _staticCrypt.crypt(raw, offset, size);
----->
I scroll down the code and see this code
----->
===================================================
I'm transferring this code to C#
And in c# I first do decryptBlock and then XOR and everything works, I get the package
and the first 2 bytes have already been removed as far as I remember
This only works for the login server.
The blowfish encryption key is used static, it can be found in the l2j server
Question
Kostantinos
WARNING: Exception on logout(): null
java.lang.NullPointerException
at L2j.Infinity.gameserver.network.MultiBoxProtection$IpPack.hashCode(MultiBoxProtection.java:99)
at javolution.util.FastMap.getEntry(FastMap.java:418)
at javolution.util.FastMap.get(FastMap.java:406)
at L2j.Infinity.gameserver.network.MultiBoxProtection.removeConnection(MultiBoxProtection.java:65)
at L2j.Infinity.gameserver.model.actor.instance.L2PcInstance.deleteMe(L2PcInstance.java:12643)
at L2j.Infinity.gameserver.model.actor.instance.L2PcInstance.logout(L2PcInstance.java:1522)
at L2j.Infinity.gameserver.model.actor.instance.L2PcInstance.logout(L2PcInstance.java:1508)
at L2j.Infinity.gameserver.network.L2GameClient$CleanupTask.run(L2GameClient.java:724)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
oloi oi paixtes kolane kai ama fane dc den boroun na ksana boun. ti ftaiei ti einai auto.
5 answers to this question
Recommended Posts
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.