TLS-Attacker
TLS-Attacker copied to clipboard
How to construct a TLS Record with empty content?
I want to construct some empty TLS messages (like EmptyClientHello, EmptyChangeCipherSpec) to test if the TLS implementations handles them correctly. Also, I want to achieve this through xml files. Below are my codes.
<workflowTrace>
<Send>
<messages>
</messages>
<records>
<Record>
<contentType>
<ByteExplicitValueModification>
<explicitValue>22</explicitValue>
</ByteExplicitValueModification>
</contentType>
<length>
<IntegerExplicitValueModification>
<explicitValue>0</explicitValue>
</IntegerExplicitValueModification>
</length>
</Record>
</records>
</Send>
</workflowTrace>
Does it work ? Thanks for any help.
On which version of TLS-Attacker are you? We recently had bigger changes around this, I want to make sure that the solution will work for you.
TLS-Attacker 3.7.3
<dependency>
<groupId>de.rub.nds.tlsattacker</groupId>
<artifactId>TLS-Core</artifactId>
<version>3.7.3</version>
<type>jar</type>
</dependency>