Committing local changes.
authorrtrimana <rtrimana@uci.edu>
Tue, 9 Oct 2018 00:03:51 +0000 (17:03 -0700)
committerrtrimana <rtrimana@uci.edu>
Tue, 9 Oct 2018 00:03:51 +0000 (17:03 -0700)
Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/detection/SignatureDetector.java

index cdcad85..5ba189d 100644 (file)
@@ -29,7 +29,7 @@ public class SignatureDetector implements PacketListener {
         final String inputPcapFile = path + "/2018-07/dlink/dlink.wlan1.local.pcap";
         final String signatureFile = path + "/2018-07/dlink/offSignature1.sig";
 
-        List<List<PcapPacket>> signature = PrintUtils.serializeClustersFromFile(signatureFile);
+        List<List<PcapPacket>> signature = PrintUtils.deserializeClustersFromFile(signatureFile);
         SignatureDetector signatureDetector = new SignatureDetector(signature, null,
                 (sig, match) -> System.out.println(
                         String.format("[ !!! SIGNATURE DETECTED AT %s !!! ]",