Merge pull request #59 from breakersall/patch-2

Add in check for uptime since March 14th 2017, which could indicate t…
This commit is contained in:
lgandx 2017-07-15 13:19:53 -03:00 committed by GitHub
commit 0436b47a2c

View file

@ -33,8 +33,12 @@ def GetBootTime(data):
def IsDCVuln(t):
Date = datetime.datetime(2014, 11, 17, 0, 30)
if t[0] < Date:
print "DC is up since:", t[1]
print "This DC is vulnerable to MS14-068"
print "System is up since:", t[1]
print "This system may be vulnerable to MS14-068"
Date = datetime.datetime(2017, 03, 14, 0, 30)
if t[0] < Date:
print "System is up since:", t[1]
print "This system may be vulnerable to MS17-010"
print "DC is up since:", t[1]
@ -63,6 +67,6 @@ def run(host):
if __name__ == "__main__":
if len(sys.argv)<=1:
sys.exit('Usage: python '+sys.argv[0]+' DC-IP-address')
sys.exit('Usage: python '+sys.argv[0]+' System-IP-address')
host = sys.argv[1],445
run(host)