Skip to content

Commit

Permalink
ntlmrelayx.py: Set log level for 'Unsupported MechType' to DEBUG (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpt-erikgeiser authored Dec 5, 2024
1 parent ec32e73 commit bc934b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion impacket/examples/ntlmrelayx/servers/smbrelayserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def SmbSessionSetup(self, connId, smbServer, recvPacket):
mechStr = MechTypes[mechType]
else:
mechStr = hexlify(mechType)
smbServer.log("Unsupported MechType '%s'" % mechStr, logging.CRITICAL)
smbServer.log("Unsupported MechType '%s'" % mechStr, logging.DEBUG)
# We don't know the token, we answer back again saying
# we just support NTLM.
respToken = SPNEGO_NegTokenResp()
Expand Down
2 changes: 1 addition & 1 deletion impacket/examples/ntlmrelayx/servers/wcfrelayserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def handle(self):
mechStr = MechTypes[mechType]
else:
mechStr = hexlify(mechType)
LOG.error("Unsupported MechType '%s'" % mechStr)
LOG.debug("Unsupported MechType '%s'" % mechStr)
# We don't know the token, we answer back again saying
# we just support NTLM.
respToken = SPNEGO_NegTokenResp()
Expand Down
4 changes: 2 additions & 2 deletions impacket/smbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,7 @@ def smbComSessionSetupAndX(connId, smbServer, SMBCommand, recvPacket):
mechStr = MechTypes[mechType]
else:
mechStr = hexlify(mechType)
smbServer.log("Unsupported MechType '%s'" % mechStr, logging.CRITICAL)
smbServer.log("Unsupported MechType '%s'" % mechStr, logging.DEBUG)
# We don't know the token, we answer back again saying
# we just support NTLM.
# ToDo: Build this into a SPNEGO_NegTokenResp()
Expand Down Expand Up @@ -2862,7 +2862,7 @@ def smb2SessionSetup(connId, smbServer, recvPacket):
mechStr = MechTypes[mechType]
else:
mechStr = hexlify(mechType)
smbServer.log("Unsupported MechType '%s'" % mechStr, logging.CRITICAL)
smbServer.log("Unsupported MechType '%s'" % mechStr, logging.DEBUG)
# We don't know the token, we answer back again saying
# we just support NTLM.
# ToDo: Build this into a SPNEGO_NegTokenResp()
Expand Down

0 comments on commit bc934b0

Please sign in to comment.