Skip to content

Commit

Permalink
feat: add TLSH to the file entity
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubfaouzi committed Aug 14, 2024
1 parent 4c1ec35 commit 0b5781b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions db/file-summary.n1ql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SELECT
"SHA256": f.sha256,
"SHA512": f.sha512,
"SSDeep": f.ssdeep,
"TLSH": f.tlsh,
"Packer": f.packer,
"Magic": f.magic,
"Tags": f.tags,
Expand Down
1 change: 1 addition & 0 deletions internal/entity/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type File struct {
SHA256 string `json:"sha256,omitempty"`
SHA512 string `json:"sha512,omitempty"`
SSDeep string `json:"ssdeep,omitempty"`
TLSH string `json:"tlsh,omitempty"`
Crc32 string `json:"crc32,omitempty"`
Size int64 `json:"size,omitempty"`
Tags map[string]interface{} `json:"tags,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions internal/file/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ type UpdateFileRequest struct {
SHA256 string `json:"sha256,omitempty"`
SHA512 string `json:"sha512,omitempty"`
Ssdeep string `json:"ssdeep,omitempty"`
TLSH string `json:"tlsh,omitempty"`
CRC32 string `json:"crc32,omitempty"`
Magic string `json:"magic,omitempty"`
Size uint64 `json:"size,omitempty"`
Expand Down

0 comments on commit 0b5781b

Please sign in to comment.