Wulf Pfeiffer 10 years ago
parent
commit
933eecbf83
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/de/tudarmstadt/informatik/hostage/protocol/SSH.java

+ 3 - 2
src/de/tudarmstadt/informatik/hostage/protocol/SSH.java

@@ -457,10 +457,11 @@ public class SSH implements Protocol {
 				request[3 + position] });
 		int paddingLength = byteToInt(new byte[] { request[4 + position] });
 		byte[] payload = new byte[packetLength - paddingLength - 1];
-		for (int i = 5; i < packetLength - paddingLength - 1; i++) {
-			payload[i - 5] = request[i + position];
+		for (int i = 6; i < packetLength - paddingLength - 1; i++) {
+			payload[i - 6] = request[i + position];
 		}
 		I_C = payload;
+		System.out.println(HelperUtils.bytesToHexString(I_C));
 	}
 
 	/**