private void SetProperties(uint serialno, string emotetName, CheckInfoSource source, string location) { VolumeSerialNumber = serialno; Source = source; EmotetProcessName = emotetName; Location = location; MD5Hash = Crypto.MD5Hash(UniqueKey); SystemInfo = new SystemInfo(this); }
private void AddEmoProcessNameIfNotExistInList(string processName, CheckInfoSource source, string location = "") { if (!string.IsNullOrWhiteSpace(processName)) { var checkInfo = new Entity.CheckInfo(_SerialNo, processName, source, location); if (!EmoProcessNameDictionary.ContainsKey(checkInfo.UID)) { EmoProcessNameDictionary.Add(checkInfo.UID, checkInfo); } } }
public CheckInfo(uint serialno, string emotetName, CheckInfoSource source, string location) { SetProperties(serialno, emotetName, source, location); }
public CheckInfo(string emotetName, CheckInfoSource source, string location) { SetProperties(0, emotetName, source, location); }