]> jfr.im git - irc/blitzed-org/libopm.git/commitdiff
Attempt slightly better detection of CCProxy (telnet often more available than
authordg <redacted>
Thu, 9 Aug 2007 10:26:55 +0000 (10:26 +0000)
committerdg <redacted>
Thu, 9 Aug 2007 10:26:55 +0000 (10:26 +0000)
other protocol types). Note this will detect them as routers.

src/proxy.c

index d3adff0bf494a583fc2de7925a12bb33907fc16d..08d8ef3953d430b9671a1609d574825a2553c70e 100644 (file)
@@ -216,7 +216,7 @@ int libopm_proxy_router_write(OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T
    len = snprintf(SENDBUF, SENDBUFLEN, "cisco\r\n");
    send(conn->fd, SENDBUF, (unsigned int)len, 0);
 
-   len = snprintf(SENDBUF, SENDBUFLEN, "telnet %s %d\r\n", scan_ip, scan_port);
+   len = snprintf(SENDBUF, SENDBUFLEN, "telnet %s %d\r\nopen %s %d\r\n", scan_ip, scan_port, scan_ip, scan_port);
    send(conn->fd, SENDBUF, (unsigned int)len, 0);
 
    return OPM_SUCCESS;