-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make CuckooML plotting dependant on library imports #15
Comments
can we add a 'raw_input()' prompting for 'if the user wants to use plotting or not' and import the required libraries only on a 'yes'? |
Not really, given that we want to automatically analyse large malware datasets this could potentially cause inconvenience. A better approach would be to give one plotting switch in |
The checking for imports of plotting libraries is taken care by the try and catch block. As far as giving a plotting switch is concerned, don't the "figures" argument in detect_abnormal_behavior() and "plot" argument in clustering_label_distribution() do exactly that? |
At the moment they are all imported in one block. For instance |
If user only wants textual output as mentioned by So-Cool in enhancement issue honeynet#15.
@greninja, this is good beginning, but there are couple of issues with your contribution. First of all, In Are you willing to fix these? |
Hey @So-Cool, I actually have added the plotting variable: For the other issue: Absolutely correct. So if a user sets |
Sorry @greninja, I've missed that commit. Terminating is not particularly good idea; I guess people would be annoyed if it takes a lot of time to crunch the data and then they are left with nothing because they have forgotten to install the plotting libraries. |
Enhancement Features according to honeynet#15
I have made the changes apprised by you. Though I made a mistake while pushing commits. I am really sorry. Hence I had to close the PR and open it again. Also while running 'cuckooml.py' I am facing 'ImportError: No module named lib.cuckoo.common.config' |
I haven't come across |
Enhancement features honeynet#15
I run it normally: |
Alright, you shouldn't run |
In the
try: import...
create a global variable for all the libraries necessary for plotting and condition CuckooML plotting on that.The result: no need to install plotting packages if you're only interested in malware analysis with textual output.
The text was updated successfully, but these errors were encountered: