report.append("</OWASPZAPReport>");
}
private static void siteXML(StringBuilder report) {
SiteMap siteMap = Model.getSingleton().getSession().getSiteTree();
SiteNode root = (SiteNode) siteMap.getRoot();
int siteNumber = root.getChildCount();
for (int i = 0; i < siteNumber; i++) {
SiteNode site = (SiteNode) root.getChildAt(i);
String siteName = ScanPanel.cleanSiteName(site, true);
String[] hostAndPort = siteName.split(":");
boolean isSSL = (site.getNodeName().startsWith("https"));
String siteStart = "<site name=\"" + XMLStringUtil.escapeControlChrs(site.getNodeName()) + "\"" +
" host=\"" + XMLStringUtil.escapeControlChrs(hostAndPort[0])+ "\""+
" port=\"" + XMLStringUtil.escapeControlChrs(hostAndPort[1])+ "\""+
" ssl=\"" + String.valueOf(isSSL) + "\"" +
">";
StringBuilder extensionsXML = getExtensionsXML(site);