allow to blacklist users

This commit is contained in:
MatToufoutu 2018-09-14 00:19:17 +02:00
parent a256355468
commit 4e70e95a8e

View file

@ -130,7 +130,10 @@ def ParseHTTPHash(data, key, client, UserToRelay, Host, Pivoting):
else: else:
print "[+] Received NTLMv1 hash from: %s %s"%(client, ShowSmallResults((client,445))) print "[+] Received NTLMv1 hash from: %s %s"%(client, ShowSmallResults((client,445)))
if User in UserToRelay or "ALL" in UserToRelay: if ('!' + User) in UserToRelay:
print "[+] Username: %s is blacklisted, dropping connection." % User
return None, None
elif User in UserToRelay or "ALL" in UserToRelay:
if Pivoting[0] == "1": if Pivoting[0] == "1":
return User, Domain return User, Domain
print "[+] Username: %s is whitelisted, forwarding credentials."%(User) print "[+] Username: %s is whitelisted, forwarding credentials."%(User)