Skip to content

Commit 15c1bcc

Browse files
TLS server documentation, small changes in the default server workflow
1 parent 29411b1 commit 15c1bcc

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/mitm/MitMWorkflowExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ protected List<Record> fetchRecords() throws IOException {
428428
}
429429
if (records.isEmpty()) {
430430
throw new WorkflowExecutionException("The configured protocol message was not found, "
431-
+ "the server does not send any data.");
431+
+ "the TLS peer does not send any data.");
432432
}
433433
}
434434
return records;

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ For more parameters, run:
7878
$ java -jar target/TLS-Attacker-1.0.jar client -help
7979
```
8080

81+
You can now also use the TLS server:
82+
```bash
83+
$ java -jar target/TLS-Attacker-1.1.jar server -port 4444 -keystore ../resources/rsa1024.jks -password password -alias alias
84+
```
85+
Currently, only one TLS handshake will be produced, afterwards you need to restart the server again.
86+
8187
The Attacks module contains some attacks, you can for example test for the padding oracle vulnerabilities:
8288
```bash
8389
$ cd Runnable

TLS/src/main/java/de/rub/nds/tlsattacker/tls/config/ServerCommandConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ServerCommandConfig extends CommandConfig {
2424
protected String port = "4433";
2525

2626
@Parameter(names = "-workflow_trace_type", description = "Type of the workflow trace (FULL or HANDSHAKE)")
27-
protected WorkflowTraceType workflowTraceType = WorkflowTraceType.FULL;
27+
protected WorkflowTraceType workflowTraceType = WorkflowTraceType.HANDSHAKE;
2828

2929
@Parameter(names = "-servername_fatal", description = "On mismatch in the server name the server sends a fatal "
3030
+ "alert")

TLS/src/main/java/de/rub/nds/tlsattacker/tls/workflow/GenericWorkflowExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ protected List<Record> fetchRecords() throws IOException {
304304
}
305305
if (records.isEmpty()) {
306306
throw new WorkflowExecutionException("The configured protocol message was not found, "
307-
+ "the server does not send any data.");
307+
+ "the TLS peer does not send any data.");
308308
}
309309
}
310310
return records;

0 commit comments

Comments
 (0)