// Start node is a leaf and isnt root or a top level app (eg www.example.com/app1)
// Go up a level
startNode = (SiteNode)startNode.getParent();
}
ExtensionActiveScan extAscan = (ExtensionActiveScan) Control.getSingleton().getExtensionLoader().getExtension(ExtensionActiveScan.NAME);
if (extAscan == null) {
logger.error("No active scanner");
extension.notifyProgress(Progress.failed);
return;
} else {
extension.notifyProgress(Progress.ascan);
extAscan.startScan(startNode);
}
try {
// Wait for the active scanner to complete
while (extAscan.isScanning(startNode)) {
sleep (500);
if (this.stopAttack) {
extAscan.stopScan(startNode);
}
}
} catch (InterruptedException e) {
// Ignore
}