
nnposter at users
Nov 21, 2007, 2:56 PM
Post #1 of 1
(926 views)
Permalink
|
|
Update to packeteer_web_detect
|
|
A small update to packeteer_web_detect.nasl to make it compatible with Packeteer 8.x. Cheers, nnposter --- packeteer_web_detect.nasl 2007-10-26 15:42:12.000000000 -0400 +++ packeteer_web_detect.nasl.new 2007-11-19 17:24:53.000000000 -0500 @@ -95,9 +95,13 @@ cookie=egrep(pattern:"^Set-Cookie: *[^a-z0-9]PScfgstr=",string:resp,icase:TRUE); if (!server || !cookie) exit(0); -match=eregmatch(pattern:'\n([a-zA-Z]+) +/login\\.htm\n',string:resp); -if (isnull(match)) exit(0); -product=match[1]; +product="(unknown)"; +# 8.x product extraction +match=eregmatch(pattern:': ([a-z]+) +Login</title>',string:resp,icase:TRUE); +if (isnull(match)) + # 7.x product extraction + match=eregmatch(pattern:'\n([a-zA-Z]+) +/login\\.htm\n',string:resp); +if (!isnull(match)) product=match[1]; replace_or_set_kb_item(name:"www/packeteer",value:TRUE); replace_or_set_kb_item(name:"www/"+port+"/packeteer",value:product); _______________________________________________ Plugins-writers mailing list Plugins-writers [at] list http://mail.nessus.org/mailman/listinfo/plugins-writers
|