Skip to content

Commit 48e88f1

Browse files
authored
Merge pull request #49 from RUB-NDS/v28v26
V28v26
2 parents 47d5f45 + 332d399 commit 48e88f1

File tree

4 files changed

+26
-23
lines changed

4 files changed

+26
-23
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TLS-Scanner is a tool created by the Chair for Network and Data Security from th
44
**Please note:** *TLS-Scanner is a research tool intended for TLS developers, pentesters, administrators and researchers. There is no GUI. It is in the first version and may contain some bugs.*
55

66
# Compiling
7-
In order to compile and use TLS-Scanner, you need to have Java and Maven installed, as well as [TLS-Attacker](https://github.com/RUB-NDS/TLS-Attacker) in Version 2.6
7+
In order to compile and use TLS-Scanner, you need to have Java and Maven installed, as well as [TLS-Attacker](https://github.com/RUB-NDS/TLS-Attacker) in Version 2.8
88

99
```bash
1010
$ cd TLS-Scanner
@@ -23,7 +23,7 @@ $ mvn clean install
2323

2424
For hints on installing the required libraries checkout the corresponding GitHub repositories.
2525

26-
**Please note:** *In order to run this tool you need TLS-Attacker version 2.6*
26+
**Please note:** *In order to run this tool you need TLS-Attacker version 2.8*
2727

2828
# Running
2929
In order to run TLS-Scanner you need to run the jar file in the apps/ folder.

pom.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
<modelVersion>4.0.0</modelVersion>
44
<artifactId>TLS-Scanner</artifactId>
55
<groupId>de.rub.nds.tlsscanner</groupId>
6-
<version>2.5</version>
6+
<version>2.6</version>
77
<packaging>jar</packaging>
88
<dependencies>
99
<dependency>
1010
<groupId>de.rub.nds.tlsattacker</groupId>
1111
<artifactId>TLS-Core</artifactId>
12-
<version>2.7</version>
12+
<version>2.8</version>
1313
</dependency>
1414
<dependency>
1515
<groupId>de.rub.nds.tlsattacker</groupId>
1616
<artifactId>Attacks</artifactId>
17-
<version>2.7</version>
17+
<version>2.8</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>junit</groupId>
@@ -57,12 +57,12 @@
5757
</profile>
5858
</profiles>
5959
<build>
60-
<finalName>TLS-Scanner</finalName>
60+
<finalName>TLS-Scanner</finalName>
6161
<plugins>
62-
<plugin>
63-
<artifactId>maven-dependency-plugin</artifactId>
62+
<plugin>
63+
<artifactId>maven-dependency-plugin</artifactId>
6464
<executions>
65-
<execution>
65+
<execution>
6666
<id>copy</id>
6767
<phase>package</phase>
6868
<goals>
@@ -83,17 +83,17 @@
8383
</execution>
8484
<execution>
8585
<id>copy-dependencies</id>
86-
<phase>package</phase>
87-
<goals>
88-
<goal>copy-dependencies</goal>
89-
</goals>
90-
<configuration>
86+
<phase>package</phase>
87+
<goals>
88+
<goal>copy-dependencies</goal>
89+
</goals>
90+
<configuration>
9191
<outputDirectory>${basedir}/apps/lib</outputDirectory>
9292
<!--Ensures only runnable dependencies are included-->
93-
<includeScope>compile</includeScope>
94-
</configuration>
95-
</execution>
96-
</executions>
93+
<includeScope>compile</includeScope>
94+
</configuration>
95+
</execution>
96+
</executions>
9797
</plugin>
9898
<plugin>
9999
<!-- Build an executable JAR -->

src/main/java/de/rub/nds/tlsscanner/probe/BleichenbacherProbe.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ public ProbeResult executeTest() {
5555
}
5656
LOGGER.info("Fetched the following server public key: " + publicKey);
5757
List<Pkcs1Vector> pkcs1Vectors;
58-
if (scannerConfig.getScanDetail() == ScannerDetail.NORMAL) {
59-
pkcs1Vectors = Pkcs1VectorGenerator.generatePkcs1Vectors(publicKey, BleichenbacherCommandConfig.Type.FAST,
58+
if (scannerConfig.getScanDetail().isGreaterEqualTo(ScannerDetail.DETAILED)) {
59+
pkcs1Vectors = Pkcs1VectorGenerator.generatePkcs1Vectors(publicKey, BleichenbacherCommandConfig.Type.FULL,
6060
bleichenbacherConfig.createConfig().getDefaultHighestClientProtocolVersion());
61+
6162
} else {
62-
pkcs1Vectors = Pkcs1VectorGenerator.generatePkcs1Vectors(publicKey, BleichenbacherCommandConfig.Type.FULL,
63+
pkcs1Vectors = Pkcs1VectorGenerator.generatePkcs1Vectors(publicKey, BleichenbacherCommandConfig.Type.FAST,
6364
bleichenbacherConfig.createConfig().getDefaultHighestClientProtocolVersion());
6465
}
6566
List<BleichenbacherTestResult> resultList = new LinkedList<>();

src/main/java/de/rub/nds/tlsscanner/probe/PaddingOracleProbe.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,12 @@ public ProbeResult executeTest() {
128128
}
129129
}
130130
}
131-
if (vulnerable && recordGeneratorType != PaddingRecordGeneratorType.SHORT) {
131+
if (vulnerable && (ScannerDetail.QUICK != scannerConfig.getScanDetail())) {
132132
testResultList.clear();
133133
//Perform full scan
134-
recordGeneratorType = PaddingRecordGeneratorType.SHORT;
134+
if (recordGeneratorType == PaddingRecordGeneratorType.VERY_SHORT) {
135+
recordGeneratorType = PaddingRecordGeneratorType.SHORT;
136+
}
135137
for (ProtocolVersion version : versionList) {
136138

137139
VersionSuiteListPair suitePairList = null;

0 commit comments

Comments
 (0)