diff --git a/lib/controller/handler.py b/lib/controller/handler.py index 042c725f1..9d37b8878 100644 --- a/lib/controller/handler.py +++ b/lib/controller/handler.py @@ -65,7 +65,7 @@ def setHandler(): inferencedDbms = (kb.htmlFp[-1] if kb.htmlFp else None) or kb.dbms for injection in kb.injections: - if hasattr(injection, "dbms"): + if hasattr(injection, "dbms") and injection.dbms: inferencedDbms = injection.dbms break