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

@@ -26,6 +17,13 @@ _go-yara_ and CGO compilation. Anyway, you'll find a detailed documentation [for
// compile: go build -tags yara_static -a -ldflags '-s -w -extldflags "-static"' .
4
+
// compile: go build -trimpath -tags yara_static -a -ldflags '-s -w -extldflags "-static"' .
5
+
// suggestion: reduce binary size with upx --best --lzma .\fastfinder.exe
6
+
5
7
package main
6
8
7
9
import (
@@ -19,7 +21,7 @@ import (
19
21
)
20
22
21
23
funcmain() {
22
-
constFASTFINDER_VERSION="1.4.2b"
24
+
constFASTFINDER_VERSION="1.4.2"
23
25
constYARA_VERSION="4.1.3"
24
26
varcompiler*yara.Compiler
25
27
varrules*yara.Rules
@@ -49,19 +51,21 @@ func main() {
49
51
}
50
52
}
51
53
52
-
// create mutex
53
54
iflen(*pSfxPath) ==0 {
55
+
// create mutex
54
56
if_, err=CreateMutex("fastfinder"); err!=nil {
55
57
LogMessage(LOG_ERROR, "[ERROR]", "Only one instance or fastfinder can be launched:", err.Error())
56
58
os.Exit(1)
57
59
}
58
-
}
59
60
60
-
// Retrieve current user permissions
61
-
admin, elevated:=CheckCurrentUserPermissions()
62
-
if!admin&&!elevated {
63
-
LogMessage(LOG_INFO, "[WARNING] fastfinder is not running with fully elevated righs. Notice that the analysis will be partial and limited to the current user scope")
64
-
time.Sleep(3*time.Second)
61
+
// Retrieve current user permissions
62
+
admin, elevated:=CheckCurrentUserPermissions()
63
+
if!admin&&!elevated {
64
+
LogMessage(LOG_INFO, "[WARNING] fastfinder is not running with fully elevated righs. Notice that the analysis will be partial and limited to the current user scope")
0 commit comments