();
+ // Get all the attributes, line them up to be added. Place empty string placeholders for each attribute type
+ int n;
+ for (n = 1; n <= 35; n++) {
+ attributes.put(n, "");
+
+ }
+ for (BlackboardAttribute tempatt : entry.getValue()) {
+ if (ReportFilter.cancel == true) {
+ break;
+ }
+ String value = "";
+ Integer type = tempatt.getAttributeTypeID();
+ if (type.equals(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME.getTypeID()) || type.equals(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_LAST_ACCESSED.getTypeID())) {
+ try{
+ SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
+ value = sdf.format(new java.util.Date((tempatt.getValueLong())));
+ }
+ catch(Exception ex){
+
+ }
+ } else {
+ value = tempatt.getValueString();
+ }
+ if(value == null || value.isEmpty())
+ {
+ value = "";
+ }
+ value = ReportUtils.insertPeriodically(value, "
", 30);
+ attributes.put(type, value);
+
+ }
+
+
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_GEN_INFO.getTypeID()) {
+
+ artifact.append("");
+ nodeGen.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_BOOKMARK.getTypeID()) {
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_URL.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME.getTypeID())).append(" | ");
+ artifact.append("
");
+ nodeWebBookmark.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_COOKIE.getTypeID()) {
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_URL.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_VALUE.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME.getTypeID())).append(" | ");
+ artifact.append("
");
+ nodeWebCookie.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_HISTORY.getTypeID()) {
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_URL.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_LAST_ACCESSED.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_REFERRER.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME.getTypeID())).append(" | ");
+ artifact.append("
");
+ nodeWebHistory.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_DOWNLOAD.getTypeID()) {
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PATH.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_URL.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_LAST_ACCESSED.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME.getTypeID())).append(" | ");
+ artifact.append("
");
+ nodeWebDownload.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_RECENT_OBJECT.getTypeID()) {
+ //artifact.append("").append(objId.toString());
+ artifact.append(" |
").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PATH.getTypeID())).append(" | ");
+ artifact.append("").append(file.getName()).append(" | ");
+ artifact.append("
");
+ nodeRecentObjects.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_TRACKPOINT.getTypeID()) {
+ artifact.append("").append(objId.toString());
+ artifact.append(" | ").append(file.getName().toString()).append(" | ");
+ artifact.append("").append(filesize.toString()).append(" | ");
+ artifact.append("
");
+ nodeTrackPoint.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_INSTALLED_PROG.getTypeID()) {
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_PROG_NAME.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME.getTypeID())).append(" | ");
+ artifact.append("
");
+ nodeInstalled.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_KEYWORD_HIT.getTypeID()) {
+ // artifact.append("Artifact ID | Name | Size | ");
+ // artifact.append("
---|
");
+ // nodeKeyword.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_HASHSET_HIT.getTypeID()) {
+ // artifact.append("").append(objId.toString());
+ artifact.append(" |
").append(file.getName().toString()).append(" | ");
+ artifact.append("").append(filesize.toString()).append(" | ");
+ //artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_INTERESTING_FILE.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_HASHSET_NAME.getTypeID())).append(" | ");
+ artifact.append("
");
+ nodeHash.append(artifact);
+ }
+ if (entry.getKey().getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_DEVICE_ATTACHED.getTypeID()) {
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DEVICE_MODEL.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DEVICE_ID.getTypeID())).append(" | ");
+ artifact.append("").append(attributes.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_DATETIME.getTypeID())).append(" | ");
+ artifact.append("
");
+ nodeDevice.append(artifact);
+ }
+ }
+ //Add them back in order
+ //formatted_Report.append(nodeGen);
+ // formatted_Report.append("