Skip to content

Commit 0aadaff

Browse files
Merge pull request #30 from RUB-NDS/taskScheduler
Task scheduler
2 parents d854d1c + 17e350c commit 0aadaff

34 files changed

+2126
-768
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 3.0
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 3.3.0
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 3.0*
26+
**Please note:** *In order to run this tool you need TLS-Attacker version 3.3.0*
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: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,25 @@
33
<modelVersion>4.0.0</modelVersion>
44
<artifactId>TLS-Scanner</artifactId>
55
<groupId>de.rub.nds.tlsscanner</groupId>
6-
<version>2.11</version>
6+
<version>3.0.0</version>
77
<packaging>jar</packaging>
88
<dependencies>
99
<dependency>
1010
<groupId>de.rub.nds.tlsattacker</groupId>
1111
<artifactId>TLS-Core</artifactId>
12-
<version>3.2</version>
12+
<version>3.3.0</version>
1313
</dependency>
1414
<dependency>
1515
<groupId>de.rub.nds.tlsattacker</groupId>
1616
<artifactId>Attacks</artifactId>
17-
<version>3.2</version>
17+
<version>3.3.0</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>junit</groupId>
2121
<artifactId>junit</artifactId>
2222
<version>4.12</version>
2323
<scope>test</scope>
2424
</dependency>
25-
<dependency>
26-
<groupId>me.tongfei</groupId>
27-
<artifactId>progressbar</artifactId>
28-
<version>0.7.4</version>
29-
</dependency>
3025
<dependency>
3126
<groupId>com.googlecode.json-simple</groupId>
3227
<artifactId>json-simple</artifactId>
@@ -40,18 +35,13 @@
4035
<dependency>
4136
<groupId>com.fasterxml.jackson.core</groupId>
4237
<artifactId>jackson-databind</artifactId>
43-
<version>2.9.8</version>
38+
<version>2.10.0</version>
4439
<type>jar</type>
4540
</dependency>
4641
<dependency>
4742
<groupId>com.fasterxml.jackson.dataformat</groupId>
4843
<artifactId>jackson-dataformat-yaml</artifactId>
49-
<version>2.9.8</version>
50-
</dependency>
51-
<dependency>
52-
<groupId>org.apache.commons</groupId>
53-
<artifactId>commons-lang3</artifactId>
54-
<version>3.9</version>
44+
<version>2.10.0</version>
5545
</dependency>
5646
<dependency>
5747
<groupId>org.bouncycastle</groupId>

src/main/java/de/rub/nds/tlsscanner/ConsoleLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
public class ConsoleLogger {
1919

20-
public static final Logger CONSOLE = LogManager.getLogger("ConsoleLogger");
20+
public static final Logger CONSOLE = LogManager.getLogger("Direct");
2121

2222
private ConsoleLogger() {
2323
}

src/main/java/de/rub/nds/tlsscanner/Main.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
public class Main {
2929

30-
private static final Logger LOGGER = LogManager.getLogger(Main.class.getName());
30+
private static final Logger LOGGER = LogManager.getLogger();
3131

3232
public static void main(String[] args) throws IOException {
3333
ScannerConfig config = new ScannerConfig(new GeneralDelegate());
@@ -40,9 +40,6 @@ public static void main(String[] args) throws IOException {
4040
}
4141
// Cmd was parsable
4242
try {
43-
if (config.getGeneralDelegate().isDebug()) {
44-
ThreadContext.put("ROUTINGKEY", "special");
45-
}
4643
TlsScanner scanner = new TlsScanner(config);
4744
long time = System.currentTimeMillis();
4845
LOGGER.info("Performing Scan, this may take some time...");

src/main/java/de/rub/nds/tlsscanner/MultiThreadedScanJobExecutor.java

Lines changed: 0 additions & 196 deletions
This file was deleted.

src/main/java/de/rub/nds/tlsscanner/ScanJob.java

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import de.rub.nds.tlsscanner.probe.TlsProbe;
1212
import de.rub.nds.tlsscanner.report.after.AfterProbe;
13-
import java.util.LinkedList;
1413
import java.util.List;
1514

1615
/**
@@ -19,32 +18,19 @@
1918
*/
2019
public class ScanJob {
2120

22-
private final List<TlsProbe> phaseTwoTestList;
23-
private final List<TlsProbe> phaseOneTestList;
21+
private final List<TlsProbe> probeList;
2422
private final List<AfterProbe> afterList;
2523

26-
public ScanJob(List<TlsProbe> phaseOneTestList, List<TlsProbe> phaseTwoTestList, List<AfterProbe> afterList) {
27-
this.phaseOneTestList = phaseOneTestList;
28-
this.phaseTwoTestList = phaseTwoTestList;
24+
public ScanJob(List<TlsProbe> probeList, List<AfterProbe> afterList) {
25+
this.probeList = probeList;
2926
this.afterList = afterList;
3027
}
3128

32-
public List<TlsProbe> getPhaseOneTestList() {
33-
return phaseOneTestList;
34-
}
35-
36-
public List<TlsProbe> getPhaseTwoTestList() {
37-
return phaseTwoTestList;
29+
public List<TlsProbe> getProbeList() {
30+
return probeList;
3831
}
3932

4033
public List<AfterProbe> getAfterList() {
4134
return afterList;
4235
}
43-
44-
public List<TlsProbe> getJoinedProbes() {
45-
List<TlsProbe> probeList = new LinkedList<>();
46-
probeList.addAll(phaseOneTestList);
47-
probeList.addAll(phaseTwoTestList);
48-
return probeList;
49-
}
5036
}

src/main/java/de/rub/nds/tlsscanner/ScanJobExecutor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
package de.rub.nds.tlsscanner;
1010

11-
import de.rub.nds.tlsscanner.config.ScannerConfig;
1211
import de.rub.nds.tlsscanner.report.SiteReport;
1312

1413
/**
@@ -17,7 +16,7 @@
1716
*/
1817
public abstract class ScanJobExecutor {
1918

20-
public abstract SiteReport execute(ScannerConfig config, ScanJob scanJob);
19+
public abstract SiteReport execute();
2120

2221
public abstract void shutdown();
2322
}

src/main/java/de/rub/nds/tlsscanner/ScanJobExecutorFactory.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)