-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlib.go
41 lines (30 loc) · 913 Bytes
/
lib.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package menagerie
// #cgo CFLAGS: -Ilib
// #include "antidbg.h"
// #include "antivm.h"
import "C"
import "unsafe"
/*=========================== ANTI-DEBUGGING ===========================*/
func CheckDebuggerBasic() bool {
return bool(C.CheckDebuggerBasic())
}
func ThrowBreakpointExcept() bool {
return bool(C.ThrowBreakpointExcept())
}
func BreakpointChecksumAt(ptr interface{}) bool {
return bool(C.BreakpointChecksumAt(unsafe.Pointer(&ptr)))
}
func CheckMemoryFingerprint() bool {
return bool(C.CheckMemoryFingerprint())
}
func CheckParentTracer() bool {
return bool(C.CheckParentTracer())
}
/*=========================== ANTI-VM ===========================*/
func CheckCPUIDIsVM() bool {
return bool(C.CheckCPUIDIsVM())
}
func CheckCPUIDHypervisor() bool {
return bool(C.CheckCPUIDHypervisor())
}
/*=========================== ANTI-SANDBOX ===========================*/