final class io.undertow.protocols.ssl.ALPNHackClientHelloExplorer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.undertow.protocols.ssl.ALPNHackClientHelloExplorer
super_class: java.lang.Object
{
public static final int ;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/protocols/ssl/ALPNHackClientHelloExplorer;
static java.util.List<java.lang.String> exploreClientHello(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 1
start local 1 1: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_5
if_icmpge 3
2: new java.nio.BufferUnderflowException
dup
invokespecial java.nio.BufferUnderflowException.<init>:()V
athrow
3: StackMap locals: java.nio.ByteBuffer
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 4: aload 1
invokevirtual java.nio.ByteBuffer.get:()B
istore 3
start local 3 5: aload 1
invokevirtual java.nio.ByteBuffer.get:()B
istore 4
start local 4 6: aload 1
invokevirtual java.nio.ByteBuffer.get:()B
istore 5
start local 5 7: iload 3
sipush 128
iand
ifeq 9
iload 5
iconst_1
if_icmpne 9
8: aconst_null
areturn
9: StackMap locals: java.nio.ByteBuffer java.nio.ByteBuffer java.util.List int int int
StackMap stack:
iload 3
bipush 22
if_icmpne 16
10: iload 4
iconst_3
if_icmpne 15
iload 5
iconst_1
if_icmplt 15
iload 5
iconst_3
if_icmpgt 15
11: aload 1
12: iload 3
iload 4
iload 5
aload 2
aconst_null
13: invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.exploreTLSRecord:(Ljava/nio/ByteBuffer;BBBLjava/util/List;Ljava/io/ByteArrayOutputStream;)V
14: aload 2
areturn
15: StackMap locals:
StackMap stack:
aconst_null
areturn
16: StackMap locals:
StackMap stack:
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.notHandshakeRecord:()Ljavax/net/ssl/SSLHandshakeException;
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 source Ljava/nio/ByteBuffer;
1 17 1 input Ljava/nio/ByteBuffer;
4 17 2 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
5 17 3 firstByte B
6 17 4 secondByte B
7 17 5 thirdByte B
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/nio/ByteBuffer;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
source
static byte[] rewriteClientHello(byte[], java.util.List<java.lang.String>);
descriptor: ([BLjava/util/List;)[B
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 2
start local 2 1: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 3
start local 3 2: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_5
if_icmpge 4
3: new java.nio.BufferUnderflowException
dup
invokespecial java.nio.BufferUnderflowException.<init>:()V
athrow
4: StackMap locals: java.nio.ByteBuffer java.io.ByteArrayOutputStream
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.get:()B
istore 4
start local 4 5: aload 2
invokevirtual java.nio.ByteBuffer.get:()B
istore 5
start local 5 6: aload 2
invokevirtual java.nio.ByteBuffer.get:()B
istore 6
start local 6 7: aload 3
iload 4
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
8: aload 3
iload 5
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
9: aload 3
iload 6
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
10: iload 4
sipush 128
iand
ifeq 12
iload 6
iconst_1
if_icmpne 12
11: aconst_null
areturn
12: StackMap locals: int int int
StackMap stack:
iload 4
bipush 22
if_icmpne 28
13: iload 5
iconst_3
if_icmpne 27
iload 6
iconst_3
if_icmpne 27
14: aload 2
15: iload 4
iload 5
iload 6
aload 1
aload 3
16: invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.exploreTLSRecord:(Ljava/nio/ByteBuffer;BBBLjava/util/List;Ljava/io/ByteArrayOutputStream;)V
17: aload 3
invokevirtual java.io.ByteArrayOutputStream.size:()I
bipush 9
isub
istore 7
start local 7 18: aload 3
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 8
start local 8 19: aload 8
arraylength
iconst_5
isub
istore 9
start local 9 20: aload 8
iconst_3
iload 9
bipush 8
ishr
sipush 255
iand
i2b
bastore
21: aload 8
iconst_4
iload 9
sipush 255
iand
i2b
bastore
22: aload 8
bipush 6
iload 7
bipush 16
ishr
sipush 255
iand
i2b
bastore
23: aload 8
bipush 7
iload 7
bipush 8
ishr
sipush 255
iand
i2b
bastore
24: aload 8
bipush 8
iload 7
sipush 255
iand
i2b
bastore
25: aload 8
26: areturn
end local 9 end local 8 end local 7 27: StackMap locals:
StackMap stack:
aconst_null
areturn
28: StackMap locals:
StackMap stack:
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.notHandshakeRecord:()Ljavax/net/ssl/SSLHandshakeException;
athrow
end local 6 end local 5 end local 4 29: StackMap locals: byte[] java.util.List java.nio.ByteBuffer java.io.ByteArrayOutputStream
StackMap stack: io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException
pop
30: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 source [B
0 31 1 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
1 31 2 input Ljava/nio/ByteBuffer;
2 31 3 out Ljava/io/ByteArrayOutputStream;
5 29 4 firstByte B
6 29 5 secondByte B
7 29 6 thirdByte B
18 27 7 clientHelloLength I
19 27 8 data [B
20 27 9 newLength I
Exception table:
from to target type
4 11 29 Class io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException
12 26 29 Class io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException
28 29 29 Class io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException
Exceptions:
throws javax.net.ssl.SSLException
Signature: ([BLjava/util/List<Ljava/lang/String;>;)[B
MethodParameters:
Name Flags
source
alpnProtocols
private static void exploreTLSRecord(java.nio.ByteBuffer, byte, byte, byte, java.util.List<java.lang.String>, java.io.ByteArrayOutputStream);
descriptor: (Ljava/nio/ByteBuffer;BBBLjava/util/List;Ljava/io/ByteArrayOutputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iload 1
bipush 22
if_icmpeq 2
1: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.notHandshakeRecord:()Ljavax/net/ssl/SSLHandshakeException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt16:(Ljava/nio/ByteBuffer;)I
istore 6
start local 6 3: iload 6
aload 0
invokevirtual java.nio.ByteBuffer.remaining:()I
if_icmple 5
4: new java.nio.BufferUnderflowException
dup
invokespecial java.nio.BufferUnderflowException.<init>:()V
athrow
5: StackMap locals: int
StackMap stack:
aload 5
ifnull 8
6: aload 5
iconst_0
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
7: aload 5
iconst_0
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
8: StackMap locals:
StackMap stack:
aload 0
9: iload 2
iload 3
iload 6
aload 4
aload 5
10: invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.exploreHandshake:(Ljava/nio/ByteBuffer;BBILjava/util/List;Ljava/io/ByteArrayOutputStream;)V
11: goto 14
StackMap locals:
StackMap stack: java.nio.BufferUnderflowException
12: pop
13: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.invalidHandshakeRecord:()Ljavax/net/ssl/SSLHandshakeException;
athrow
14: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 input Ljava/nio/ByteBuffer;
0 15 1 firstByte B
0 15 2 secondByte B
0 15 3 thirdByte B
0 15 4 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
0 15 5 out Ljava/io/ByteArrayOutputStream;
3 15 6 recordLength I
Exception table:
from to target type
8 11 12 Class java.nio.BufferUnderflowException
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/nio/ByteBuffer;BBBLjava/util/List<Ljava/lang/String;>;Ljava/io/ByteArrayOutputStream;)V
MethodParameters:
Name Flags
input
firstByte
secondByte
thirdByte
alpnProtocols
out
private static void exploreHandshake(java.nio.ByteBuffer, byte, byte, int, java.util.List<java.lang.String>, java.io.ByteArrayOutputStream);
descriptor: (Ljava/nio/ByteBuffer;BBILjava/util/List;Ljava/io/ByteArrayOutputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual java.nio.ByteBuffer.get:()B
istore 6
start local 6 1: iload 6
iconst_1
if_icmpeq 3
2: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.expectedClientHello:()Ljavax/net/ssl/SSLHandshakeException;
athrow
3: StackMap locals: int
StackMap stack:
aload 5
ifnull 5
4: aload 5
iload 6
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
5: StackMap locals:
StackMap stack:
aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt24:(Ljava/nio/ByteBuffer;)I
istore 7
start local 7 6: aload 5
ifnull 10
7: aload 5
iconst_0
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
8: aload 5
iconst_0
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
9: aload 5
iconst_0
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
10: StackMap locals: int
StackMap stack:
iload 7
iload 3
iconst_4
isub
if_icmple 12
11: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.multiRecordSSLHandshake:()Ljavax/net/ssl/SSLHandshakeException;
athrow
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 0
13: aload 0
iload 7
aload 0
invokevirtual java.nio.ByteBuffer.position:()I
iadd
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
14: aload 0
aload 4
aload 5
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.exploreClientHello:(Ljava/nio/ByteBuffer;Ljava/util/List;Ljava/io/ByteArrayOutputStream;)V
15: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 input Ljava/nio/ByteBuffer;
0 16 1 recordMajorVersion B
0 16 2 recordMinorVersion B
0 16 3 recordLength I
0 16 4 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
0 16 5 out Ljava/io/ByteArrayOutputStream;
1 16 6 handshakeType B
6 16 7 handshakeLength I
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/nio/ByteBuffer;BBILjava/util/List<Ljava/lang/String;>;Ljava/io/ByteArrayOutputStream;)V
MethodParameters:
Name Flags
input
recordMajorVersion
recordMinorVersion
recordLength
alpnProtocols
out
private static void exploreClientHello(java.nio.ByteBuffer, java.util.List<java.lang.String>, java.io.ByteArrayOutputStream);
descriptor: (Ljava/nio/ByteBuffer;Ljava/util/List;Ljava/io/ByteArrayOutputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.nio.ByteBuffer.get:()B
istore 3
start local 3 1: aload 0
invokevirtual java.nio.ByteBuffer.get:()B
istore 4
start local 4 2: aload 2
ifnull 5
3: aload 2
iload 3
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
4: aload 2
iload 4
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
5: StackMap locals: int int
StackMap stack:
iload 3
iconst_3
if_icmpeq 7
iload 4
iconst_3
if_icmpeq 7
6: return
7: StackMap locals:
StackMap stack:
iconst_0
istore 5
start local 5 8: goto 13
9: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.nio.ByteBuffer.get:()B
istore 6
start local 6 10: aload 2
ifnull 12
11: aload 2
iload 6
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
end local 6 12: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
13: iload 5
bipush 32
if_icmplt 9
end local 5 14: aload 0
aload 2
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.processByteVector8:(Ljava/nio/ByteBuffer;Ljava/io/ByteArrayOutputStream;)V
15: aload 0
aload 2
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.processByteVector16:(Ljava/nio/ByteBuffer;Ljava/io/ByteArrayOutputStream;)V
16: aload 0
aload 2
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.processByteVector8:(Ljava/nio/ByteBuffer;Ljava/io/ByteArrayOutputStream;)V
17: aload 0
invokevirtual java.nio.ByteBuffer.remaining:()I
ifle 20
18: aload 0
aload 1
aload 2
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.exploreExtensions:(Ljava/nio/ByteBuffer;Ljava/util/List;Ljava/io/ByteArrayOutputStream;)V
19: goto 24
StackMap locals:
StackMap stack:
20: aload 2
ifnull 24
21: aload 1
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.generateAlpnExtension:(Ljava/util/List;)[B
astore 5
start local 5 22: aload 2
aload 5
arraylength
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.writeInt16:(Ljava/io/ByteArrayOutputStream;I)V
23: aload 2
aload 5
iconst_0
aload 5
arraylength
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
end local 5 24: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 input Ljava/nio/ByteBuffer;
0 25 1 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
0 25 2 out Ljava/io/ByteArrayOutputStream;
1 25 3 helloMajorVersion B
2 25 4 helloMinorVersion B
8 14 5 i I
10 12 6 d B
22 24 5 data [B
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/nio/ByteBuffer;Ljava/util/List<Ljava/lang/String;>;Ljava/io/ByteArrayOutputStream;)V
MethodParameters:
Name Flags
input
alpnProtocols
out
private static void writeInt16(java.io.ByteArrayOutputStream, int);
descriptor: (Ljava/io/ByteArrayOutputStream;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
return
1: StackMap locals:
StackMap stack:
aload 0
iload 1
bipush 8
ishr
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
2: aload 0
iload 1
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 out Ljava/io/ByteArrayOutputStream;
0 4 1 l I
MethodParameters:
Name Flags
out
l
private static byte[] generateAlpnExtension(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: aload 1
iconst_0
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
2: aload 1
bipush 16
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
3: iconst_2
istore 2
start local 2 4: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: java.util.List java.io.ByteArrayOutputStream int top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: iinc 2 1
7: iload 2
aload 3
invokevirtual java.lang.String.length:()I
iadd
istore 2
end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
9: aload 1
iload 2
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.writeInt16:(Ljava/io/ByteArrayOutputStream;I)V
10: iinc 2 -2
11: aload 1
iload 2
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.writeInt16:(Ljava/io/ByteArrayOutputStream;I)V
12: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 20
StackMap locals:
StackMap stack:
13: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 14: aload 1
aload 3
invokevirtual java.lang.String.length:()I
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
15: iconst_0
istore 5
start local 5 16: goto 19
17: StackMap locals: java.util.List java.io.ByteArrayOutputStream int java.lang.String java.util.Iterator int
StackMap stack:
aload 1
aload 3
iload 5
invokevirtual java.lang.String.charAt:(I)C
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
18: iinc 5 1
StackMap locals:
StackMap stack:
19: iload 5
aload 3
invokevirtual java.lang.String.length:()I
if_icmplt 17
end local 5 end local 3 20: StackMap locals: java.util.List java.io.ByteArrayOutputStream int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
21: aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
1 22 1 alpnBits Ljava/io/ByteArrayOutputStream;
4 22 2 length I
6 8 3 p Ljava/lang/String;
14 20 3 p Ljava/lang/String;
16 20 5 i I
Signature: (Ljava/util/List<Ljava/lang/String;>;)[B
MethodParameters:
Name Flags
alpnProtocols
private static void exploreExtensions(java.nio.ByteBuffer, java.util.List<java.lang.String>, java.io.ByteArrayOutputStream);
descriptor: (Ljava/nio/ByteBuffer;Ljava/util/List;Ljava/io/ByteArrayOutputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
StackMap locals:
StackMap stack: java.io.ByteArrayOutputStream
2: astore 3
start local 3 3: aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt16:(Ljava/nio/ByteBuffer;)I
istore 4
start local 4 4: aload 3
iconst_0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.writeInt16:(Ljava/io/ByteArrayOutputStream;I)V
5: goto 17
6: StackMap locals: java.io.ByteArrayOutputStream int
StackMap stack:
aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt16:(Ljava/nio/ByteBuffer;)I
istore 5
start local 5 7: aload 3
iload 5
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.writeInt16:(Ljava/io/ByteArrayOutputStream;I)V
8: aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt16:(Ljava/nio/ByteBuffer;)I
istore 6
start local 6 9: aload 3
iload 6
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.writeInt16:(Ljava/io/ByteArrayOutputStream;I)V
10: iload 5
bipush 16
if_icmpne 15
11: aload 2
ifnonnull 14
12: aload 0
aload 1
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.exploreALPNExt:(Ljava/nio/ByteBuffer;Ljava/util/List;)V
13: goto 16
14: StackMap locals: int int
StackMap stack:
new io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException
dup
invokespecial io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException.<init>:()V
athrow
15: StackMap locals:
StackMap stack:
aload 0
iload 6
aload 3
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.processByteVector:(Ljava/nio/ByteBuffer;ILjava/io/ByteArrayOutputStream;)V
16: StackMap locals:
StackMap stack:
iload 4
iload 6
iconst_4
iadd
isub
istore 4
end local 6 end local 5 17: StackMap locals:
StackMap stack:
iload 4
ifgt 6
18: aload 2
ifnull 26
19: aload 1
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.generateAlpnExtension:(Ljava/util/List;)[B
astore 5
start local 5 20: aload 3
aload 5
iconst_0
aload 5
arraylength
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
21: aload 3
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 6
start local 6 22: aload 6
arraylength
iconst_2
isub
istore 7
start local 7 23: aload 6
iconst_0
iload 7
bipush 8
ishr
sipush 255
iand
i2b
bastore
24: aload 6
iconst_1
iload 7
sipush 255
iand
i2b
bastore
25: aload 2
aload 6
iconst_0
aload 6
arraylength
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
end local 7 end local 6 end local 5 26: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 input Ljava/nio/ByteBuffer;
0 27 1 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
0 27 2 out Ljava/io/ByteArrayOutputStream;
3 27 3 extensionOut Ljava/io/ByteArrayOutputStream;
4 27 4 length I
7 17 5 extType I
9 17 6 extLen I
20 26 5 alpnBits [B
22 26 6 extensionsData [B
23 26 7 newLength I
Exceptions:
throws javax.net.ssl.SSLException
Signature: (Ljava/nio/ByteBuffer;Ljava/util/List<Ljava/lang/String;>;Ljava/io/ByteArrayOutputStream;)V
MethodParameters:
Name Flags
input
alpnProtocols
out
private static void exploreALPNExt(java.nio.ByteBuffer, java.util.List<java.lang.String>);
descriptor: (Ljava/nio/ByteBuffer;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt16:(Ljava/nio/ByteBuffer;)I
istore 2
start local 2 1: aload 0
invokevirtual java.nio.ByteBuffer.position:()I
iload 2
iadd
istore 3
start local 3 2: goto 4
3: StackMap locals: int int
StackMap stack:
aload 1
aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.readByteVector8:(Ljava/nio/ByteBuffer;)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.nio.ByteBuffer.position:()I
iload 3
if_icmplt 3
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 input Ljava/nio/ByteBuffer;
0 6 1 alpnProtocols Ljava/util/List<Ljava/lang/String;>;
1 6 2 length I
2 6 3 end I
Signature: (Ljava/nio/ByteBuffer;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
input
alpnProtocols
private static int getInt8(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.ByteBuffer.get:()B
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 input Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
input
private static int getInt16(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.ByteBuffer.get:()B
sipush 255
iand
bipush 8
ishl
aload 0
invokevirtual java.nio.ByteBuffer.get:()B
sipush 255
iand
ior
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 input Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
input
private static int getInt24(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.ByteBuffer.get:()B
sipush 255
iand
bipush 16
ishl
aload 0
invokevirtual java.nio.ByteBuffer.get:()B
sipush 255
iand
bipush 8
ishl
ior
1: aload 0
invokevirtual java.nio.ByteBuffer.get:()B
sipush 255
iand
2: ior
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 input Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
input
private static void processByteVector8(java.nio.ByteBuffer, java.io.ByteArrayOutputStream);
descriptor: (Ljava/nio/ByteBuffer;Ljava/io/ByteArrayOutputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt8:(Ljava/nio/ByteBuffer;)I
istore 2
start local 2 1: aload 1
ifnull 3
2: aload 1
iload 2
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
3: StackMap locals: int
StackMap stack:
aload 0
iload 2
aload 1
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.processByteVector:(Ljava/nio/ByteBuffer;ILjava/io/ByteArrayOutputStream;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 input Ljava/nio/ByteBuffer;
0 5 1 out Ljava/io/ByteArrayOutputStream;
1 5 2 int8 I
MethodParameters:
Name Flags
input
out
private static void processByteVector(java.nio.ByteBuffer, int, java.io.ByteArrayOutputStream);
descriptor: (Ljava/nio/ByteBuffer;ILjava/io/ByteArrayOutputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.nio.ByteBuffer.get:()B
istore 4
start local 4 3: aload 2
ifnull 5
4: aload 2
iload 4
sipush 255
iand
invokevirtual java.io.ByteArrayOutputStream.write:(I)V
end local 4 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 1
if_icmplt 2
end local 3 7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 input Ljava/nio/ByteBuffer;
0 8 1 length I
0 8 2 out Ljava/io/ByteArrayOutputStream;
1 7 3 i I
3 5 4 b B
MethodParameters:
Name Flags
input
length
out
private static java.lang.String readByteVector8(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt8:(Ljava/nio/ByteBuffer;)I
istore 1
start local 1 1: iload 1
newarray 8
astore 2
start local 2 2: aload 0
aload 2
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
3: new java.lang.String
dup
aload 2
getstatic java.nio.charset.StandardCharsets.US_ASCII:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 input Ljava/nio/ByteBuffer;
1 4 1 length I
2 4 2 data [B
MethodParameters:
Name Flags
input
private static void processByteVector16(java.nio.ByteBuffer, java.io.ByteArrayOutputStream);
descriptor: (Ljava/nio/ByteBuffer;Ljava/io/ByteArrayOutputStream;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.getInt16:(Ljava/nio/ByteBuffer;)I
istore 2
start local 2 1: aload 1
iload 2
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.writeInt16:(Ljava/io/ByteArrayOutputStream;I)V
2: aload 0
iload 2
aload 1
invokestatic io.undertow.protocols.ssl.ALPNHackClientHelloExplorer.processByteVector:(Ljava/nio/ByteBuffer;ILjava/io/ByteArrayOutputStream;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 input Ljava/nio/ByteBuffer;
0 4 1 out Ljava/io/ByteArrayOutputStream;
1 4 2 int16 I
MethodParameters:
Name Flags
input
out
}
SourceFile: "ALPNHackClientHelloExplorer.java"
NestMembers:
io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException
InnerClasses:
private final ALPNPresentException = io.undertow.protocols.ssl.ALPNHackClientHelloExplorer$ALPNPresentException of io.undertow.protocols.ssl.ALPNHackClientHelloExplorer