Skip to content

Commit df798b6

Browse files
authored
Merge branch 'master' into timing-fixes2
2 parents 237659c + aff5fcf commit df798b6

File tree

1,787 files changed

+41758
-9483
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,787 files changed

+41758
-9483
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*.iml
12
target/
23
pom.xml.tag
34
pom.xml.releaseBackup
@@ -44,3 +45,5 @@ Utils/.settings/org.eclipse.jdt.core.prefs
4445
test.sh
4546
.settings/
4647
.classpath
48+
.idea
49+
*.iml

Attacks/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>de.rub.nds.tlsattacker</groupId>
66
<artifactId>TLS-Attacker</artifactId>
7-
<version>3.4.0</version>
7+
<version>3.5.0</version>
88
</parent>
99
<artifactId>Attacks</artifactId>
1010
<packaging>jar</packaging>

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/Main.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
33
*
4-
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
56
*
67
* Licensed under Apache License 2.0
78
* http://www.apache.org/licenses/LICENSE-2.0
@@ -12,6 +13,7 @@
1213
import de.rub.nds.tlsattacker.attacks.config.*;
1314
import de.rub.nds.tlsattacker.attacks.config.delegate.GeneralAttackDelegate;
1415
import de.rub.nds.tlsattacker.attacks.impl.*;
16+
import de.rub.nds.tlsattacker.attacks.impl.drown.*;
1517
import de.rub.nds.tlsattacker.core.config.TLSDelegateConfig;
1618
import de.rub.nds.tlsattacker.core.config.delegate.GeneralDelegate;
1719
import de.rub.nds.tlsattacker.core.exceptions.ConfigurationException;
@@ -66,8 +68,10 @@ public static void main(String[] args) {
6668
jc.addCommand(PoodleCommandConfig.ATTACK_COMMAND, poodle);
6769
SimpleMitmProxyCommandConfig simpleMitmProxy = new SimpleMitmProxyCommandConfig(generalDelegate);
6870
jc.addCommand(SimpleMitmProxyCommandConfig.ATTACK_COMMAND, simpleMitmProxy);
69-
DrownCommandConfig drownConfig = new DrownCommandConfig(generalDelegate);
70-
jc.addCommand(DrownCommandConfig.COMMAND, drownConfig);
71+
GeneralDrownCommandConfig generalDrownConfig = new GeneralDrownCommandConfig(generalDelegate);
72+
jc.addCommand(GeneralDrownCommandConfig.COMMAND, generalDrownConfig);
73+
SpecialDrownCommandConfig specialDrownConfig = new SpecialDrownCommandConfig(generalDelegate);
74+
jc.addCommand(SpecialDrownCommandConfig.COMMAND, specialDrownConfig);
7175
jc.parse(args);
7276
if (generalDelegate.isHelp() || jc.getParsedCommand() == null) {
7377
if (jc.getParsedCommand() == null) {
@@ -120,8 +124,11 @@ public static void main(String[] args) {
120124
attacker = new PskBruteForcerAttackServer(pskBruteForcerAttackServerTest,
121125
pskBruteForcerAttackServerTest.createConfig());
122126
break;
123-
case DrownCommandConfig.COMMAND:
124-
attacker = new DrownAttacker(drownConfig, drownConfig.createConfig());
127+
case GeneralDrownCommandConfig.COMMAND:
128+
attacker = new GeneralDrownAttacker(generalDrownConfig, generalDrownConfig.createConfig());
129+
break;
130+
case SpecialDrownCommandConfig.COMMAND:
131+
attacker = new SpecialDrownAttacker(specialDrownConfig, specialDrownConfig.createConfig());
125132
break;
126133
default:
127134
throw new ConfigurationException("Command not found");

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/actions/EarlyCcsAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
33
*
4-
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
56
*
67
* Licensed under Apache License 2.0
78
* http://www.apache.org/licenses/LICENSE-2.0

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/bruteforce/GuessProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
33
*
4-
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
56
*
67
* Licensed under Apache License 2.0
78
* http://www.apache.org/licenses/LICENSE-2.0

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/bruteforce/GuessProviderFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
33
*
4-
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
56
*
67
* Licensed under Apache License 2.0
78
* http://www.apache.org/licenses/LICENSE-2.0

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/bruteforce/GuessProviderType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
33
*
4-
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
56
*
67
* Licensed under Apache License 2.0
78
* http://www.apache.org/licenses/LICENSE-2.0

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/bruteforce/IncrementingGuessProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
33
*
4-
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
56
*
67
* Licensed under Apache License 2.0
78
* http://www.apache.org/licenses/LICENSE-2.0

Attacks/src/main/java/de/rub/nds/tlsattacker/attacks/bruteforce/WordListGuessProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
33
*
4-
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
56
*
67
* Licensed under Apache License 2.0
78
* http://www.apache.org/licenses/LICENSE-2.0
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
3+
*
4+
* Copyright 2014-2020 Ruhr University Bochum, Paderborn University,
5+
* and Hackmanit GmbH
6+
*
7+
* Licensed under Apache License 2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*/
10+
package de.rub.nds.tlsattacker.attacks.cca;
11+
12+
import de.rub.nds.tlsattacker.core.crypto.keys.CustomPrivateKey;
13+
import de.rub.nds.tlsattacker.core.crypto.keys.CustomPublicKey;
14+
15+
import java.util.LinkedList;
16+
import java.util.List;
17+
18+
public class CcaCertificateChain {
19+
private List<byte[]> encodedCertificates;
20+
private CustomPrivateKey leafCertificatePrivateKey;
21+
private CustomPublicKey leafCertificatePublicKey;
22+
23+
CcaCertificateChain() {
24+
this.encodedCertificates = new LinkedList<>();
25+
}
26+
27+
public void appendEncodedCertificate(byte[] encodedCertificate) {
28+
encodedCertificates.add(encodedCertificate);
29+
}
30+
31+
public void setLeafCertificatePrivateKey(CustomPrivateKey leafCertificatePrivateKey) {
32+
this.leafCertificatePrivateKey = leafCertificatePrivateKey;
33+
}
34+
35+
public CustomPrivateKey getLeafCertificatePrivateKey() {
36+
return leafCertificatePrivateKey;
37+
}
38+
39+
public void setLeafCertificatePublicKey(CustomPublicKey leafCertificatePublicKey) {
40+
this.leafCertificatePublicKey = leafCertificatePublicKey;
41+
}
42+
43+
public CustomPublicKey getLeafCertificatePublicKey() {
44+
return leafCertificatePublicKey;
45+
}
46+
47+
public List<byte[]> getEncodedCertificates() {
48+
return encodedCertificates;
49+
}
50+
51+
public void setEncodedCertificates(List<byte[]> encodedCertificates) {
52+
this.encodedCertificates = encodedCertificates;
53+
}
54+
}

0 commit comments

Comments
 (0)