2016-11-11 18:54:14 +00:00
|
|
|
[use:func_evasion_uptime]
|
2016-10-16 01:12:54 +00:00
|
|
|
|
|
|
|
Function func_evasion_uptime(func_evasion_uptime5 As Integer) As String
|
|
|
|
On Error Resume Next
|
|
|
|
Dim func_evasion_uptime1 As Object
|
|
|
|
Dim func_evasion_uptime2 As Object
|
|
|
|
Dim func_evasion_uptime10 As Object
|
|
|
|
|
|
|
|
Dim func_evasion_uptime4 As Integer
|
|
|
|
Dim func_evasion_uptime6 As String
|
2016-11-11 18:54:14 +00:00
|
|
|
Set func_evasion_uptime1 = GetObject(decode("{[winmgmts:\\.\root\cimv2]}"))
|
|
|
|
Set func_evasion_uptime2 = func_evasion_uptime1.ExecQuery(decode("{[SELECT LastBootUpTime FROM Win32_OperatingSystem]}"))
|
|
|
|
Set func_evasion_uptime10 = CreateObject(decode("{[WbemScripting.SWbemDateTime]}"))
|
2016-10-16 01:12:54 +00:00
|
|
|
For Each func_evasion_uptime3 In func_evasion_uptime2
|
|
|
|
func_evasion_uptime10.Value = func_evasion_uptime3.LastBootUpTime
|
|
|
|
func_evasion_uptime9 = DateDiff("s", "1/1/1970", Now())
|
|
|
|
func_evasion_uptime8 = DateDiff("s", "1/1/1970", func_evasion_uptime10.GetVarDate)
|
2017-10-17 22:18:10 +00:00
|
|
|
func_evasion_uptime4 = (func_evasion_uptime9 - func_evasion_uptime8)
|
2016-10-16 01:12:54 +00:00
|
|
|
Next
|
|
|
|
|
|
|
|
If (func_evasion_uptime4 > func_evasion_uptime5) Then
|
|
|
|
func_evasion_uptime6 = "bool1"
|
|
|
|
Else
|
|
|
|
func_evasion_uptime6 = "bool2"
|
|
|
|
End If
|
|
|
|
func_evasion_uptime = func_evasion_uptime6
|
2016-11-11 18:54:14 +00:00
|
|
|
End Function
|