Skip to content

Instantly share code, notes, and snippets.

View gnumoksha's full-sized avatar
🐚
available only on my shell phone

Tobias Sette gnumoksha

🐚
available only on my shell phone
View GitHub Profile
#!/usr/bin/env python
import sys
# http://www.python.org.br/wiki/PythonNoLugarDeShellScript
from subprocess import Popen, PIPE
class Cmd(object):
def __init__(self, cmd):
self.cmd = cmd
def __call__(self, *args):
@gnumoksha
gnumoksha / mse.vbs
Created November 13, 2013 14:47
Obtém informações do Microsoft Security Essentials e exibe de uma forma compreensível ao Zabbix
' Obtém informações do Microsoft Security Essentials
' e exibe de uma forma compreensível ao Zabbix
' execute com: cscript.exe //nologo mse.vbs
' Este post foi de grande ajuda:
' http://serverfault.com/questions/230368/timestamp-of-last-definition-update-for-microsoft-security-essentials-via-script
' Tobias 12/11/13
set objetoShell = CreateObject( "WScript.Shell" )
set objetoFS = CreateObject("Scripting.FileSystemObject")