Show unknown auth types in logs (#345)

Co-authored-by: Ullaakut <brendan.le-glaunec@epitech.eu>
This commit is contained in:
baryy100
2024-07-08 10:17:09 +03:00
committed by GitHub
parent 73542f9efe
commit bcb8933261
+2
View File
@@ -134,6 +134,8 @@ func (s *Scanner) DetectAuthMethods(targets []Stream) []Stream {
authMethod = "basic" authMethod = "basic"
case authDigest: case authDigest:
authMethod = "digest" authMethod = "digest"
default:
authMethod = "unknown:" + string(targets[i].AuthenticationType)
} }
s.term.Debugf("Stream %s uses %s authentication method\n", GetCameraRTSPURL(targets[i]), authMethod) s.term.Debugf("Stream %s uses %s authentication method\n", GetCameraRTSPURL(targets[i]), authMethod)