Further improvement and fixes.

This commit is contained in:
jrmdev 2015-07-07 16:21:28 +10:00
commit bc06818ed1
18 changed files with 416 additions and 142 deletions

View file

@ -122,9 +122,20 @@ class KerbTCP(BaseRequestHandler):
KerbHash = ParseMSKerbv5TCP(data)
if KerbHash:
print text("[KERBEROS] Address :" % self.client_address[0])
print text("[KERBEROS] MSKerbv5 Hash :" % KerbHash)
WriteData(settings.Config.KerberosLog % self.client_address[0], KerbHash, KerbHash)
(n, krb, v, name, domain, d, h) = KerbHash.split('$')
SaveToDb({
'module': 'KERB',
'type': 'MSKerbv5',
'client': self.client_address[0],
'user': domain+'\\'+name,
'hash': h,
'fullhash': KerbHash,
})
#print text("[KERBEROS] Address :" % self.client_address[0])
#print text("[KERBEROS] MSKerbv5 Hash :" % KerbHash)
#WriteData(settings.Config.KerberosLog % self.client_address[0], KerbHash, KerbHash)
except Exception:
raise
@ -137,9 +148,20 @@ class KerbUDP(BaseRequestHandler):
KerbHash = ParseMSKerbv5UDP(data)
if KerbHash:
print text("[KERBEROS] Address :" % self.client_address[0])
print text("[KERBEROS] MSKerbv5 Hash :" % KerbHash)
WriteData(settings.Config.KerberosLog % self.client_address[0], KerbHash, KerbHash)
(n, krb, v, name, domain, d, h) = KerbHash.split('$')
SaveToDb({
'module': 'KERB',
'type': 'MSKerbv5',
'client': self.client_address[0],
'user': domain+'\\'+name,
'hash': h,
'fullhash': KerbHash,
})
#print text("[KERBEROS] Address :" % self.client_address[0])
#print text("[KERBEROS] MSKerbv5 Hash :" % KerbHash)
#WriteData(settings.Config.KerberosLog % self.client_address[0], KerbHash, KerbHash)
except Exception:
raise