Skip to content

Commit 145f3df

Browse files
Merge branch 'master' into masterpublic
2 parents 385f76a + 0aadaff commit 145f3df

File tree

496 files changed

+111077
-104942
lines changed

Some content is hidden

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

496 files changed

+111077
-104942
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ buildNumber.properties
1414
.classpath
1515
.project
1616
.settings/
17+
/nbproject/

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.

license_header.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* TLS-Scanner - A TLS Configuration Analysistool based on TLS-Attacker
2+
* TLS-Scanner - A TLS configuration and analysis tool based on TLS-Attacker.
33
*
44
* Copyright 2017-2019 Ruhr University Bochum / Hackmanit GmbH
55
*

license_header_plain.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TLS-Scanner - A TLS Configuration Analysistool based on TLS-Attacker
1+
TLS-Scanner - A TLS configuration and analysis tool based on TLS-Attacker.
22

33
Copyright 2017-2019 Ruhr University Bochum / Hackmanit GmbH
44

nb-configuration.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project-shared-configuration>
3+
<!--
4+
This file contains additional configuration written by modules in the NetBeans IDE.
5+
The configuration is intended to be shared among all the users of project and
6+
therefore it is assumed to be part of version control checkout.
7+
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
8+
-->
9+
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
10+
<!--
11+
Properties that influence various parts of the IDE, especially code formatting and the like.
12+
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
13+
That way multiple projects can share the same settings (useful for formatting rules for example).
14+
Any value defined here will override the pom.xml file value but is only applicable to the current project.
15+
-->
16+
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
17+
</properties>
18+
</project-shared-configuration>

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.1</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>
@@ -53,11 +48,6 @@
5348
<artifactId>jackson-dataformat-yaml</artifactId>
5449
<version>2.10.0</version>
5550
</dependency>
56-
<dependency>
57-
<groupId>org.apache.commons</groupId>
58-
<artifactId>commons-lang3</artifactId>
59-
<version>3.9</version>
60-
</dependency>
6151
<dependency>
6252
<groupId>org.bouncycastle</groupId>
6353
<artifactId>bcpkix-jdk15on</artifactId>
@@ -224,7 +214,7 @@
224214
</build>
225215
<properties>
226216
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
227-
<maven.compiler.source>1.7</maven.compiler.source>
228-
<maven.compiler.target>1.7</maven.compiler.target>
217+
<maven.compiler.source>1.8</maven.compiler.source>
218+
<maven.compiler.target>1.8</maven.compiler.target>
229219
</properties>
230220
</project>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* TLS-Scanner - A TLS Configuration Analysistool based on TLS-Attacker
2+
* TLS-Scanner - A TLS configuration and analysis tool based on TLS-Attacker.
33
*
44
* Copyright 2017-2019 Ruhr University Bochum / Hackmanit GmbH
55
*
@@ -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: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* TLS-Scanner - A TLS Configuration Analysistool based on TLS-Attacker
2+
* TLS-Scanner - A TLS configuration and analysis tool based on TLS-Attacker.
33
*
44
* Copyright 2017-2019 Ruhr University Bochum / Hackmanit GmbH
55
*
@@ -13,7 +13,7 @@
1313
import de.rub.nds.tlsattacker.core.config.delegate.GeneralDelegate;
1414
import de.rub.nds.tlsattacker.core.exceptions.ConfigurationException;
1515
import de.rub.nds.tlsscanner.config.ScannerConfig;
16-
import de.rub.nds.tlsscanner.constants.AnsiColors;
16+
import de.rub.nds.tlsscanner.constants.AnsiColor;
1717
import de.rub.nds.tlsscanner.constants.AnsiEscapeSequence;
1818
import de.rub.nds.tlsscanner.report.SiteReport;
1919
import java.io.IOException;
@@ -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,19 +40,17 @@ 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...");
4946
SiteReport report = scanner.scan();
50-
LOGGER.info("Scanned in:" + ((System.currentTimeMillis() - time) / 1000) + "s\n");
47+
LOGGER.info("Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n");
5148
if (!config.getGeneralDelegate().isDebug() && !config.isNoProgressbar()) {
5249
// ANSI escape sequences to erase the progressbar
5350
ConsoleLogger.CONSOLE.info(AnsiEscapeSequence.ANSI_ONE_LINE_UP + AnsiEscapeSequence.ANSI_ERASE_LINE);
5451
}
55-
ConsoleLogger.CONSOLE.info(AnsiColors.ANSI_RESET + "Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n" + report.getFullReport(config.getReportDetail()));
52+
ConsoleLogger.CONSOLE.info(AnsiColor.RESET.getCode() + "Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n" + report.getFullReport(config.getReportDetail(), !config.isNoColor()));
53+
5654
} catch (ConfigurationException E) {
5755
LOGGER.error("Encountered a ConfigurationException aborting.", E);
5856
}

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

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

0 commit comments

Comments
 (0)