Skip to content

Commit

Permalink
alpha 0.6 pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Katja Hahn committed Jun 23, 2014
1 parent 4189c00 commit 57d5977
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion assembly.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import AssemblyKeys._ // put this at the top of the file

assemblySettings

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

test in assembly := {}

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "PortEx"

version := "0.5.0"
version := "0.6.0"

javadocSettings

Expand Down
4 changes: 2 additions & 2 deletions portex_alpha_0.5.0.pom → portex_2.10-0.6.0.pom
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>portex_2.10</artifactId>
<packaging>jar</packaging>
<description>PortEx</description>
<version>0.5.0</version>
<version>0.6.0</version>
<name>PortEx</name>
<organization>
<name>portex</name>
Expand All @@ -14,7 +14,7 @@
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.10.3</version>
<version>2.10.4</version>
</dependency>
<dependency>
<groupId>com.google.java.contract</groupId>
Expand Down
Binary file removed portex_alpha_0.5.jar
Binary file not shown.
Binary file not shown.
Binary file added portex_alpha_0.6.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ object DetectionHeuristic {
private type OptionMap = scala.collection.mutable.Map[Symbol, String]

def main(args: Array[String]): Unit = {
invokeCLI(args)
testHeuristics();
}

private def invokeCLI(args: Array[String]): Unit = {
Expand Down Expand Up @@ -166,7 +166,7 @@ object DetectionHeuristic {
}
}
private def testHeuristics(): Unit = {
val folder = new File("/home/deque/portextestfiles/badfiles")
val folder = new File("/home/deque/portextestfiles/x64viruses")
val threshholdA = 0.99
val threshholdB = 0.80
val threshholdC = 0.50
Expand All @@ -190,9 +190,9 @@ object DetectionHeuristic {
}
if (total % 1000 == 0) {
println("files read: " + total)
println("malicious by threshhold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
println("malicious by threshhold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
println("malicious by threshhold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
println("malicious by threshold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
println("malicious by threshold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
println("malicious by threshold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
}
} catch {
case e: FileFormatException => notLoaded +=1; System.err.println("file is no PE file: " + file.getName());
Expand All @@ -201,9 +201,9 @@ object DetectionHeuristic {
}
total -= notLoaded
println("files read: " + total)
println("malicious by threshhold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
println("malicious by threshhold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
println("malicious by threshhold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
println("malicious by threshold 0.99: " + malcounterA + " ratio " + (malcounterA.toDouble / total.toDouble))
println("malicious by threshold 0.80: " + malcounterB + " ratio " + (malcounterB.toDouble / total.toDouble))
println("malicious by threshold 0.50: " + malcounterC + " ratio " + (malcounterC.toDouble / total.toDouble))
}

def newInstance(file: File): DetectionHeuristic = apply(file)
Expand Down

0 comments on commit 57d5977

Please sign in to comment.