Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Common ignores
# Common ignores to ignore
*.pyc
*.swp
*.swo
Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Bradley Logan (https://github.com/brlogan)
Stephen DiCato (https://github.com/Locker537)
Scott J. Roberts (https://github.com/sroberts)
Adam Polkosnik (https://github.com/apolkosnik)
Tony Stark
2 changes: 2 additions & 0 deletions crits/samples/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def _generate_file_metadata(self, data):
pass
try:
self.filetype = magic.from_buffer(data)
if len(self.filetype) > 1000:
self.filetype = self.filetype[0:1000] + '<TRUNCATED>'
except:
self.filetype = "Unavailable"
try:
Expand Down