diff --git a/.gitignore b/.gitignore index 806741748..044cdd2bc 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Common ignores +# Common ignores to ignore *.pyc *.swp *.swo diff --git a/AUTHORS b/AUTHORS index 5ba5ed0a4..d915687ad 100644 --- a/AUTHORS +++ b/AUTHORS @@ -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 diff --git a/crits/samples/sample.py b/crits/samples/sample.py index 567f241bf..d54fd0a97 100755 --- a/crits/samples/sample.py +++ b/crits/samples/sample.py @@ -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] + '' except: self.filetype = "Unavailable" try: