You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: analysis.go
+41-31Lines changed: 41 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -9,55 +9,65 @@ import (
9
9
"log"
10
10
"os"
11
11
"path/filepath"
12
+
"time"
12
13
13
14
"github.com/hillu/go-yara"
14
15
)
15
16
17
+
// FileDescriptor wrap path, filehash and last update into a structure. It is used for performance improvements and avoid reading file if it has not changed
18
+
typeFileDescriptorstruct {
19
+
FilePathstring
20
+
FileSizeint64
21
+
LastModified time.Time
22
+
}
23
+
16
24
// FileAnalysis sub-routine for file analysis (used in registry / task scheduler / startmenu scan)
Copy file name to clipboardExpand all lines: utils.go
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,29 @@ package main
2
2
3
3
import (
4
4
"log"
5
+
"os"
5
6
6
7
"github.com/gen2brain/beeep"
7
8
)
8
9
10
+
// RegisterFileInHistory check if file is already known and hasn't change in files history return true if file is append to history and false if it is already known as is.
0 commit comments