Skip to content
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

Unable to run wafamole due to the error, Can not load keras model #14

Open
mangocitizenkane opened this issue Apr 26, 2024 · 5 comments

Comments

@mangocitizenkane
Copy link

I am implementing wafamole in the Virtual Machine using Ubuntu Desktop from this website, https://ubuntu.com/download/desktop
The version is Ubuntu Desktop 24.04 LTS. I then perform git clone https://github.com/AvalZ/WAF-A-MoLE and perform installing the requirements.txt and all the requirements are satisfied and then python setup.py install. It is completed

I have tried to run the wafamole with this command, wafamole evade --model-type waf-brain models/custom/example_models/waf-brain.h5 "admin' OR 1=1#" and I received the error indicating "Can not load keras model." I have provided the screenshot attached.

Please kindly advise and assist.

Wafamole Error

@zangobot
Copy link
Collaborator

Hello, did you install keras and tensorflow?

@mangocitizenkane
Copy link
Author

@zangobot , yes I have installed keras and tensorflow already. I received a new errors when running waf-a-mole saying that the module, sqlparse is not imported but already installed.
WAF-A-MOLE-ERROR

@zangobot
Copy link
Collaborator

Is the environment active? Can you report the list of installed packages?

@mangocitizenkane
Copy link
Author

@zangobot the installed packages. are numpy
keras
scikit-learn
joblib
sqlparse
networkx
click
tensorflow

@zangobot
Copy link
Collaborator

zangobot commented May 6, 2024

Can you paste here the output of pip freeze inside your environment?
Btw, the errors says you don't have sqlparse installed in the env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants