honeynet / cuckooml

CuckooML: Machine Learning for Cuckoo Sandbox
https://honeynet.github.io/cuckooml/
145 stars 47 forks source link

getting error running cuckoo.py --ml #22

Closed h2jazi closed 7 years ago

h2jazi commented 7 years ago

I have tried to run cuckooml but always getting the following erorr! even tried to run your example in my IDE but still getting same error.

Traceback (most recent call last): File "/home/ubuntu/Downloads/pycharm-community-2016.3.2/helpers/pydev/pydevd.py", line 1596, in globals = debugger.run(setup['file'], None, None, is_module) File "/home/ubuntu/Downloads/pycharm-community-2016.3.2/helpers/pydev/pydevd.py", line 974, in run pydev_imports.execfile(file, globals, locals) # execute the script File "/home/ubuntu/PycharmProjects/cuckooml/mltestcase.py", line 10, in loader.load_binaries("/home/ubuntu/Downloads/cuckooml/sample_data/dict") File "/home/ubuntu/PycharmProjects/cuckooml/modules/processing/cuckooml.py", line 1189, in load_binaries self.binaries[f].label_sample() File "/home/ubuntu/PycharmProjects/cuckooml/modules/processing/cuckooml.py", line 1305, in label_sample merged_labels += self.scans[vendor]["normalized"][label_type] TypeError: list indices must be integers, not str

So-Cool commented 7 years ago

@h2jazi so what was the problem? It would be great to have a solution here if somebody else runs into the same problem.

h2jazi commented 7 years ago

Actually there was not a real problem! I tried to use your data set and I thought the reports generated by latest cuckoo version and therefore ignore relabeling step and that is why I got error. But when I have used the relabeling code every thing seems work fine!


From: Kacper Sokol notifications@github.com Sent: March 7, 2017 2:45:47 PM To: honeynet/cuckooml Cc: h2jazi; Mention Subject: Re: [honeynet/cuckooml] getting error running cuckoo.py --ml (#22)

@h2jazihttps://github.com/h2jazi so what was the problem? It would be great to have a solution here if somebody else runs into the same problem.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/honeynet/cuckooml/issues/22#issuecomment-284817267, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AY1Aa9JKdsqZBsACX-og7Uzvz-_rLClHks5rjaXbgaJpZM4MU01m.