some fixes

This commit is contained in:
Miroslav Stampar
2010-12-17 21:45:20 +00:00
parent a19cb2c13a
commit 108a96c6b4
4 changed files with 10 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ import ntpath
import os
from lib.core.common import getRange
from lib.core.common import isNumPosStrValue
from lib.core.common import posixToNtSlashes
from lib.core.common import randomStr
from lib.core.data import conf
@@ -97,7 +98,7 @@ class Filesystem(GenericFilesystem):
result = []
count = inject.getValue("SELECT COUNT(%s) FROM %s" % (self.tblField, hexTbl), resumeValue=False, charsetType=2)
if not count.isdigit() or not len(count) or count == "0":
if not isNumPosStrValue(count):
errMsg = "unable to retrieve the content of the "
errMsg += "file '%s'" % rFile
raise sqlmapNoneDataException(errMsg)