Skip to content

Commit 24cbaa4

Browse files
authored
More ascii debug (#563)
* added debug output to ascii actions
1 parent 27c87eb commit 24cbaa4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/workflow/action/GenericReceiveAsciiAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ public void execute(State state) throws WorkflowExecutionException {
3434
throw new WorkflowExecutionException("Action already executed!");
3535
}
3636
try {
37-
LOGGER.info("Receiving ASCII message...");
37+
LOGGER.debug("Receiving ASCII message...");
3838
byte[] fetchData = tlsContext.getTransportHandler().fetchData();
3939
setAsciiText(new String(fetchData, getEncoding()));
40+
LOGGER.info("Received:" + getAsciiText());
4041
setExecuted(true);
4142
} catch (IOException E) {
4243
LOGGER.debug(E);

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/workflow/action/ReceiveAsciiAction.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ public void execute(State state) throws WorkflowExecutionException {
4040
}
4141

4242
try {
43-
LOGGER.info("Receiving ASCII message...");
44-
43+
LOGGER.debug("Receiving ASCII message...");
4544
byte[] fetchData = tlsContext.getTransportHandler().fetchData();
4645
receivedAsciiString = new String(fetchData, getEncoding());
46+
LOGGER.info("Received: " + receivedAsciiString);
47+
4748
setExecuted(true);
4849
} catch (IOException E) {
4950
LOGGER.debug(E);

0 commit comments

Comments
 (0)