Skip to content

Commit a0b0e5a

Browse files
authored
Merge pull request #23 from RUB-NDS/defaultRecommendationSerializer
Default recommendation serializer
2 parents a943739 + 9532552 commit a0b0e5a

File tree

492 files changed

+109045
-104285
lines changed

Some content is hidden

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

492 files changed

+109045
-104285
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/

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<destFileName>${project.build.finalName}.${project.packaging}</destFileName>
106106
</artifactItem>
107107

108-
</artifactItems>
108+
</artifactItems>
109109
<outputDirectory>${basedir}/apps</outputDirectory>
110110
</configuration>
111111
</execution>
@@ -218,7 +218,7 @@
218218
</build>
219219
<properties>
220220
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
221-
<maven.compiler.source>1.7</maven.compiler.source>
222-
<maven.compiler.target>1.7</maven.compiler.target>
221+
<maven.compiler.source>1.8</maven.compiler.source>
222+
<maven.compiler.target>1.8</maven.compiler.target>
223223
</properties>
224224
</project>

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

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
*

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

Lines changed: 5 additions & 4 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;
@@ -47,12 +47,13 @@ public static void main(String[] args) throws IOException {
4747
long time = System.currentTimeMillis();
4848
LOGGER.info("Performing Scan, this may take some time...");
4949
SiteReport report = scanner.scan();
50-
LOGGER.info("Scanned in:" + ((System.currentTimeMillis() - time) / 1000) + "s\n");
50+
LOGGER.info("Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n");
5151
if (!config.getGeneralDelegate().isDebug() && !config.isNoProgressbar()) {
5252
// ANSI escape sequences to erase the progressbar
5353
ConsoleLogger.CONSOLE.info(AnsiEscapeSequence.ANSI_ONE_LINE_UP + AnsiEscapeSequence.ANSI_ERASE_LINE);
5454
}
55-
ConsoleLogger.CONSOLE.info(AnsiColors.ANSI_RESET + "Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n" + report.getFullReport(config.getReportDetail()));
55+
ConsoleLogger.CONSOLE.info(AnsiColor.RESET.getCode() + "Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n" + report.getFullReport(config.getReportDetail(), !config.isNoColor()));
56+
5657
} catch (ConfigurationException E) {
5758
LOGGER.error("Encountered a ConfigurationException aborting.", E);
5859
}

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

Lines changed: 5 additions & 5 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
*
@@ -93,7 +93,7 @@ private SiteReport scan(ScannerConfig config, ScanJob scanJob, ProgressBar pb) {
9393

9494
ClientDelegate clientDelegate = (ClientDelegate) config.getDelegate(ClientDelegate.class);
9595
String hostname = clientDelegate.getHost();
96-
SiteReport report = new SiteReport(hostname, probeTypes, config.isNoColor());
96+
SiteReport report = new SiteReport(hostname, probeTypes);
9797
report.setServerIsAlive(Boolean.TRUE);
9898
for (ProbeResult result : resultList) {
9999
result.merge(report);
@@ -109,10 +109,10 @@ private SiteReport scan(ScannerConfig config, ScanJob scanJob, ProgressBar pb) {
109109
for (TlsProbe probe : scanJob.getPhaseTwoTestList()) {
110110
if (probe.getDanger() <= config.getDangerLevel()) {
111111
probeTypes.add(probe.getType());
112-
if (probe.shouldBeExecuted(report)) {
112+
if (probe.canBeExecuted(report)) {
113113
futureResults.add(executor.submit(probe));
114-
} else if (!config.isImplementation()) {
115-
ProbeResult result = probe.getNotExecutedResult();
114+
} else {
115+
ProbeResult result = probe.getCouldNotExecuteResult();
116116
if (result != null) {
117117
resultList.add(result);
118118
if (pb != null) {

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

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
*

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

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
*

0 commit comments

Comments
 (0)