Page 1 of 1

LS Error

Posted: Fri Dec 31, 2010 10:10 am
by Starter
L2J Revision Number: 4457
L2JDP Revision Number: 7720

Hello guys,

I got this error lateley in the ls log:

Code: Select all

javax.crypto.BadPaddingException: Message is larger than modulus        at sun.security.rsa.RSACore.parseMsg(Unknown Source)        at sun.security.rsa.RSACore.crtCrypt(Unknown Source)        at sun.security.rsa.RSACore.rsa(Unknown Source)        at com.sun.crypto.provider.RSACipher.a(DashoA13*..)        at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)        at javax.crypto.Cipher.doFinal(DashoA13*..)        at com.l2jserver.loginserver.clientpackets.RequestAuthLogin.run(RequestAuthLogin.java:98)        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)
Any idea?

Re: LS Error

Posted: Fri Dec 31, 2010 10:22 am
by JIV
you have it modified or your rev doesn't match.

Re: LS Error

Posted: Fri Dec 31, 2010 12:28 pm
by Starter
JIV wrote:you have it modified or your rev doesn't match.
Yes, modified (applied the anti-oog thingy).^^

Here the diff:

Code: Select all

Index: java/com/l2jserver/loginserver/clientpackets/RequestAuthLogin.java===================================================================--- java/com/l2jserver/loginserver/clientpackets/RequestAuthLogin.java  (revision 4459)+++ java/com/l2jserver/loginserver/clientpackets/RequestAuthLogin.java  (working copy)@@ -22,17 +22,18 @@ import javax.crypto.Cipher;  import com.l2jserver.Config;-import com.l2jserver.loginserver.GameServerTable.GameServerInfo; import com.l2jserver.loginserver.HackingException; import com.l2jserver.loginserver.L2LoginClient;+import com.l2jserver.loginserver.LoginController;+import com.l2jserver.loginserver.GameServerTable.GameServerInfo; import com.l2jserver.loginserver.L2LoginClient.LoginClientState;-import com.l2jserver.loginserver.LoginController; import com.l2jserver.loginserver.LoginController.AuthLoginResult; import com.l2jserver.loginserver.serverpackets.AccountKicked;+import com.l2jserver.loginserver.serverpackets.LoginFail;+import com.l2jserver.loginserver.serverpackets.LoginOk;+import com.l2jserver.loginserver.serverpackets.ServerList; import com.l2jserver.loginserver.serverpackets.AccountKicked.AccountKickedReason; import com.l2jserver.loginserver.serverpackets.LoginFail.LoginFailReason;-import com.l2jserver.loginserver.serverpackets.LoginOk;-import com.l2jserver.loginserver.serverpackets.ServerList;   /**@@ -44,7 +45,7 @@ {    private static Logger _log = Logger.getLogger(RequestAuthLogin.class.getName());    -   private byte[] _raw = new byte[128];+   private final byte[] _raw = new byte[128];        private String _user;    private String _password;@@ -121,9 +122,11 @@                    client.setAccount(_user);                    client.setState(LoginClientState.AUTHED_LOGIN);                    client.setSessionKey(lc.assignSessionKeyToClient(_user, client));-                   if (Config.SHOW_LICENCE)+                   if (Config.SECURITY_CARD_LOGIN)+                       client.sendPacket(new LoginFail(LoginFailReason.REASON_INVALID_SECURITY_CARD_NO));+                   else if (Config.SHOW_LICENCE)                    {-                       client.sendPacket(new LoginOk(getClient().getSessionKey()));+                       client.sendPacket(new LoginOk(client.getSessionKey()));                    }                    else                    {@@ -164,7 +167,7 @@        }        catch (HackingException e)        {-           InetAddress address = getClient().getConnection().getInetAddress();+           InetAddress address = client.getConnection().getInetAddress();            lc.addBanForAddress(address, Config.LOGIN_BLOCK_AFTER_BAN*1000);            _log.info("Banned ("+address+") for "+Config.LOGIN_BLOCK_AFTER_BAN+" seconds, due to "+e.getConnects()+" incorrect login attempts.");        }