1.33b - New SQL error sig and text page detector tweaks

- New SQL error signature added.
- Improved tolerance for tabs in text page detector.
This commit is contained in:
Steve Pinkham 2010-04-22 23:01:39 -04:00
parent 23205f4600
commit 8d7293fb5f
3 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,10 @@
Version 1.33b:
--------------
- New SQL error signature added.
- Improved tolerance for tabs in text page detector.
Version 1.32b:
--------------

View File

@ -611,7 +611,7 @@ static u8 is_mostly_ascii(struct http_response* res) {
for (i=0;i<total;i++)
if ((res->payload[i] >= 0x20 && res->payload[i] <= 0x7f)
|| (res->payload[i] && strchr("\r\n", res->payload[i])))
|| (res->payload[i] && strchr("\t\r\n", res->payload[i])))
printable++;
if (printable * 100 / total < 90) {
@ -2249,7 +2249,8 @@ static void check_for_stuff(struct http_request* req,
}
if (strstr((char*)res->payload, "<b>Warning</b>: MySQL: ") ||
strstr((char*)res->payload, "java.sql.SQLException")) {
strstr((char*)res->payload, "java.sql.SQLException") ||
strstr((char*)res->payload, "[You have an error in your SQL syntax; ")) {
problem(PROB_ERROR_POI, req, res, (u8*)"SQL server error", req->pivot, 0);
return;
}

View File

@ -23,7 +23,7 @@
#ifndef _HAVE_CONFIG_H
#define _HAVE_CONFIG_H
#define VERSION "1.32b"
#define VERSION "1.33b"
#define USE_COLOR 1 /* Use terminal colors */