Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 5b510c4

Browse files
committed
clean up TODOs
1 parent 0855911 commit 5b510c4

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

tests/core/test_archiver.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ def test_init(self):
250250
assert isinstance(instance.extensions, (list, KeysView))
251251
assert "zip" in instance.extensions
252252

253-
# TODO(frennkie) add tests for correct archive structure (e.g. compress file, uncompress and check dir layout)
254-
255253
@pytest.mark.usefixtures("cleandir")
256254
def test_file_path_list_item_does_not_exist(self, capsys):
257255
assert os.listdir(os.getcwd()) == []
@@ -402,16 +400,3 @@ def test_file_without_extension(self, capsys, filename):
402400
assert instance.err is not None
403401
assert re.search("unable to discover extension", instance.err)
404402
assert os.listdir(os.getcwd()) == []
405-
406-
# @pytest.mark.parametrize("filename", ["Mac.pdf"])
407-
# def test_meta(self, capsys, filename):
408-
# __sessions__.new(os.path.join(FIXTURE_DIR, filename))
409-
# instance = office.Office()
410-
# instance.command_line = ["-m"]
411-
#
412-
# instance.run()
413-
# out, err = capsys.readouterr()
414-
#
415-
# assert re.search(r".*comments .*| htsgraghtfgyrwthwwb*", out)
416-
# assert re.search(r".*create_time .*| 2017-03-08 16:00:00*", out)
417-
# assert re.search(r".*last_saved_time .*| 2017-04-09 19:03:00.*", out)

viper/core/session.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,7 @@ def new(self, path=None, misp_event=None):
8686
row = Database().find(key='sha256', value=session.file.sha256)
8787
if row:
8888
session.file.id = row[0].id
89-
90-
if isinstance(row[0].name, bytes): # TODO(frennkie) check
91-
session.file.name = row[0].name.decode('utf-8')
92-
else:
93-
session.file.name = row[0].name
94-
89+
session.file.name = row[0].name
9590
session.file.tags = ', '.join(tag.to_dict()['tag'] for tag in row[0].tag)
9691

9792
if row[0].parent:

viper/modules/rats/hawkeye.py-deprecated

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def config_1(key, salt, string_list):
4848
config_dict = {}
4949
for i in range(40):
5050
if len(string_list[1]) > 200:
51-
# FIXME(frennkie): the next line doesn't do anything.. what could be a possible reason for it?
51+
# FIXME: the next line doesn't do anything.. what could be a possible reason for it?
5252
config_dict["Embedded File found at {0}".format(i)]
5353
else:
5454
try:

viper/modules/sigs_helper/sigs_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def F(self, idx):
5151
def get_auth_data(filename):
5252
with open(filename, 'rb') as objf:
5353
fingerprinter = fingerprint.Fingerprinter(objf)
54-
# is_pecoff = fingerprinter.EvalPecoff() # TODO(frennkie) remove - is never used
5554
fingerprinter.EvalGeneric()
5655
results = fingerprinter.HashIt()
5756

0 commit comments

Comments
 (0)