mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-18 16:26:26 +01:00
multiple clients fix & weird retro bypass
This commit is contained in:
parent
0efbddfe3d
commit
dbea4608e1
@ -46,6 +46,7 @@ public class Rc4Obtainer {
|
||||
|
||||
|
||||
List<byte[]> results = client.getRC4possibilities();
|
||||
outerloop:
|
||||
for (byte[] possible : results) {
|
||||
|
||||
byte[] encBuffer = new byte[outgoingHandler.getEncryptedBuffer().size()];
|
||||
@ -53,7 +54,6 @@ public class Rc4Obtainer {
|
||||
encBuffer[i] = outgoingHandler.getEncryptedBuffer().get(i);
|
||||
}
|
||||
|
||||
outerloop:
|
||||
for (int i = 0; i < 256; i++) {
|
||||
// System.out.println(i);
|
||||
for (int j = 0; j < 256; j++) {
|
||||
|
@ -27,14 +27,13 @@ public class OutgoingHandler extends Handler {
|
||||
private void dataStreamCheck(byte[] buffer) {
|
||||
if (!isDataStream) {
|
||||
HPacket hpacket = new HPacket(buffer);
|
||||
isDataStream = (hpacket.getBytesLength() > 6 && hpacket.headerId() == 4000);
|
||||
isDataStream = (hpacket.getBytesLength() > 6 && hpacket.length() < 100);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void act(byte[] buffer) throws IOException {
|
||||
dataStreamCheck(buffer);
|
||||
|
||||
if (isDataStream) {
|
||||
|
||||
if (currentIndex < encryptOffset) {
|
||||
|
Loading…
Reference in New Issue
Block a user