Guest User

Untitled

a guest
Jul 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. assert(function()
  2. function checkav(antix)
  3. if (type(antix) == "table") then
  4. for k,v in pairs(antix) do
  5. if (EVAL(v.activescan, "EQ", "ok", "string") and EVAL (v.lastupdate, "LT", "2592000", "integer")) then
  6. return true
  7. end
  8. end
  9. end
  10. return false
  11. end
  12. function checkfw(antix)
  13. if (type(antix) == "table") then
  14. for k,v in pairs(antix) do
  15. if (EVAL(v.enabled, "EQ", "ok", "string")) then
  16. return true
  17. end
  18. end
  19. end
  20. return false
  21. end
  22. return (checkav(endpoint.av) and checkfw(endpoint.fw))
  23. end)()
  24. assert(function ()
  25. local pattern = "KB944"
  26. local true_on_match = true
  27. local match = false
  28. for k,v in pairs(endpoint.os.hotfix) do
  29. print(k)
  30. match = string.find(k, pattern)
  31. if (match) then
  32. if (true_on_match) then
  33. return true
  34. else return (false)
  35. end
  36. end
  37. end
  38. end)()
Add Comment
Please, Sign In to add comment