aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/do.sh2
-rw-r--r--tests/pcap/malware.pcapbin0 -> 468 bytes
-rw-r--r--tests/result/malware.pcap.out7
3 files changed, 8 insertions, 1 deletions
diff --git a/tests/do.sh b/tests/do.sh
index 62b51288e..805437846 100755
--- a/tests/do.sh
+++ b/tests/do.sh
@@ -1,4 +1,4 @@
-READER="../example/ndpiReader -p ../example/protos.txt"
+READER="../example/ndpiReader -p ../example/protos.txt -c ../example/categories.txt"
RC=0
PCAPS=`cd pcap; /bin/ls *.pcap`
diff --git a/tests/pcap/malware.pcap b/tests/pcap/malware.pcap
new file mode 100644
index 000000000..c63389f04
--- /dev/null
+++ b/tests/pcap/malware.pcap
Binary files differ
diff --git a/tests/result/malware.pcap.out b/tests/result/malware.pcap.out
new file mode 100644
index 000000000..448633b3e
--- /dev/null
+++ b/tests/result/malware.pcap.out
@@ -0,0 +1,7 @@
+DNS 2 216 1
+HTTP 1 66 1
+ICMP 1 98 1
+
+ 1 UDP 192.168.7.7:42370 <-> 1.1.1.1:53 [proto: 5/DNS][cat: Malware/100][1 pkts/106 bytes <-> 1 pkts/110 bytes][Host: www.internetbadguys.com][PLAIN TEXT (internetbadguys)]
+ 2 ICMP 192.168.7.7:0 -> 144.139.247.220:0 [proto: 81/ICMP][cat: Malware/100][1 pkts/98 bytes -> 0 pkts/0 bytes]
+ 3 TCP 192.168.7.7:33706 -> 144.139.247.220:80 [proto: 7/HTTP][cat: Malware/100][1 pkts/66 bytes -> 0 pkts/0 bytes]