Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- assert(function()
- function checkav(antix)
- if (type(antix) == "table") then
- for k,v in pairs(antix) do
- if (EVAL(v.activescan, "EQ", "ok", "string") and EVAL (v.lastupdate, "LT", "2592000", "integer")) then
- return true
- end
- end
- end
- return false
- end
- function checkfw(antix)
- if (type(antix) == "table") then
- for k,v in pairs(antix) do
- if (EVAL(v.enabled, "EQ", "ok", "string")) then
- return true
- end
- end
- end
- return false
- end
- return (checkav(endpoint.av) and checkfw(endpoint.fw))
- end)()
- assert(function ()
- local pattern = "KB944"
- local true_on_match = true
- local match = false
- for k,v in pairs(endpoint.os.hotfix) do
- print(k)
- match = string.find(k, pattern)
- if (match) then
- if (true_on_match) then
- return true
- else return (false)
- end
- end
- end
- end)()
Add Comment
Please, Sign In to add comment