added check for DB2 lib

This commit is contained in:
Bernardo Damele 2013-01-17 14:20:34 +00:00
parent a38b3e397c
commit 5e059ab6db

View File

@ -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 "