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
Bill@kos
Gia sas paidia .. :) Eimai new sto maxcheaters kai 8a h8ela lig0 help me
to "startLoginServer" Molis to anigw mou vgazei auta.. Starting L2J Login Server.
loading login config
MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireInc
rement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500, autoCommitOnCl
ose -> true, automaticTestTable -> connection_test_table, breakAfterAcquireFailu
re -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connec
tionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSou
rceName -> 1hge2v58h1x9446w1izio19|39bf12, debugUnreturnedConnectionStackTraces
-> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClas
sLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken ->
1hge2v58h1x9446w1izio19|39bf12, idleConnectionTestPeriod -> 3600, initialPoolSiz
e -> 10, jdbcUrl -> jdbc:mysql://localhost/l2jdb, maxAdministrativeTaskTime -> 0
, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, ma
xPoolSize -> 10, maxStatements -> 0, maxStatementsPerConnection -> 100, minPoolS
ize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, pr
eferredTestQuery -> null, properties -> {user=******, password=******}, property
Cycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false,
unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
Loading LoginContoller...
Cached 10 KeyPairs for RSA communication
Exception in thread "main" java.lang.NullPointerException
at net.sf.l2j.util.MTRandom.next(MTRandom.java:349)
at java.util.Random.nextDouble(Unknown Source)
at net.sf.l2j.util.Rnd.nextInt(Rnd.java:53)
at net.sf.l2j.loginserver.LoginController.generateBlowFishKeys(LoginCont
roller.java:143)
at net.sf.l2j.loginserver.LoginController.<init>(LoginController.java:11
9)
at net.sf.l2j.loginserver.LoginController.load(LoginController.java:82)
at net.sf.l2j.loginserver.L2LoginServer.<init>(L2LoginServer.java:126)
at net.sf.l2j.loginserver.L2LoginServer.main(L2LoginServer.java:58)
Server terminated abnormaly
server terminated
Πιέστε ένα πλήκτρο για συνέχεια. . .
30 answers to this question
Recommended Posts