aboutsummaryrefslogtreecommitdiff
path: root/caronte.go
diff options
context:
space:
mode:
Diffstat (limited to 'caronte.go')
-rw-r--r--caronte.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/caronte.go b/caronte.go
new file mode 100644
index 0000000..934828d
--- /dev/null
+++ b/caronte.go
@@ -0,0 +1,24 @@
+package main
+
+import (
+ "fmt"
+)
+
+func mainn() {
+ // testStorage()
+ storage := NewStorage("localhost", 27017, "testing")
+ err := storage.Connect(nil)
+ if err != nil {
+ panic(err)
+ }
+
+ importer := NewPcapImporter(&storage, "10.10.10.10")
+
+ sessionId, err := importer.ImportPcap("capture_00459_20190627165500.pcap")
+ if err != nil {
+ fmt.Println(err)
+ } else {
+ fmt.Println(sessionId)
+ }
+
+}