some fixes
This commit is contained in:
parent
7d846847f6
commit
5903f86ac5
|
@ -38,6 +38,16 @@ namespace Catswords.DataType.Client.Helper
|
||||||
// 각 아이템을 반복하며 정보 출력
|
// 각 아이템을 반복하며 정보 출력
|
||||||
foreach (XmlNode itemNode in itemList)
|
foreach (XmlNode itemNode in itemList)
|
||||||
{
|
{
|
||||||
|
// organization
|
||||||
|
Indicators.Add(new Indicator()
|
||||||
|
{
|
||||||
|
Id = itemNode.SelectSingleNode("id").InnerText,
|
||||||
|
CreatedAt = GetDateTimeFromString(itemNode.SelectSingleNode("datetime").InnerText),
|
||||||
|
Content = "This format published by " + itemNode.SelectSingleNode("organization").InnerText,
|
||||||
|
Url = ""
|
||||||
|
});
|
||||||
|
|
||||||
|
// description
|
||||||
Indicators.Add(new Indicator()
|
Indicators.Add(new Indicator()
|
||||||
{
|
{
|
||||||
Id = itemNode.SelectSingleNode("id").InnerText,
|
Id = itemNode.SelectSingleNode("id").InnerText,
|
||||||
|
@ -45,6 +55,33 @@ namespace Catswords.DataType.Client.Helper
|
||||||
Content = itemNode.SelectSingleNode("description").InnerText,
|
Content = itemNode.SelectSingleNode("description").InnerText,
|
||||||
Url = ""
|
Url = ""
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// content
|
||||||
|
Indicators.Add(new Indicator()
|
||||||
|
{
|
||||||
|
Id = itemNode.SelectSingleNode("id").InnerText,
|
||||||
|
CreatedAt = GetDateTimeFromString(itemNode.SelectSingleNode("datetime").InnerText),
|
||||||
|
Content = itemNode.SelectSingleNode("content").InnerText,
|
||||||
|
Url = ""
|
||||||
|
});
|
||||||
|
|
||||||
|
// openwith
|
||||||
|
Indicators.Add(new Indicator()
|
||||||
|
{
|
||||||
|
Id = itemNode.SelectSingleNode("id").InnerText,
|
||||||
|
CreatedAt = GetDateTimeFromString(itemNode.SelectSingleNode("datetime").InnerText),
|
||||||
|
Content = "Open with " + itemNode.SelectSingleNode("openwith").InnerText,
|
||||||
|
Url = ""
|
||||||
|
});
|
||||||
|
|
||||||
|
// first reported
|
||||||
|
Indicators.Add(new Indicator()
|
||||||
|
{
|
||||||
|
Id = itemNode.SelectSingleNode("id").InnerText,
|
||||||
|
CreatedAt = GetDateTimeFromString(itemNode.SelectSingleNode("datetime").InnerText),
|
||||||
|
Content = "This format first seen on " + GetDateTimeFromString(itemNode.SelectSingleNode("datetime").InnerText).ToString(),
|
||||||
|
Url = ""
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
@ -8,5 +8,6 @@ namespace Catswords.DataType.Client.Model
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public int Severity { get; set; }
|
public int Severity { get; set; }
|
||||||
public DateTime CreatedAt { get; set; }
|
public DateTime CreatedAt { get; set; }
|
||||||
|
public DateTime UpdatedAt { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
namespace Catswords.DataType.Client.Model
|
using System;
|
||||||
|
|
||||||
|
namespace Catswords.DataType.Client.Model
|
||||||
{
|
{
|
||||||
public class FileHash
|
public class FileHash
|
||||||
{
|
{
|
||||||
|
@ -11,5 +13,7 @@
|
||||||
public string SHA256 { get; set; }
|
public string SHA256 { get; set; }
|
||||||
public string InfoHash { get; set; }
|
public string InfoHash { get; set; }
|
||||||
public string SSDEEP { get; set; }
|
public string SSDEEP { get; set; }
|
||||||
|
public DateTime CreatedAt { get; set; }
|
||||||
|
public DateTime UpdatedAt { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,5 +8,6 @@ namespace Catswords.DataType.Client.Model
|
||||||
public string Content { get; set; }
|
public string Content { get; set; }
|
||||||
public string Url { get; set; }
|
public string Url { get; set; }
|
||||||
public DateTime CreatedAt { get; set; }
|
public DateTime CreatedAt { get; set; }
|
||||||
|
public DateTime UpdatedAt { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user