mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-31 12:52:36 +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();
|
List<byte[]> results = client.getRC4possibilities();
|
||||||
|
outerloop:
|
||||||
for (byte[] possible : results) {
|
for (byte[] possible : results) {
|
||||||
|
|
||||||
byte[] encBuffer = new byte[outgoingHandler.getEncryptedBuffer().size()];
|
byte[] encBuffer = new byte[outgoingHandler.getEncryptedBuffer().size()];
|
||||||
@ -53,7 +54,6 @@ public class Rc4Obtainer {
|
|||||||
encBuffer[i] = outgoingHandler.getEncryptedBuffer().get(i);
|
encBuffer[i] = outgoingHandler.getEncryptedBuffer().get(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
outerloop:
|
|
||||||
for (int i = 0; i < 256; i++) {
|
for (int i = 0; i < 256; i++) {
|
||||||
// System.out.println(i);
|
// System.out.println(i);
|
||||||
for (int j = 0; j < 256; j++) {
|
for (int j = 0; j < 256; j++) {
|
||||||
|
@ -27,14 +27,13 @@ public class OutgoingHandler extends Handler {
|
|||||||
private void dataStreamCheck(byte[] buffer) {
|
private void dataStreamCheck(byte[] buffer) {
|
||||||
if (!isDataStream) {
|
if (!isDataStream) {
|
||||||
HPacket hpacket = new HPacket(buffer);
|
HPacket hpacket = new HPacket(buffer);
|
||||||
isDataStream = (hpacket.getBytesLength() > 6 && hpacket.headerId() == 4000);
|
isDataStream = (hpacket.getBytesLength() > 6 && hpacket.length() < 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void act(byte[] buffer) throws IOException {
|
public void act(byte[] buffer) throws IOException {
|
||||||
dataStreamCheck(buffer);
|
dataStreamCheck(buffer);
|
||||||
|
|
||||||
if (isDataStream) {
|
if (isDataStream) {
|
||||||
|
|
||||||
if (currentIndex < encryptOffset) {
|
if (currentIndex < encryptOffset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user