TLS-Attacker icon indicating copy to clipboard operation
TLS-Attacker copied to clipboard

How to construct a TLS Record with empty content?

Open lh0xf opened this issue 1 year ago • 2 comments

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.

lh0xf avatar May 16 '23 09:05 lh0xf

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.

ic0ns avatar May 16 '23 10:05 ic0ns

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>

lh0xf avatar May 16 '23 11:05 lh0xf