Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
YaraIngestModuleFactory.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.modules.yara;
20 
21 import java.util.ArrayList;
22 import org.openide.util.NbBundle.Messages;
23 import org.openide.util.lookup.ServiceProvider;
33 
38 @ServiceProvider(service = IngestModuleFactory.class)
40 
41  @Messages({
42  "Yara_Module_Name=YARA Analyzer",
43  "Yara_Module_Description=The YARA Analyzer uses YARA to search files for textual or binary patterns."
44  })
45 
46  @Override
47  public String getModuleDisplayName() {
48  return getModuleName();
49  }
50 
51  @Override
52  public String getModuleDescription() {
53  return Bundle.Yara_Module_Description();
54  }
55 
56  @Override
57  public String getModuleVersionNumber() {
58  return Version.getVersion();
59  }
60 
61  @Override
62  public boolean hasIngestJobSettingsPanel() {
63  return true;
64  }
65 
66  @Override
68  return new YaraIngestSettingsPanel((YaraIngestJobSettings) settings);
69  }
70 
71  @Override
73  return new YaraIngestJobSettings(new ArrayList<>(), true);
74  }
75 
76  @Override
77  public boolean isFileIngestModuleFactory() {
78  return true;
79  }
80 
81  @Override
83  return new YaraIngestModule((YaraIngestJobSettings) settings);
84  }
85 
91  static String getModuleName() {
92  return Bundle.Yara_Module_Name();
93  }
94 
95  @Override
96  public boolean hasGlobalSettingsPanel() {
97  return true;
98  }
99 
100  @Override
102  YaraGlobalSettingsPanel globalOptionsPanel = new YaraGlobalSettingsPanel();
103  globalOptionsPanel.load();
104  return globalOptionsPanel;
105  }
106 }
FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings settings)
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.