From 5e059ab6db35f6648387828d616a9c02e702e9d3 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 17 Jan 2013 14:20:34 +0000 Subject: [PATCH] added check for DB2 lib --- lib/utils/deps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/deps.py b/lib/utils/deps.py index a1e21a569..5147028d3 100644 --- a/lib/utils/deps.py +++ b/lib/utils/deps.py @@ -39,6 +39,8 @@ def checkDependencies(): import pyodbc elif dbmsName == DBMS.FIREBIRD: import kinterbasdb + elif dbmsName == DBMS.DB2: + import ibm_db_dbi except ImportError: warnMsg = "sqlmap requires '%s' third-party library " % data[1] warnMsg += "in order to directly connect to the database "