MCPcopy Create free account
hub / github.com/TideSec/GoBypassAV / timeSleep

Function timeSleep

SandBox/main.go:43–54  ·  view source on GitHub ↗

1. 延时运行

()

Source from the content-addressed store, hash-verified

41
42// 1. 延时运行
43func timeSleep() (int, error) {
44 startTime := time.Now()
45 time.Sleep(5 * time.Second)
46 endTime := time.Now()
47 sleepTime := endTime.Sub(startTime)
48 if sleepTime >= time.Duration(5*time.Second) {
49 //fmt.Println("睡眠时间为:", sleepTime)
50 return 1, nil
51 } else {
52 return 0, nil
53 }
54}
55
56// 2. 检测开机时间
57// 许多沙箱检测完毕后会重置系统,我们可以检测开机时间来判断是否为真实的运行状况。

Callers 1

check_sandboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected