runelite-proxy: hexdump packets
This commit is contained in:
@@ -48,6 +48,11 @@
|
|||||||
<version>1.7.12</version>
|
<version>1.7.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.netty</groupId>
|
||||||
|
<artifactId>netty-all</artifactId>
|
||||||
|
<version>4.1.0.Final</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.guava</groupId>
|
<groupId>com.google.guava</groupId>
|
||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
*/
|
*/
|
||||||
package net.runelite.proxy;
|
package net.runelite.proxy;
|
||||||
|
|
||||||
|
import io.netty.buffer.ByteBufUtil;
|
||||||
|
import io.netty.buffer.Unpooled;
|
||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -81,7 +83,8 @@ public class PacketCopy extends Thread
|
|||||||
read += r;
|
read += r;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("Read packet opcode {} length {}", packetOpcode, packetLength);
|
String hexdump = ByteBufUtil.prettyHexDump(Unpooled.wrappedBuffer(b));
|
||||||
|
logger.info("Read packet opcode {} length {}\n{}", packetOpcode, packetLength, hexdump);
|
||||||
|
|
||||||
// Write out
|
// Write out
|
||||||
ProxyRunner.writeOpcode(outCipher, out, packetOpcode);
|
ProxyRunner.writeOpcode(outCipher, out, packetOpcode);
|
||||||
|
|||||||
Reference in New Issue
Block a user