@@ -179,17 +179,21 @@ public Boolean isVulnerable() {
179179 LOGGER .warn ("TLS-Attacker failed execute a Handshake. Skipping to next record" );
180180 continue ;
181181 }
182- ResponseFingerprint fingerprint = ResponseExtractor .getFingerprint (state );
183- clearConnections (state );
184- AbstractRecord lastRecord = state .getWorkflowTrace ().getLastSendingAction ().getSendRecords ()
185- .get (state .getWorkflowTrace ().getLastSendingAction ().getSendRecords ().size () - 1 );
186- int length = ((Record ) lastRecord ).getLength ().getValue ();
187- List <ResponseFingerprint > responseFingerprintList = responseMap .get (length );
188- if (responseFingerprintList == null ) {
189- responseFingerprintList = new LinkedList <>();
190- responseMap .put (length , responseFingerprintList );
182+ if (state .getWorkflowTrace ().allActionsExecuted ()) {
183+ ResponseFingerprint fingerprint = ResponseExtractor .getFingerprint (state );
184+ clearConnections (state );
185+ AbstractRecord lastRecord = state .getWorkflowTrace ().getLastSendingAction ().getSendRecords ()
186+ .get (state .getWorkflowTrace ().getLastSendingAction ().getSendRecords ().size () - 1 );
187+ int length = ((Record ) lastRecord ).getLength ().getValue ();
188+ List <ResponseFingerprint > responseFingerprintList = responseMap .get (length );
189+ if (responseFingerprintList == null ) {
190+ responseFingerprintList = new LinkedList <>();
191+ responseMap .put (length , responseFingerprintList );
192+ }
193+ responseFingerprintList .add (fingerprint );
194+ } else {
195+ LOGGER .warn ("Could not execute Workflow. Something went wrong... Check the debug output for more information" );
191196 }
192- responseFingerprintList .add (fingerprint );
193197
194198 }
195199 LOGGER .log (LogLevel .CONSOLE_OUTPUT ,
0 commit comments