From cb70dde703d9c4516f58e88f8bc8fddf4b37112c Mon Sep 17 00:00:00 2001
From: Brent Cook <bcook@rapid7.com>
Date: Fri, 8 Sep 2017 02:21:20 +0200
Subject: [PATCH] adjust offset where the useful bits are stored

---
 .../main/java/com/metasploit/meterpreter/Meterpreter.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/Meterpreter.java b/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/Meterpreter.java
index 9f0c6fd0..fd7a8fd4 100644
--- a/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/Meterpreter.java
+++ b/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/Meterpreter.java
@@ -48,9 +48,9 @@ public class Meterpreter {
 
     protected void loadConfiguration(DataInputStream in, OutputStream rawOut, byte[] configuration) throws MalformedURLException {
 
-        // socket handle is 4 bytes, followed by exit func, both of
+        // socket handle is 8 bytes, followed by exit func, both of
         // which we ignore.
-        int csr = 8;
+        int csr = 12;
 
         // We start with the expiry, which is a 32 bit int
         setExpiry(ConfigParser.unpack32(configuration, csr));
@@ -83,7 +83,7 @@ public class Meterpreter {
             }
             this.transports.add(t);
         }
-        
+
         // we don't currently support extensions, so when we reach the end of the
         // list of transports we just bomb out.
     }