diff --git a/plugins/dbms/mssqlserver.py b/plugins/dbms/mssqlserver.py index 354abc341..633b6a3c5 100644 --- a/plugins/dbms/mssqlserver.py +++ b/plugins/dbms/mssqlserver.py @@ -268,7 +268,7 @@ class MSSQLServerMap(Fingerprint, Enumeration, Filesystem, Takeover): query = rootQuery["blind"]["count"] % db count = inject.getValue(query, inband=False) - if not len(count) or count == "0": + if not count.isdigit() or not len(count) or count == "0": warnMsg = "unable to retrieve the number of " warnMsg += "tables for database '%s'" % db logger.warn(warnMsg)