Skip to content

Commit 57d5977

Browse files
author
Katja Hahn
committed
alpha 0.6 pre-release
1 parent 4189c00 commit 57d5977

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

assembly.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AssemblyKeys._ // put this at the top of the file
22

33
assemblySettings
44

5-
jarName in assembly := "portex_2.10-0.1.fat.jar"
5+
jarName in assembly := "portex_alpha_0.6.fat.jar"
66

77
test in assembly := {}
88

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "PortEx"
22

3-
version := "0.5.0"
3+
version := "0.6.0"
44

55
javadocSettings
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>portex_2.10</artifactId>
66
<packaging>jar</packaging>
77
<description>PortEx</description>
8-
<version>0.5.0</version>
8+
<version>0.6.0</version>
99
<name>PortEx</name>
1010
<organization>
1111
<name>portex</name>
@@ -14,7 +14,7 @@
1414
<dependency>
1515
<groupId>org.scala-lang</groupId>
1616
<artifactId>scala-library</artifactId>
17-
<version>2.10.3</version>
17+
<version>2.10.4</version>
1818
</dependency>
1919
<dependency>
2020
<groupId>com.google.java.contract</groupId>

portex_alpha_0.5.jar

-564 KB
Binary file not shown.

portex_alpha_0.6.jar

650 KB
Binary file not shown.

src/main/java/com/github/katjahahn/tools/DetectionHeuristic.scala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ object DetectionHeuristic {
9393
private type OptionMap = scala.collection.mutable.Map[Symbol, String]
9494

9595
def main(args: Array[String]): Unit = {
96-
invokeCLI(args)
96+
testHeuristics();
9797
}
9898

9999
private def invokeCLI(args: Array[String]): Unit = {
@@ -166,7 +166,7 @@ object DetectionHeuristic {
166166
}
167167
}
168168
private def testHeuristics(): Unit = {
169-
val folder = new File("/home/deque/portextestfiles/badfiles")
169+
val folder = new File("/home/deque/portextestfiles/x64viruses")
170170
val threshholdA = 0.99
171171
val threshholdB = 0.80
172172
val threshholdC = 0.50
@@ -190,9 +190,9 @@ object DetectionHeuristic {
190190
}
191191
if (total % 1000 == 0) {
192192
println("files read: " + total)
193-
println("malicious by threshhold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
194-
println("malicious by threshhold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
195-
println("malicious by threshhold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
193+
println("malicious by threshold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
194+
println("malicious by threshold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
195+
println("malicious by threshold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
196196
}
197197
} catch {
198198
case e: FileFormatException => notLoaded +=1; System.err.println("file is no PE file: " + file.getName());
@@ -201,9 +201,9 @@ object DetectionHeuristic {
201201
}
202202
total -= notLoaded
203203
println("files read: " + total)
204-
println("malicious by threshhold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
205-
println("malicious by threshhold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
206-
println("malicious by threshhold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
204+
println("malicious by threshold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
205+
println("malicious by threshold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
206+
println("malicious by threshold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
207207
}
208208

209209
def newInstance(file: File): DetectionHeuristic = apply(file)

0 commit comments

Comments
 (0)