diff dsniff-2.3/webspy.c dsniff-2.3-p1/webspy.c 12d11 < 53c52,53 < ".xml", ".asc", NULL }; --- > ".xml", ".asc", ".php", ".php5", > ".aspx", ".py", ".rb", NULL }; 85c85 < char *p, *req, *uri, *vhost, *auth; --- > char *p, *req, *uri, *vhost, *auth, *wmsg; 86a87 > int gothost = 0; 90a92 > wmsg = NULL; 93a96,97 > wmsg = malloc(msg->size+1); > memcpy(wmsg, buf_ptr(msg), msg->size+1); 96d99 < 99c102,103 < strncmp(req, "CONNECT ", 8) != 0) --- > strncmp(req, "CONNECT ", 8) != 0) { > free(wmsg); 101c105 < --- > } 102a107 > 112c117,124 < --- > req = strtok(wmsg, "\r\n"); > while (!gothost && req != NULL) { > if (strncmp(req, "Host: ", 6) == 0) { > vhost = req + 6; > gothost = 1; > } > req = strtok(NULL, "\r\n"); > } 131a144 > free(wmsg);