mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
Minor detector improvements.
This commit is contained in:
parent
4132e69fc7
commit
13e3d51257
26
finder.cpp
26
finder.cpp
@ -308,14 +308,18 @@ int _mainFinderFirst(char *buffcpy, int f, int port, char *ip)
|
|||||||
if(strstr(buffcpy, "dvr") != NULL && strstr(buffcpy, "ieorforefox") != NULL
|
if(strstr(buffcpy, "dvr") != NULL && strstr(buffcpy, "ieorforefox") != NULL
|
||||||
&& strstr(buffcpy, "sofari") != NULL) return 49; //IEORFOREFOX
|
&& strstr(buffcpy, "sofari") != NULL) return 49; //IEORFOREFOX
|
||||||
|
|
||||||
if(strstr(buffcpy, "camera web server") != NULL || strstr(buffcpy, "webcamxp 5") != NULL
|
if((strstr(buffcpy, "camera web server") != NULL || strstr(buffcpy, "webcamxp 5") != NULL
|
||||||
|| strstr(buffcpy, "ip box camera") != NULL || strstr(buffcpy, "snaff") != NULL
|
|| strstr(buffcpy, "ip box camera") != NULL || strstr(buffcpy, "snaff") != NULL
|
||||||
|| strstr(buffcpy, "hfs /") != NULL || strstr(buffcpy, "httpfileserver") != NULL
|
|| strstr(buffcpy, "hfs /") != NULL || strstr(buffcpy, "httpfileserver") != NULL
|
||||||
|| strstr(buffcpy, "network camera") != NULL
|
|| strstr(buffcpy, "network camera") != NULL
|
||||||
|| strstr(buffcpy, "$lock extended") != NULL || strstr(buffcpy, "ip camera") != NULL
|
|| strstr(buffcpy, "$lock extended") != NULL || strstr(buffcpy, "ip camera") != NULL
|
||||||
|| strstr(buffcpy, "/viewer/video.jpg") != NULL || strstr(buffcpy, "smart ip device") != NULL
|
|| strstr(buffcpy, "/viewer/video.jpg") != NULL || strstr(buffcpy, "smart ip device") != NULL
|
||||||
|| strstr(buffcpy, "sanpshot_icon") != NULL || strstr(buffcpy, "snapshot_icon") != NULL
|
|| strstr(buffcpy, "sanpshot_icon") != NULL || strstr(buffcpy, "snapshot_icon") != NULL
|
||||||
|| strstr(buffcpy, "ipcam") != NULL
|
|| strstr(buffcpy, "ipcam") != NULL)
|
||||||
|
&& strstr(buffcpy, "customer") == NULL
|
||||||
|
&& strstr(buffcpy, "purchase") == NULL
|
||||||
|
&& strstr(buffcpy, "contac") == NULL
|
||||||
|
&& strstr(buffcpy, "company") == NULL
|
||||||
) return 0;
|
) return 0;
|
||||||
|
|
||||||
if(lxf.globalSearchNeg(buffcpy, ip, port) == -1) return -1;
|
if(lxf.globalSearchNeg(buffcpy, ip, port) == -1) return -1;
|
||||||
@ -398,14 +402,18 @@ int _mainFinderSecond(char *buffcpy, int port, char *ip)
|
|||||||
|| strstr(buffcpy, "500 'get': command not understood") != NULL
|
|| strstr(buffcpy, "500 'get': command not understood") != NULL
|
||||||
) return 16; // 16 - FTP
|
) return 16; // 16 - FTP
|
||||||
|
|
||||||
if(strstr(buffcpy, "camera web server") != NULL || strstr(buffcpy, "webcamxp 5") != NULL
|
if((strstr(buffcpy, "camera web server") != NULL || strstr(buffcpy, "webcamxp 5") != NULL
|
||||||
|| strstr(buffcpy, "ip box camera") != NULL || strstr(buffcpy, "snaff") != NULL
|
|| strstr(buffcpy, "ip box camera") != NULL || strstr(buffcpy, "snaff") != NULL
|
||||||
|| strstr(buffcpy, "hfs /") != NULL || strstr(buffcpy, "httpfileserver") != NULL
|
|| strstr(buffcpy, "hfs /") != NULL || strstr(buffcpy, "httpfileserver") != NULL
|
||||||
|| strstr(buffcpy, "network camera") != NULL
|
|| strstr(buffcpy, "network camera") != NULL
|
||||||
|| strstr(buffcpy, "$lock extended") != NULL || strstr(buffcpy, "ip camera") != NULL
|
|| strstr(buffcpy, "$lock extended") != NULL || strstr(buffcpy, "ip camera") != NULL
|
||||||
|| strstr(buffcpy, "/viewer/video.jpg") != NULL || strstr(buffcpy, "smart ip device") != NULL
|
|| strstr(buffcpy, "/viewer/video.jpg") != NULL || strstr(buffcpy, "smart ip device") != NULL
|
||||||
|| strstr(buffcpy, "sanpshot_icon") != NULL || strstr(buffcpy, "snapshot_icon") != NULL
|
|| strstr(buffcpy, "sanpshot_icon") != NULL || strstr(buffcpy, "snapshot_icon") != NULL
|
||||||
|| strstr(buffcpy, "ipcam") != NULL
|
|| strstr(buffcpy, "ipcam") != NULL)
|
||||||
|
&& strstr(buffcpy, "customer") == NULL
|
||||||
|
&& strstr(buffcpy, "purchase") == NULL
|
||||||
|
&& strstr(buffcpy, "contac") == NULL
|
||||||
|
&& strstr(buffcpy, "company") == NULL
|
||||||
) return 0;
|
) return 0;
|
||||||
|
|
||||||
if(lxf.globalSearchNeg(buffcpy, ip, port) == -1) return -1;
|
if(lxf.globalSearchNeg(buffcpy, ip, port) == -1) return -1;
|
||||||
@ -2567,20 +2575,26 @@ int Lexems::_header(char *ip, int port, char str[], Lexems *l, PathStr *ps, std:
|
|||||||
strcpy(ps->headr, "[IRC server]");
|
strcpy(ps->headr, "[IRC server]");
|
||||||
strcpy(ps->path, "/"); return 1;
|
strcpy(ps->path, "/"); return 1;
|
||||||
};
|
};
|
||||||
if(strstri(str, "ip camera") != NULL || strstri(str, "+tm01+") != NULL
|
|
||||||
|
if((strstri(str, "ip camera") != NULL || strstri(str, "+tm01+") != NULL
|
||||||
|| strstri(str, "camera web server") != NULL || strstri(str, "ipcam_language") != NULL
|
|| strstri(str, "camera web server") != NULL || strstri(str, "ipcam_language") != NULL
|
||||||
|| strstri(str, "/viewer/video.jpg") != NULL || strstri(str, "network camera") != NULL
|
|| strstri(str, "/viewer/video.jpg") != NULL || strstri(str, "network camera") != NULL
|
||||||
|| strstri(str, "sanpshot_icon") != NULL || strstri(str, "snapshot_icon") != NULL
|
|| strstri(str, "sanpshot_icon") != NULL || strstri(str, "snapshot_icon") != NULL
|
||||||
|| strstri(str, "lan camera") != NULL || strstri(str, "cgiuserlogin?") != NULL
|
|| strstri(str, "lan camera") != NULL || strstri(str, "cgiuserlogin?") != NULL
|
||||||
|| strstri(str, "web camera") != NULL || strstri(str, "smart ip device") != NULL
|
|| strstri(str, "web camera") != NULL || strstri(str, "smart ip device") != NULL
|
||||||
|| strstri(str, "pan/tilt camera") != NULL || strstri(str, "/cgi-bin/viewer/getparam.cgi?") != NULL
|
|| strstri(str, "pan/tilt camera") != NULL || strstri(str, "/cgi-bin/viewer/getparam.cgi?") != NULL
|
||||||
|| strstri(str, "IPCamera") != NULL
|
|| strstri(str, "IPCamera") != NULL)
|
||||||
|
&& strstr(str, "customer") == NULL
|
||||||
|
&& strstr(str, "purchase") == NULL
|
||||||
|
&& strstr(str, "contac") == NULL
|
||||||
|
&& strstr(str, "company") == NULL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
strcpy(ps->headr, "[IP Camera detected]");
|
strcpy(ps->headr, "[IP Camera detected]");
|
||||||
l->flag = 0;
|
l->flag = 0;
|
||||||
ps->flag = 0;
|
ps->flag = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
if(strstri(str, "get_status.cgi") != NULL)
|
if(strstri(str, "get_status.cgi") != NULL)
|
||||||
{ strcpy(ps->headr, "[It may be ip camera]"); };
|
{ strcpy(ps->headr, "[It may be ip camera]"); };
|
||||||
if(strstri(str, "vo_logo.gif") != NULL
|
if(strstri(str, "vo_logo.gif") != NULL
|
||||||
|
Loading…
Reference in New Issue
Block a user