Source:
public void scan() { if (isStop()) { if (LOG.isDebugEnabled()) { LOG.debug("Scanner " + getName() + " Stopping."); } return; } HttpMessage newRequest = getNewMsg(); newRequest.getRequestHeader().setMethod(HttpRequestHeader.GET); URI baseUri = getBaseMsg().getRequestHeader().getURI(); URI newUri = null; try { String baseUriPath = baseUri.getPath() == null ? "" : baseUri.getPath(); newUri = new URI( baseUri.getScheme(), null, baseUri.getHost(), baseUri.getPort(), createTestablePath(baseUriPath)); } catch (URIException uEx) { if (LOG.isDebugEnabled()) { LOG.debug( "An error occurred creating a URI for the: " + getName() + " scanner. " + uEx.getMessage(), uEx); } return; } try { newRequest.getRequestHeader().setURI(newUri); } catch (URIException uEx) { if (LOG.isDebugEnabled()) { LOG.debug( "An error occurred setting the URI for a new request used by: " + getName() + " scanner. " + uEx.getMessage(), uEx); } return; } synchronized (getKb()) { if (getKb().getBoolean(newUri, messagePrefix)) { return; } getKb().add(newUri, messagePrefix, Boolean.TRUE); } try { sendAndReceive(newRequest, false); } catch (IOException e) { LOG.warn( "An error occurred while checking [" + newRequest.getRequestHeader().getMethod() + "] [" + newRequest.getRequestHeader().getURI() + "] for " + getName() + " Caught " + e.getClass().getName() + " " + e.getMessage()); return; } int statusCode = newRequest.getResponseHeader().getStatusCode(); if (isFalsePositive(newRequest)) { return; } if (statusCode == HttpStatusCode.OK) { raiseAlert(newRequest, getRisk(), ""); } else if (statusCode == HttpStatusCode.UNAUTHORIZED || statusCode == HttpStatusCode.FORBIDDEN) { raiseAlert(newRequest, Alert.RISK_INFO, getOtherInfo()); } }

Target:
public void scan() { if (isStop()) { if (LOG.isDebugEnabled()) { LOG.debug("Scanner " + getName() + " Stopping."); } return; } HttpMessage newRequest = getNewMsg(); newRequest.getRequestHeader().setMethod(HttpRequestHeader.GET); URI baseUri = getBaseMsg().getRequestHeader().getURI(); URI newUri = null; try { String baseUriPath = baseUri.getPath() == null ? "" : baseUri.getPath(); newUri = new URI( baseUri.getScheme(), null, baseUri.getHost(), baseUri.getPort(), createTestablePath(baseUriPath)); } catch (URIException uEx) { if (LOG.isDebugEnabled()) { LOG.debug( "An error occurred creating a URI for the: " + getName() + " scanner. " + uEx.getMessage(), uEx); } return; } try { newRequest.getRequestHeader().setURI(newUri); } catch (URIException uEx) { if (LOG.isDebugEnabled()) { LOG.debug( "An error occurred setting the URI for a new request used by: " + getName() + " scanner. " + uEx.getMessage(), uEx); } return; } synchronized (getKb()) { if (getKb().getBoolean(newUri, messagePrefix)) { return; } getKb().add(newUri, messagePrefix, Boolean.TRUE); } try { sendAndReceive(newRequest, false); } catch (IOException e) { LOG.warn( "An error occurred while checking [" + newRequest.getRequestHeader().getMethod() + "] [" + newRequest.getRequestHeader().getURI() + "] for " + getName() + " Caught " + e.getClass().getName() + " " + e.getMessage()); return; } if (isFalsePositive(newRequest)) { return; } int statusCode = newRequest.getResponseHeader().getStatusCode(); if (statusCode == HttpStatusCode.OK) { raiseAlert(newRequest, getRisk(), ""); } else if (statusCode == HttpStatusCode.UNAUTHORIZED || statusCode == HttpStatusCode.FORBIDDEN) { raiseAlert(newRequest, Alert.RISK_INFO, getOtherInfo()); } }