project: rev 200
This commit is contained in:
@@ -1,33 +1,30 @@
|
||||
import java.applet.Applet;
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
import java.net.URL;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import netscape.javascript.JSObject;
|
||||
|
||||
@ObfuscatedName("mr")
|
||||
@ObfuscatedName("mn")
|
||||
@Implements("BufferedNetSocket")
|
||||
public class BufferedNetSocket extends AbstractSocket {
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("l")
|
||||
@Export("socket")
|
||||
Socket socket;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmw;"
|
||||
descriptor = "Lmf;"
|
||||
)
|
||||
@Export("source")
|
||||
BufferedSource source;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmj;"
|
||||
descriptor = "Lmz;"
|
||||
)
|
||||
@Export("sink")
|
||||
BufferedSink sink;
|
||||
|
||||
BufferedNetSocket(Socket var1, int var2, int var3) throws IOException {
|
||||
public BufferedNetSocket(Socket var1, int var2, int var3) throws IOException {
|
||||
this.socket = var1;
|
||||
this.socket.setSoTimeout(30000);
|
||||
this.socket.setTcpNoDelay(true);
|
||||
@@ -37,10 +34,10 @@ public class BufferedNetSocket extends AbstractSocket {
|
||||
this.sink = new BufferedSink(this.socket.getOutputStream(), var3);
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(S)V",
|
||||
garbageValue = "4535"
|
||||
descriptor = "(B)V",
|
||||
garbageValue = "82"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() {
|
||||
@@ -54,50 +51,50 @@ public class BufferedNetSocket extends AbstractSocket {
|
||||
this.source.close();
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "61"
|
||||
descriptor = "(I)I",
|
||||
garbageValue = "1780579727"
|
||||
)
|
||||
@Export("readUnsignedByte")
|
||||
public int readUnsignedByte() throws IOException {
|
||||
return this.source.readUnsignedByte();
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)I",
|
||||
garbageValue = "-1430321597"
|
||||
garbageValue = "-973037380"
|
||||
)
|
||||
@Export("available")
|
||||
public int available() throws IOException {
|
||||
return this.source.available();
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)Z",
|
||||
garbageValue = "823949627"
|
||||
garbageValue = "1444896063"
|
||||
)
|
||||
@Export("isAvailable")
|
||||
public boolean isAvailable(int var1) throws IOException {
|
||||
return this.source.isAvailable(var1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIII)I",
|
||||
garbageValue = "593938417"
|
||||
descriptor = "([BIIB)I",
|
||||
garbageValue = "-95"
|
||||
)
|
||||
@Export("read")
|
||||
public int read(byte[] var1, int var2, int var3) throws IOException {
|
||||
return this.source.read(var1, var2, var3);
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIIB)V",
|
||||
garbageValue = "-4"
|
||||
descriptor = "([BIII)V",
|
||||
garbageValue = "34744814"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -108,63 +105,37 @@ public class BufferedNetSocket extends AbstractSocket {
|
||||
this.close();
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("ix")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ljava/lang/String;ILjava/lang/String;I)Z",
|
||||
garbageValue = "106915676"
|
||||
descriptor = "(Ljt;I)Z",
|
||||
garbageValue = "217783620"
|
||||
)
|
||||
static boolean method6116(String var0, int var1, String var2) {
|
||||
if (var1 == 0) {
|
||||
try {
|
||||
if (!class29.field172.startsWith("win")) {
|
||||
throw new Exception();
|
||||
} else if (!var0.startsWith("http://") && !var0.startsWith("https://")) {
|
||||
throw new Exception();
|
||||
} else {
|
||||
String var13 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?&=,.%+-_#:/*";
|
||||
|
||||
for (int var4 = 0; var4 < var0.length(); ++var4) {
|
||||
if (var13.indexOf(var0.charAt(var4)) == -1) {
|
||||
throw new Exception();
|
||||
}
|
||||
}
|
||||
|
||||
Runtime.getRuntime().exec("cmd /c start \"j\" \"" + var0 + "\"");
|
||||
return true;
|
||||
}
|
||||
} catch (Throwable var8) {
|
||||
return false;
|
||||
}
|
||||
} else if (var1 == 1) {
|
||||
try {
|
||||
Applet var7 = class29.applet;
|
||||
Object[] var5 = new Object[]{(new URL(class29.applet.getCodeBase(), var0)).toString()};
|
||||
Object var3 = JSObject.getWindow(var7).call(var2, var5);
|
||||
return var3 != null;
|
||||
} catch (Throwable var9) {
|
||||
return false;
|
||||
}
|
||||
} else if (var1 == 2) {
|
||||
try {
|
||||
class29.applet.getAppletContext().showDocument(new URL(class29.applet.getCodeBase(), var0), "_blank");
|
||||
return true;
|
||||
} catch (Exception var10) {
|
||||
return false;
|
||||
}
|
||||
} else if (var1 == 3) {
|
||||
try {
|
||||
class27.method398(class29.applet, "loggedout");
|
||||
} catch (Throwable var12) {
|
||||
}
|
||||
|
||||
try {
|
||||
class29.applet.getAppletContext().showDocument(new URL(class29.applet.getCodeBase(), var0), "_top");
|
||||
return true;
|
||||
} catch (Exception var11) {
|
||||
return false;
|
||||
}
|
||||
@Export("runCs1")
|
||||
static final boolean runCs1(Widget var0) {
|
||||
if (var0.cs1Comparisons == null) {
|
||||
return false;
|
||||
} else {
|
||||
throw new IllegalArgumentException();
|
||||
for (int var1 = 0; var1 < var0.cs1Comparisons.length; ++var1) {
|
||||
int var2 = FriendsChat.method5992(var0, var1);
|
||||
int var3 = var0.cs1ComparisonValues[var1];
|
||||
if (var0.cs1Comparisons[var1] == 2) {
|
||||
if (var2 >= var3) {
|
||||
return false;
|
||||
}
|
||||
} else if (var0.cs1Comparisons[var1] == 3) {
|
||||
if (var2 <= var3) {
|
||||
return false;
|
||||
}
|
||||
} else if (var0.cs1Comparisons[var1] == 4) {
|
||||
if (var2 == var3) {
|
||||
return false;
|
||||
}
|
||||
} else if (var3 != var2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user