Merge branch 'master' of github.com:sleuthkit/autopsy

This commit is contained in:
Dick Fickling 2012-03-27 17:30:35 -04:00
commit 5f8abeaff9
6 changed files with 18 additions and 32 deletions

View File

@ -332,6 +332,8 @@ public class DataResultViewerTable extends AbstractDataResultViewer {
for (int i = 0; i < maxRows; i++) { for (int i = 0; i < maxRows; i++) {
PropertySet[] props = node.getChildren().getNodeAt(i).getPropertySets(); PropertySet[] props = node.getChildren().getNodeAt(i).getPropertySets();
if (props.length == 0) //rare special case
continue;
Property[] property = props[0].getProperties(); Property[] property = props[0].getProperties();
objs[i] = new Object[property.length]; objs[i] = new Object[property.length];

View File

@ -179,7 +179,7 @@ public class HashDbIngestService implements IngestServiceFsContent {
detailsSb.append("</table>"); detailsSb.append("</table>");
managerProxy.postMessage(IngestMessage.createDataMessage(++messageId, this, "Found notable file: " + name, detailsSb.toString(), name+md5Hash, badFile)); managerProxy.postMessage(IngestMessage.createDataMessage(++messageId, this, "Notable: " + name, detailsSb.toString(), name+md5Hash, badFile));
IngestManager.fireServiceDataEvent(new ServiceDataEvent(MODULE_NAME, ARTIFACT_TYPE.TSK_HASHSET_HIT, Collections.singletonList(badFile))); IngestManager.fireServiceDataEvent(new ServiceDataEvent(MODULE_NAME, ARTIFACT_TYPE.TSK_HASHSET_HIT, Collections.singletonList(badFile)));
ret = ProcessResult.OK; ret = ProcessResult.OK;
} else if (status.equals(TskData.FileKnown.KNOWN)) { } else if (status.equals(TskData.FileKnown.KNOWN)) {

View File

@ -26,11 +26,11 @@
</Group> </Group>
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<Component id="notableLabel" min="-2" max="-2" attributes="0"/> <Component id="notableLabel" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/> <EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="notableValLabel" min="-2" max="-2" attributes="0"/> <Component id="notableValLabel" min="-2" max="-2" attributes="0"/>
</Group> </Group>
</Group> </Group>
<EmptySpace pref="18" max="32767" attributes="0"/> <EmptySpace pref="42" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
@ -39,15 +39,15 @@
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0"> <Group type="103" groupAlignment="3" attributes="0">
<Component id="knownValLabel" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="knownLabel" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="knownLabel" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="knownValLabel" alignment="3" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0"> <Group type="103" groupAlignment="3" attributes="0">
<Component id="notableValLabel" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="notableValLabel" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="notableLabel" alignment="3" min="-2" max="-2" attributes="0"/> <Component id="notableLabel" alignment="3" min="-2" max="-2" attributes="0"/>
</Group> </Group>
<EmptySpace max="32767" attributes="0"/> <EmptySpace pref="18" max="32767" attributes="0"/>
</Group> </Group>
</Group> </Group>
</DimensionLayout> </DimensionLayout>
@ -55,9 +55,6 @@
<SubComponents> <SubComponents>
<Component class="javax.swing.JLabel" name="knownLabel"> <Component class="javax.swing.JLabel" name="knownLabel">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="12" style="1"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.knownLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/> <ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.knownLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property> </Property>
@ -65,9 +62,6 @@
</Component> </Component>
<Component class="javax.swing.JLabel" name="notableLabel"> <Component class="javax.swing.JLabel" name="notableLabel">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="12" style="1"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.notableLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/> <ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.notableLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property> </Property>
@ -75,9 +69,6 @@
</Component> </Component>
<Component class="javax.swing.JLabel" name="knownValLabel"> <Component class="javax.swing.JLabel" name="knownValLabel">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="12" style="0"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.knownValLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/> <ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.knownValLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property> </Property>
@ -85,9 +76,6 @@
</Component> </Component>
<Component class="javax.swing.JLabel" name="notableValLabel"> <Component class="javax.swing.JLabel" name="notableValLabel">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="12" style="0"/>
</Property>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.notableValLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/> <ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbSimplePanel.notableValLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property> </Property>

View File

@ -87,16 +87,12 @@ public class HashDbSimplePanel extends javax.swing.JPanel {
knownValLabel = new javax.swing.JLabel(); knownValLabel = new javax.swing.JLabel();
notableValLabel = new javax.swing.JLabel(); notableValLabel = new javax.swing.JLabel();
knownLabel.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
knownLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.knownLabel.text")); // NOI18N knownLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.knownLabel.text")); // NOI18N
notableLabel.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
notableLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.notableLabel.text")); // NOI18N notableLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.notableLabel.text")); // NOI18N
knownValLabel.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
knownValLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.knownValLabel.text")); // NOI18N knownValLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.knownValLabel.text")); // NOI18N
notableValLabel.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
notableValLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.notableValLabel.text")); // NOI18N notableValLabel.setText(org.openide.util.NbBundle.getMessage(HashDbSimplePanel.class, "HashDbSimplePanel.notableValLabel.text")); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
@ -112,22 +108,22 @@ public class HashDbSimplePanel extends javax.swing.JPanel {
.addComponent(knownValLabel)) .addComponent(knownValLabel))
.addGroup(layout.createSequentialGroup() .addGroup(layout.createSequentialGroup()
.addComponent(notableLabel) .addComponent(notableLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(notableValLabel))) .addComponent(notableValLabel)))
.addContainerGap(18, Short.MAX_VALUE)) .addContainerGap(42, Short.MAX_VALUE))
); );
layout.setVerticalGroup( layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup() .addGroup(layout.createSequentialGroup()
.addContainerGap() .addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(knownValLabel) .addComponent(knownLabel)
.addComponent(knownLabel)) .addComponent(knownValLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(notableValLabel) .addComponent(notableValLabel)
.addComponent(notableLabel)) .addComponent(notableLabel))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(18, Short.MAX_VALUE))
); );
}// </editor-fold>//GEN-END:initComponents }// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables // Variables declaration - do not modify//GEN-BEGIN:variables

View File

@ -228,9 +228,9 @@ class IngestMessagePanel extends javax.swing.JPanel {
if (i == 0) { if (i == 0) {
column.setPreferredWidth(((int) (d.width * 0.23))); column.setPreferredWidth(((int) (d.width * 0.23)));
} else if (i == 1) { } else if (i == 1) {
column.setPreferredWidth(((int) (d.width * 0.14))); column.setPreferredWidth(((int) (d.width * 0.07)));
} else { } else {
column.setPreferredWidth(((int) (d.width * 0.62))); column.setPreferredWidth(((int) (d.width * 0.69)));
} }
} }
} }

View File

@ -648,7 +648,7 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
} else { } else {
subjectSb.append("Keyword hit: "); subjectSb.append("Keyword hit: ");
} }
subjectSb.append("<"); //subjectSb.append("<");
String uniqueKey = null; String uniqueKey = null;
BlackboardAttribute attr = written.getAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_KEYWORD.getTypeID()); BlackboardAttribute attr = written.getAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_KEYWORD.getTypeID());
if (attr != null) { if (attr != null) {
@ -657,7 +657,7 @@ public final class KeywordSearchIngestService implements IngestServiceFsContent
uniqueKey = keyword.toLowerCase(); uniqueKey = keyword.toLowerCase();
} }
subjectSb.append(">"); //subjectSb.append(">");
//String uniqueKey = queryStr; //String uniqueKey = queryStr;
//details //details