88 */
99package de .rub .nds .tlsattacker .attacks .pkcs1 .oracles ;
1010
11- import de .rub .nds .modifiablevariable .bytearray .ByteArrayModificationFactory ;
12- import de .rub .nds .modifiablevariable .bytearray .ModifiableByteArray ;
1311import de .rub .nds .tlsattacker .attacks .config .AttackConfig ;
1412import de .rub .nds .tlsattacker .attacks .pkcs1 .BleichenbacherWorkflowGenerator ;
1513import de .rub .nds .tlsattacker .attacks .pkcs1 .BleichenbacherWorkflowType ;
1816import de .rub .nds .tlsattacker .attacks .util .response .ResponseExtractor ;
1917import de .rub .nds .tlsattacker .attacks .util .response .ResponseFingerprint ;
2018import de .rub .nds .tlsattacker .core .config .Config ;
21- import de .rub .nds .tlsattacker .core .constants .HandshakeMessageType ;
22- import de .rub .nds .tlsattacker .core .constants .RunningModeType ;
2319import de .rub .nds .tlsattacker .core .exceptions .WorkflowExecutionException ;
24- import de .rub .nds .tlsattacker .core .protocol .message .RSAClientKeyExchangeMessage ;
2520import de .rub .nds .tlsattacker .core .state .State ;
2621import de .rub .nds .tlsattacker .core .workflow .WorkflowExecutor ;
2722import de .rub .nds .tlsattacker .core .workflow .WorkflowExecutorFactory ;
2823import de .rub .nds .tlsattacker .core .workflow .WorkflowTrace ;
29- import de .rub .nds .tlsattacker .core .workflow .WorkflowTraceUtil ;
30- import de .rub .nds .tlsattacker .core .workflow .factory .WorkflowConfigurationFactory ;
31- import de .rub .nds .tlsattacker .core .workflow .factory .WorkflowTraceType ;
3224import de .rub .nds .tlsattacker .util .MathHelper ;
3325import java .io .IOException ;
3426import java .security .PublicKey ;
3527import java .security .interfaces .RSAPublicKey ;
3628
3729public class RealDirectMessagePkcs1Oracle extends Pkcs1Oracle {
3830
39- private AttackConfig attackConfig ;
31+ private final AttackConfig attackConfig ;
4032
4133 private final ResponseFingerprint validResponseContent ;
4234
4335 private final ResponseFingerprint invalidResponseContent ;
4436
45- private BleichenbacherWorkflowType type ;
37+ private final BleichenbacherWorkflowType type ;
4638
4739 public RealDirectMessagePkcs1Oracle (PublicKey pubKey , AttackConfig config ,
4840 ResponseFingerprint validResponseContent , ResponseFingerprint invalidResponseContent ,
@@ -85,7 +77,7 @@ public boolean checkPKCSConformity(final byte[] msg) {
8577 }
8678
8779 } catch (WorkflowExecutionException e ) {
88- e . printStackTrace ( );
80+ LOGGER . debug ( e . getLocalizedMessage (), e );
8981 }
9082 return conform ;
9183 }
@@ -95,7 +87,7 @@ private ResponseFingerprint getFingerprint(State state) {
9587 ResponseFingerprint fingerprint = ResponseExtractor .getFingerprint (state );
9688 return fingerprint ;
9789 } else {
98- LOGGER .warn ("Could not execute Workflow. Something went wrong... Check the debug output for more information" );
90+ LOGGER .debug ("Could not execute Workflow. Something went wrong... Check the debug output for more information" );
9991 }
10092 return null ;
10193 }
0 commit comments