From 7c384d480f96e627da7c0e7c767fab32a5d22d23 Mon Sep 17 00:00:00 2001 From: kris Date: Thu, 18 Mar 2010 06:21:05 +0000 Subject: [PATCH] o Fixed the Idle Scan (-sI) so that scanning multiple hosts doesn't retest the zombie proxy and reinitialize all of the associated data at the beginning of each run. [Kris] The underlying code checking for this and for changing proxies goes all the way back to r1486 (2002) and presumably before, but lastproxy was never filled in and so was nonfunctional. --- CHANGELOG | 4 ++++ idle_scan.cc | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 6cd10aa03..72e8d72ca 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,10 @@ [NOT YET RELEASED] +o Fixed the Idle Scan (-sI) so that scanning multiple hosts doesn't + retest the zombie proxy and reinitialize all of the associated data + at the beginning of each run. [Kris] + o [NSE] Added jdwp-version.nse, a script from Michael Schierl that finds the version of a Java Debug Wire Protocol server. diff --git a/idle_scan.cc b/idle_scan.cc index fde4ce365..a7bad3a07 100644 --- a/idle_scan.cc +++ b/idle_scan.cc @@ -997,6 +997,7 @@ void idle_scan(Target *target, u16 *portarray, int numports, /* If this is the first call, */ if (!*lastproxy) { initialize_idleproxy(&proxy, proxyName, target->v4hostip(), ports); + strncpy(lastproxy, proxyName, sizeof(lastproxy)); } starttime = time(NULL);