tls-attacker / TLS-Attacker

TLS-Attacker is a Java-based framework for analyzing TLS libraries. It can be used to manually test TLS clients and servers or as as a software library for more advanced tools.
Apache License 2.0
789 stars 136 forks source link

What is the modifiable value expression to be used for sending level in "Alert messages" #77

Closed sajualways closed 4 years ago

sajualways commented 4 years ago

I have used below one but it failed to execute

08:02:25 [main] ERROR: TlsClient - Encountered an uncaught Exception aborting. See debug for more info. java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Byte

Is this modifiable value correct for Alert level ? "integerExplicitValueModification"

01
ic0ns commented 4 years ago
    <byteExplicitValueModification>
        <explicitValue>
            01
        </explicitValue>
    </byteExplicitValueModification>
sajualways commented 4 years ago

Now it is working but why is this null value in the log->i have not put any description->by default it is taking Close notify as Description while sending

08:11:26 [main] INFO : SendAction - Sending messages (client): Alert(WARNING,null), 08:11:26 [main] INFO : ReceiveAction - Received Messages (client): Alert(WARNING,CLOSE_NOTIFY),

ic0ns commented 4 years ago

are you trying to send an undefined description?

sajualways commented 4 years ago

actually i did not send any alert description....but it was sending "Close notify as description" and later i explicitly sent the description and it worked