Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
LnkEnums.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2012 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.coreutils;
20 
25  class LnkEnums {
26 
27  private static final byte[] CDRIVES = new byte[] { (byte)0xe0, 0x4f, (byte)0xd0, 0x20,
28  (byte)0xea, 0x3a, 0x69, 0x10, (byte)0xa2, (byte)0xd8, 0x08, 0x00, 0x2b, 0x30, 0x30, (byte)0x9d };
29  private static final byte[] CMYDOCS = new byte[] { (byte)0xba, (byte)0x8a, 0x0d,
30  0x45, 0x25, (byte)0xad, (byte)0xd0, 0x11, (byte)0x98, (byte)0xa8, 0x08, 0x00, 0x36, 0x1b, 0x11, 0x03 };
31  private static final byte[] IEFRAME = new byte[] { (byte)0x80, 0x53, 0x1c, (byte)0x87, (byte)0xa0,
32  0x42, 0x69, 0x10, (byte)0xa2, (byte)0xea, 0x08, 0x00, 0x2b, 0x30, 0x30, (byte)0x9d };
33 
34  public enum CommonCLSIDS {
35  CDrivesFolder(CDRIVES),
36  CMyDocsFolder(CMYDOCS),
37  IEFrameDLL(IEFRAME),
38  Unknown(new byte[16]);
39 
40  private byte[] flag;
41 
42  private CommonCLSIDS(byte[] flag) {
43  this.flag = flag;
44  }
45 
46  static CommonCLSIDS valueOf(byte[] type) {
47  for(CommonCLSIDS value : CommonCLSIDS.values()) {
48  if(java.util.Arrays.equals(value.flag, type)) {
49  return value;
50  }
51  }
52  return Unknown;
53  }
54  }
55 
56  public enum LinkFlags {
57  HasLinkTargetIDList(0x00000001),
58  HasLinkInfo(0x00000002),
59  HasName(0x00000004),
60  HasRelativePath(0x00000008),
61  HasWorkingDir(0x00000010),
62  HasArguments(0x00000020),
63  HasIconLocation(0x00000040),
64  IsUnicode(0x00000080),
65  ForceNoLinkInfo(0x00000100),
66  HasExpString(0x00000200),
67  RunInSeparateProcess(0x00000400),
68  Unused1(0x00000800),
69  HasDarwinID(0x00001000),
70  RunAsUser(0x00002000),
71  HasExpIcon(0x00004000),
72  NoPidlAlias(0x00008000),
73  Unused2(0x00010000),
74  RunWithShimLayer(0x00020000),
75  ForceNoLinkTrack(0x00040000),
76  EnableTargetMetaData(0x00080000),
80  AllowLinkToLink(0x00800000),
81  UnaliasOnSave(0x01000000),
82  PreferEnvironmentPath(0x02000000),
84 
85  private int flag;
86 
87  private LinkFlags(int flag) {
88  this.flag = flag;
89  }
90 
91  public int getFlag() {
92  return flag;
93  }
94  }
95 
96  public enum DriveType {
97  DRIVE_UNKNOWN(0x00000000),
98  DRIVE_NO_ROOT_DIR(0x00000001),
99  DRIVE_REMOVABLE(0x00000002),
100  DRIVE_FIXED(0x00000003),
101  DRIVE_REMOTE(0x00000004),
102  DRIVE_CDROM(0x00000005),
103  DRIVE_RAMDISK(0x00000006);
104 
105  private int flag;
106 
107  private DriveType(int flag) {
108  this.flag = flag;
109  }
110 
111  public int getFlag() {
112  return flag;
113  }
114 
115  static DriveType valueOf(int type) {
116  for(DriveType value : DriveType.values()) {
117  if(value.flag == type) {
118  return value;
119  }
120  }
121  return DRIVE_UNKNOWN;
122  }
123  }
124 
125  public enum FileAttributesFlags {
126  READONLY(0x00000001),
127  HIDDEN(0x00000002),
128  SYSTEM(0x00000004),
129  RESERVED1(0x00000008),
130  DIRECTORY(0x00000010),
131  ARCHIVE(0x00000020),
132  RESERVED2(0x00000040),
133  NORMAL(0x00000080),
134  TEMPORARY(0x00000100),
135  SPARSE_FILE(0x00000200),
136  REPARSE_POINT(0x00000400),
137  COMPRESSED(0x00000800),
138  OFFLINE(0x00001000),
139  NOT_CONTENT_INDEXED(0x00002000),
140  ENCRYPTED(0x00004000);
141 
142  private int flag;
143 
144  private FileAttributesFlags(int flag) {
145  this.flag = flag;
146  }
147 
148  public int getFlag() {
149  return flag;
150  }
151  }
152 
153  public enum LinkInfoFlags {
156 
157  private int flag;
158 
159  private LinkInfoFlags(int flag) {
160  this.flag = flag;
161  }
162 
163  public int getFlag() {
164  return flag;
165  }
166  }
167 
168 
170  ValidDevice(0x00000001),
171  ValidNetType(0x00000002);
172 
173  private int flag;
174 
175  private CommonNetworkRelativeLinkFlags(int flag) {
176  this.flag = flag;
177  }
178 
179  public int getFlag() {
180  return flag;
181  }
182  }
183 
184  public enum NetworkProviderType {
185  WNNC_NET_AVID(0x001A0000),
186  WNNC_NET_DOCUSPACE(0x001B0000),
187  WNNC_NET_MANGOSOFT(0x001C0000),
188  WNNC_NET_SERNET(0x001D0000),
189  WNNC_NET_RIVERFRONT1(0x001E0000),
190  WNNC_NET_RIVERFRONT2(0x001F0000),
191  WNNC_NET_DECORB(0x00200000),
192  WNNC_NET_PROTSTOR(0x00210000),
193  WNNC_NET_FJ_REDIR(0x00220000),
194  WNNC_NET_DISTINCT(0x00230000),
195  WNNC_NET_TWINS(0x00240000),
196  WNNC_NET_RDR2SAMPLE(0x00250000),
197  WNNC_NET_CSC(0x00260000),
198  WNNC_NET_3IN1(0x00270000),
199  WNNC_NET_EXTENDNET(0x00290000),
200  WNNC_NET_STAC(0x002A0000),
201  WNNC_NET_FOXBAT(0x002B0000),
202  WNNC_NET_YAHOO(0x002C0000),
203  WNNC_NET_EXIFS(0x002D0000),
204  WNNC_NET_DAV(0x002E0000),
205  WNNC_NET_KNOWARE(0x002F0000),
206  WNNC_NET_OBJECT_DIRE(0x00300000),
207  WNNC_NET_MASFAX(0x00310000),
208  WNNC_NET_HOB_NFS(0x00320000),
209  WNNC_NET_SHIVA(0x00330000),
210  WNNC_NET_IBMAL(0x00340000),
211  WNNC_NET_LOCK(0x00350000),
212  WNNC_NET_TERMSRV(0x00360000),
213  WNNC_NET_SRT(0x00370000),
214  WNNC_NET_QUINCY(0x00380000),
215  WNNC_NET_OPENAFS(0x00390000),
216  WNNC_NET_AVID1(0x003A0000),
217  WNNC_NET_DFS(0x003B0000),
218  WNNC_NET_KWNP(0x003C0000),
219  WNNC_NET_ZENWORKS(0x003D0000),
220  WNNC_NET_DRIVEONWEB(0x003E0000),
221  WNNC_NET_VMWARE(0x003F0000),
222  WNNC_NET_RSFX(0x00400000),
223  WNNC_NET_MFILES(0x00410000),
224  WNNC_NET_MS_NFS(0x00420000),
225  WNNC_NET_GOOGLE(0x00430000),
226  WNNC_NET_UNKNOWN(0x00000000);
227 
228  private int flag;
229 
230  private NetworkProviderType(int flag) {
231  this.flag = flag;
232  }
233 
234  static NetworkProviderType valueOf(int type) {
235  for(NetworkProviderType value : NetworkProviderType.values()) {
236  if(value.flag == type) {
237  return value;
238  }
239  }
240  return WNNC_NET_UNKNOWN;
241  }
242 
243  public int getFlag() {
244  return flag;
245  }
246  }
247 }
static CommonCLSIDS valueOf(byte[] type)
Definition: LnkEnums.java:46

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.